SNMP - Interface Statistics query problem

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
neg1
Posts: 3
Joined: Mon Aug 22, 2005 8:08 pm

SNMP - Interface Statistics query problem

Post by neg1 »

I've recently upgraded from cacti 0.8.6g to 0.8.6h, and SNMP - Interface Statistics data queries are now returning 0 rows for all of my hosts. Most of the traffic graphs are showing up however under the host graph tree, and look fine. On a few hosts however the graphs are not showing up under the host graph tree. If i go to Graph Managment and select the missing traffic graph, the graph shows up. I've manualy tried with snmpwalk/get, and don't have any problem with either of them.

Code: Select all

 
1) SNMP - Interface Statistics  	 (Verbose Query)  	 Uptime Goes Backwards  	 Success [0 Items, 0 Rows]
Running the query is verbose mode I get,

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Found item [ifIndex='4'] index: 4 [from value]
+ Found item [ifIndex='5'] index: 5 [from value]
+ Found item [ifIndex='6'] index: 6 [from value]
+ Found item [ifIndex='7'] index: 7 [from value]
+ Found item [ifIndex='8'] index: 8 [from value]
+ Found item [ifIndex='9'] index: 9 [from value]
+ Found item [ifIndex='10'] index: 10 [from value]
+ Found item [ifIndex='11'] index: 11 [from value]
+ Found item [ifIndex='12'] index: 12 [from value]
+ Found item [ifIndex='13'] index: 13 [from value]
+ Found item [ifIndex='14'] index: 14 [from value]
+ Found item [ifIndex='15'] index: 15 [from value]
+ Found item [ifIndex='16'] index: 16 [from value]
+ Found item [ifIndex='17'] index: 17 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='1'] index: 1 [from value]
+ Found item [ifOperStatus='1'] index: 2 [from value]
+ Found item [ifOperStatus='1'] index: 3 [from value]
+ Found item [ifOperStatus='1'] index: 4 [from value]
+ Found item [ifOperStatus='1'] index: 5 [from value]
+ Found item [ifOperStatus='1'] index: 6 [from value]
+ Found item [ifOperStatus='1'] index: 7 [from value]
+ Found item [ifOperStatus='1'] index: 8 [from value]
+ Found item [ifOperStatus='2'] index: 9 [from value]
+ Found item [ifOperStatus='1'] index: 10 [from value]
+ Found item [ifOperStatus='1'] index: 11 [from value]
+ Found item [ifOperStatus='1'] index: 12 [from value]
+ Found item [ifOperStatus='1'] index: 13 [from value]
+ Found item [ifOperStatus='1'] index: 14 [from value]
+ Found item [ifOperStatus='1'] index: 15 [from value]
+ Found item [ifOperStatus='1'] index: 16 [from value]
+ Found item [ifOperStatus='1'] index: 17 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='FastEthernet1'] index: 1 [from value]
+ Found item [ifDescr='FastEthernet2'] index: 2 [from value]
+ Found item [ifDescr='FastEthernet3'] index: 3 [from value]
+ Found item [ifDescr='FastEthernet4'] index: 4 [from value]
+ Found item [ifDescr='FastEthernet5'] index: 5 [from value]
+ Found item [ifDescr='FastEthernet6'] index: 6 [from value]
+ Found item [ifDescr='FastEthernet7'] index: 7 [from value]
+ Found item [ifDescr='FastEthernet8'] index: 8 [from value]
+ Found item [ifDescr='FastEthernet9'] index: 9 [from value]
+ Found item [ifDescr='FastEthernet10'] index: 10 [from value]
+ Found item [ifDescr='FastEthernet11'] index: 11 [from value]
+ Found item [ifDescr='FastEthernet12'] index: 12 [from value]
+ Found item [ifDescr='FastEthernet13'] index: 13 [from value]
+ Found item [ifDescr='FastEthernet14'] index: 14 [from value]
+ Found item [ifDescr='FastEthernet15'] index: 15 [from value]
+ Found item [ifDescr='FastEthernet16'] index: 16 [from value]
+ Found item [ifDescr='v1'] index: 17 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Found item [ifName='FastEthernet1'] index: 1 [from value]
+ Found item [ifName='FastEthernet2'] index: 2 [from value]
+ Found item [ifName='FastEthernet3'] index: 3 [from value]
+ Found item [ifName='FastEthernet4'] index: 4 [from value]
+ Found item [ifName='FastEthernet5'] index: 5 [from value]
+ Found item [ifName='FastEthernet6'] index: 6 [from value]
+ Found item [ifName='FastEthernet7'] index: 7 [from value]
+ Found item [ifName='FastEthernet8'] index: 8 [from value]
+ Found item [ifName='FastEthernet9'] index: 9 [from value]
+ Found item [ifName='FastEthernet10'] index: 10 [from value]
+ Found item [ifName='FastEthernet11'] index: 11 [from value]
+ Found item [ifName='FastEthernet12'] index: 12 [from value]
+ Found item [ifName='FastEthernet13'] index: 13 [from value]
+ Found item [ifName='FastEthernet14'] index: 14 [from value]
+ Found item [ifName='FastEthernet15'] index: 15 [from value]
+ Found item [ifName='FastEthernet16'] index: 16 [from value]
+ Found item [ifName='v1'] index: 17 [from value]
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Found item [ifAlias=''] index: 1 [from value]
+ Found item [ifAlias=''] index: 2 [from value]
+ Found item [ifAlias=''] index: 3 [from value]
+ Found item [ifAlias=''] index: 4 [from value]
+ Found item [ifAlias=''] index: 5 [from value]
+ Found item [ifAlias=''] index: 6 [from value]
+ Found item [ifAlias=''] index: 7 [from value]
+ Found item [ifAlias=''] index: 8 [from value]
+ Found item [ifAlias=''] index: 9 [from value]
+ Found item [ifAlias=''] index: 10 [from value]
+ Found item [ifAlias=''] index: 11 [from value]
+ Found item [ifAlias=''] index: 12 [from value]
+ Found item [ifAlias=''] index: 13 [from value]
+ Found item [ifAlias=''] index: 14 [from value]
+ Found item [ifAlias=''] index: 15 [from value]
+ Found item [ifAlias=''] index: 16 [from value]
+ Found item [ifAlias=''] index: 17 [from value]
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='7'] index: 1 [from value]
+ Found item [ifType='7'] index: 2 [from value]
+ Found item [ifType='7'] index: 3 [from value]
+ Found item [ifType='7'] index: 4 [from value]
+ Found item [ifType='7'] index: 5 [from value]
+ Found item [ifType='7'] index: 6 [from value]
+ Found item [ifType='7'] index: 7 [from value]
+ Found item [ifType='7'] index: 8 [from value]
+ Found item [ifType='7'] index: 9 [from value]
+ Found item [ifType='7'] index: 10 [from value]
+ Found item [ifType='7'] index: 11 [from value]
+ Found item [ifType='7'] index: 12 [from value]
+ Found item [ifType='7'] index: 13 [from value]
+ Found item [ifType='7'] index: 14 [from value]
+ Found item [ifType='7'] index: 15 [from value]
+ Found item [ifType='7'] index: 16 [from value]
+ Found item [ifType='1'] index: 17 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='100000000'] index: 1 [from value]
+ Found item [ifSpeed='100000000'] index: 2 [from value]
+ Found item [ifSpeed='100000000'] index: 3 [from value]
+ Found item [ifSpeed='100000000'] index: 4 [from value]
+ Found item [ifSpeed='100000000'] index: 5 [from value]
+ Found item [ifSpeed='100000000'] index: 6 [from value]
+ Found item [ifSpeed='100000000'] index: 7 [from value]
+ Found item [ifSpeed='100000000'] index: 8 [from value]
+ Found item [ifSpeed='0'] index: 9 [from value]
+ Found item [ifSpeed='100000000'] index: 10 [from value]
+ Found item [ifSpeed='100000000'] index: 11 [from value]
+ Found item [ifSpeed='100000000'] index: 12 [from value]
+ Found item [ifSpeed='100000000'] index: 13 [from value]
+ Found item [ifSpeed='100000000'] index: 14 [from value]
+ Found item [ifSpeed='100000000'] index: 15 [from value]
+ Found item [ifSpeed='100000000'] index: 16 [from value]
+ Found item [ifSpeed='0'] index: 17 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr='00:04:80:64:E6:8D'] index: 1 [from value]
+ Found item [ifHwAddr='00:04:80:64:E6:8E'] index: 2 [from value]
+ Found item [ifHwAddr='00:04:80:64:E6:8F'] index: 3 [from value]
+ Found item [ifHwAddr='00:04:80:64:E6:90'] index: 4 [from value]
+ Found item [ifHwAddr='00:04:80:64:E6:91'] index: 5 [from value]
+ Found item [ifHwAddr='00:04:80:64:E6:92'] index: 6 [from value]
+ Found item [ifHwAddr='00:04:80:64:E6:93'] index: 7 [from value]
+ Found item [ifHwAddr='00:04:80:64:E6:94'] index: 8 [from value]
+ Found item [ifHwAddr='00:04:80:64:E6:95'] index: 9 [from value]
+ Found item [ifHwAddr='00:04:80:64:E6:96'] index: 10 [from value]
+ Found item [ifHwAddr='00:04:80:64:E6:97'] index: 11 [from value]
+ Found item [ifHwAddr='00:04:80:64:E6:98'] index: 12 [from value]
+ Found item [ifHwAddr='00:04:80:64:E6:99'] index: 13 [from value]
+ Found item [ifHwAddr='00:04:80:64:E6:9A'] index: 14 [from value]
+ Found item [ifHwAddr='00:04:80:64:E6:9B'] index: 15 [from value]
+ Found item [ifHwAddr='00:04:80:64:E6:9C'] index: 16 [from value]
+ Found item [ifHwAddr='00:00:00:00:00:00'] index: 17 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='192.168.1.1'] index: 17 [from regexp oid parse]
+ Found item [ifIP='208.179.41.126'] index: 1 [from regexp oid parse]
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/interface.xml'
Any suggestions on how to fix this?

thanks
-joe
User avatar
lard
Cacti User
Posts: 165
Joined: Wed Jul 20, 2005 10:48 am
Location: UK - Cambridge

Post by lard »

Hello,

Found your post as I was having the same issue after upgrading and attempting to add new devices - the interface poll was returning 0 rows!

I should note though that the verbose query was also showing a SNMP timeout when walking the interfaces (whereas yours seems to get the information but does not acknowledge this)

Resolved this by going back to SNMP version 1 for each new device (was default version 2c) and this is now working correctly - could be that the devices just happened not to like SNMP v.2c (which is strange as I have identical cisco devices that do like version 2c) so I thought you may find this info relevant,

HTH,

Lard
---- lard007skype ----
neg1
Posts: 3
Joined: Mon Aug 22, 2005 8:08 pm

Post by neg1 »

I found my problem, in my mysqld.log I found this error:

Code: Select all

060116 13:10:35 [ERROR] /usr/local/mysql/libexec/mysqld: Can't open file: 'host_snmp_cache.MYI' (errno: 145)
I repaired the table, and everything seems to be working again.

Code: Select all

mysql> repair table host_snmp_cache;
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests