SNMP working but doesent display graphs

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

prxbl
Posts: 18
Joined: Wed Nov 28, 2007 6:59 pm

SNMP working but doesent display graphs

Post by prxbl »

Hello, i have used cacti before and never had this problem, after i installed snmp and cacti on my debian i waited for about 20-30 mins and when i checked to see if graphs apear there was nothing.
Image
i think snmp is working ok when i execute
snmpwalk localhost -c public -v1
i get the folowing:
SNMPv2-MIB::sysDescr.0 = STRING: Linux debian 2.6.18-5-486 #1 Fri Jun 1 00:07:22 UTC 2007 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (81799) 0:13:37.99
SNMPv2-MIB::sysContact.0 = STRING: email@email.com
SNMPv2-MIB::sysName.0 = STRING: debian
SNMPv2-MIB::sysLocation.0 = STRING: location
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (0) 0:00:00.00
End of MIB
and this is my snmpd.conf file
###
# sec.name source community
#com2sec paranoid default public
com2sec local localhost public
#com2sec readwrite default private

####
# sec.model sec.name
group MyROSystem v1 local
group MyROSystem v2c local
group MyROSystem usm local
group MyROGroup v1 localnet
group MyROGroup v2c localnet
group MyROGroup usm localnet
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local

###
# incl/excl subtree mask
view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system

####
# context sec.model sec.level match read write notif
access MyROSystem "" any noauth exact system none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none

# -----------------------------------------------------------------------------

syslocation location
syscontact email@email.com
also from cacti devices > localhost snmp apears to be working
Image
can anyone help me on this problem ?
Attachments
no-graphs.GIF
no-graphs.GIF (37.55 KiB) Viewed 2827 times
snmp-working.GIF
snmp-working.GIF (21.3 KiB) Viewed 2827 times
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

are you sure the poller is running ?

Can you run it once by hand ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
prxbl
Posts: 18
Joined: Wed Nov 28, 2007 6:59 pm

hmm

Post by prxbl »

i dont realy know how i can run the poller manualy but i did the folowing, i looked at my cron jobs, using webmin, and there is one like this
/usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log
and when i tried to Run it manuly it gave me the folowing error:
Output from command /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log ..

No output generated

here is a screenshot of the poller settings in cacti
[img]http://forums.cacti.net/files/poller_144.gif
poller.GIF[/img]
Attachments
poller.GIF
poller.GIF (41.11 KiB) Viewed 2766 times
prxbl
Posts: 18
Joined: Wed Nov 28, 2007 6:59 pm

update

Post by prxbl »

i found this path /usr/share/cacti/site/cmd.php and tried to run it manualy with the command
php /usr/share/cacti/site/cmd.php
and the result was
Fatal error: Call to undefined function: mysql_pconnect() in /usr/share/php/ado
db/drivers/adodb-mysql.inc.php on line 377
prxbl
Posts: 18
Joined: Wed Nov 28, 2007 6:59 pm

yet another update

Post by prxbl »

yet another update, after i searched a bit the forum i tried to run the file
/usr/share/cacti/site/poller.php with the command
php /usr/share/cacti/site/poller.php and i got the error
debian:~# php /usr/share/cacti/site/poller.php
Fatal error: Call to undefined function: mysql_pconnect() in /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 377
prxbl
Posts: 18
Joined: Wed Nov 28, 2007 6:59 pm

Post by prxbl »

third update : after a search for that error , i folowed some instructions i found in this article http://forums.cacti.net/about18666.html about php-mysql missing and after i installed it, i runn'ed poller.php and everything seemed to be ok, now the graphs apear but they are empty , not showing data. Now i dont know where to look for the problem.
[img]http://forums.cacti.net/files/empty_graph_200.gif
empty_graph.GIF[/img] :(
Attachments
empty_graph.GIF
empty_graph.GIF (22.99 KiB) Viewed 2736 times
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Can you use the "ucd/net SNMP" host template instead ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
prxbl
Posts: 18
Joined: Wed Nov 28, 2007 6:59 pm

update

Post by prxbl »

i switched to "ucd/net snmp host" with no result, the graphs are still empty :(
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Can you run the poller once in DEBUG mode ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
prxbl
Posts: 18
Joined: Wed Nov 28, 2007 6:59 pm

question

Post by prxbl »

please tell me how to do that... because i dont know
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Settings -> General -> Poller Logging Level
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
prxbl
Posts: 18
Joined: Wed Nov 28, 2007 6:59 pm

update

Post by prxbl »

debian:~# php /usr/share/cacti/site/poller.php
and the result was
11/30/2007 12:20:06 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/site/cmd.php 0 1]
11/30/2007 12:20:07 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.16' [map 1min->load_1min]
11/30/2007 12:20:07 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.03' [map 5min->load_5min]
11/30/2007 12:20:07 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.01' [map 10min->load_15min]
11/30/2007 12:20:07 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1196418006:4864
11/30/2007 12:20:07 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/localhost_mem_swap_4.rrd --template mem_swap 1196418006:746936
11/30/2007 12:20:07 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1196418006:0.16:0.03:0.01
11/30/2007 12:20:07 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/localhost_users_6.rrd --template users 1196418006:1
11/30/2007 12:20:07 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/localhost_proc_7.rrd --template proc 1196418006:53
11/30/2007 12:20:07 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/localhost_cpu_nice_8.rrd --template cpu_nice 1196418006:U
11/30/2007 12:20:07 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/localhost_cpu_system_9.rrd --template cpu_system 1196418006:U
11/30/2007 12:20:07 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/localhost_cpu_user_10.rrd --template cpu_user 1196418006:U
11/30/2007 12:20:07 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/localhost_traffic_in_11.rrd --template traffic_out:traffic_in 1196418006:U:U
11/30/2007 12:20:07 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/localhost_hdd_free_12.rrd --template hdd_free:hdd_used 1196418006:37378484:1106048
11/30/2007 12:20:07 PM - SYSTEM STATS: Time:1.1001 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:12 RRDsProcessed:10
ERROR: illegal attempt to update using time 1196418006 when last update time is 1196657907 (minimum one second step)
ERROR: illegal attempt to update using time 1196418006 when last update time is 1196657907 (minimum one second step)
ERROR: illegal attempt to update using time 1196418006 when last update time is 1196657907 (minimum one second step)
ERROR: illegal attempt to update using time 1196418006 when last update time is 1196657907 (minimum one second step)
ERROR: illegal attempt to update using time 1196418006 when last update time is 1196657907 (minimum one second step)
ERROR: illegal attempt to update using time 1196418006 when last update time is 1196657907 (minimum one second step)
ERROR: illegal attempt to update using time 1196418006 when last update time is 1196657907 (minimum one second step)
ERROR: illegal attempt to update using time 1196418006 when last update time is 1196657907 (minimum one second step)
ERROR: illegal attempt to update using time 1196418006 when last update time is 1196657907 (minimum one second step)
ERROR: illegal attempt to update using time 1196418006 when last update time is 1196657907 (minimum one second step)
debian:~#
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Oops... Your RRDtool files were created "in the future", or your server time has changed. Either delete them, or wait 1196657907 - 1196418006 = 239901 seconds

You should install a NTP client on your Cacti server.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
prxbl
Posts: 18
Joined: Wed Nov 28, 2007 6:59 pm

update

Post by prxbl »

its true i did change the system time because it was wrong, what can i do to delete the RRDtool files, where can i find them ?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

They're located in /path/to/cacti/rra
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests