Interface Graphing Doesn't Work

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

Moderators: Developers, Moderators

Post Reply
jweinraub
Cacti User
Posts: 61
Joined: Fri Apr 13, 2007 9:21 am

Interface Graphing Doesn't Work

Post by jweinraub »

I installed cacti via apt-get on my Debian box. All of the localhost graphs work, but when I added the one for interface, it doesn't saying the rra file isn't there. I am not sure why it didn't make it.

When I query the snmp I get nothing good:

Code: Select all

+ Running data query [1].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP get for num of indexes @ '.1.3.6.1.2.1.2.1.0' Index Count: U
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1' Index Count: 0
+ No SNMP data returned
The graph is for: Interface - Traffic (bytes/sec, Total Bandwidth)
The error is: ERROR: opening '/var/lib/cacti/rra/localhost_traffic_in_9.rrd': No such file or directory

I don't know what to put for data source:

Index Value is blank and not sure what to fill in for that.

I don't get much on the snmpwalk either:

Code: Select all

root@weinraub:/var/lib/cacti/rra# snmpwalk -v 1 -c public localhost
SNMPv2-MIB::sysDescr.0 = STRING: Linux weinraub.net 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1 x86_64
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (238532) 0:39:45.32
SNMPv2-MIB::sysContact.0 = STRING: Me <me@example.org>
SNMPv2-MIB::sysName.0 = STRING: weinraub.net
SNMPv2-MIB::sysLocation.0 = STRING: Sitting on the Dock of the Bay
SNMPv2-MIB::sysServices.0 = INTEGER: 72
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.2 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.3 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.5 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.6 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.7 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.8 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORDescr.1 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.3 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.8 = STRING: View-based Access Control Model for SNMP.
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
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (168499042) 19 days, 12:03:10.42
End of MIB
I been reading and trying countless solutions found on these forums and I have cacti successfully running on other servers to no problem, though they are all RHEL but I cannot seem for the life of me figure this out. Thanks!
jweinraub
Cacti User
Posts: 61
Joined: Fri Apr 13, 2007 9:21 am

Re: Interface Graphing Doesn't Work

Post by jweinraub »

Okay, I manually ran the rrdcreate and I am passed that problem.
SNMP is definitely working but I am guessing that index value is causing it to not graph/get all NaN.

I also removed the apt-get method of installing Cacti and installed it the normal way by wget and tar and setup manually - the way I should of had from the beginning. But I digress. How do I properly diagnose the oid or what have you since I am not sure how it knows to examine eth0.

Code: Select all

root@weinraub:/var/www/html/cacti/rra# rrdtool info localhost_traffic_in_9.rrd
filename = "localhost_traffic_in_9.rrd"
rrd_version = "0003"
step = 300
last_update = 1401987644
header_size = 2912
ds[traffic_in].index = 0
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+08
ds[traffic_in].last_ds = "U"
ds[traffic_in].value = 0.0000000000e+00
ds[traffic_in].unknown_sec = 44
ds[traffic_out].index = 1
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 1.0000000000e+08
ds[traffic_out].last_ds = "U"
ds[traffic_out].value = 0.0000000000e+00
ds[traffic_out].unknown_sec = 44

Code: Select all

root@weinraub:/var/www/html/cacti# php -q cmd.php
PHP Strict Standards:  Only variables should be passed by reference in /var/www/html/cacti/lib/ping.php on line 382
PHP Strict Standards:  Only variables should be passed by reference in /var/www/html/cacti/lib/ping.php on line 382
PHP Strict Standards:  Only variables should be passed by reference in /var/www/html/cacti/lib/ping.php on line 382
06/05/2014 02:28:45 PM - CMDPHP: Poller[0] Host[1] PING: UDP Ping Success (0.24 ms)
06/05/2014 02:28:46 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /var/www/html/cacti/scripts/linux_memory.pl MemFree:, output: 182852
06/05/2014 02:28:46 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /var/www/html/cacti/scripts/linux_memory.pl SwapFree:, output: 2055988
06/05/2014 02:28:46 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /var/www/html/cacti/scripts/loadavg_multi.pl, output: 1min:0.03 5min:0.03 10min:0.05
06/05/2014 02:28:46 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /var/www/html/cacti/scripts/unix_users.pl , output: 1
06/05/2014 02:28:46 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /var/www/html/cacti/scripts/unix_processes.pl, output: 85
06/05/2014 02:28:46 PM - CMDPHP: Poller[0] Host[1] DS[10] CMD: perl /var/www/html/cacti/scripts/weather.pl, output: 22
06/05/2014 02:28:46 PM - CMDPHP: Poller[0] Time: 0.2210 s, Theads: N/A, Hosts: 1
jweinraub
Cacti User
Posts: 61
Joined: Fri Apr 13, 2007 9:21 am

Re: Interface Graphing Doesn't Work

Post by jweinraub »

Okay...

On one of my servers I get this:

Code: Select all

root@weinraub:~# snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.2.2.1.1
On my other servers, I get this:

Code: Select all

[jweinraub@intranet:~]$ snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
So obviously its the if-mib not working. How do I get that working?
jweinraub
Cacti User
Posts: 61
Joined: Fri Apr 13, 2007 9:21 am

Re: Interface Graphing Doesn't Work

Post by jweinraub »

Well, I somehow fixed it. Soon as I changed snmp to v2, on the query and added

Code: Select all

rocommunity public  localhost
in /etc/snmp/snmpd.conf and restarted the daemon it started to work so yay me
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests