[CentOS] can't get Ethernet SNMP information

Wed Aug 13 15:59:36 UTC 2008
nate <centos at linuxpowered.net>

Rudi Ahlers wrote:

> Yes, I have clicked on the green circle a few times, and I have even removed
> the "Interface Statistics" altogether, and added it again

Very strange, can you include the output of the verbose query? What
version of cacti?

This is what I get, though I don't use this method to get network
stats from my systems, I have scripts that gather it for me(they
return about 20 points of data that I put into a single RRD per-host,
vastly improving performance by 10x+, though it's a labor intensive
process to add a new system to cacti for me as cacti wasn't designed
for doing things the way I'm doing them).

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at
'/home/cacti/public_html/cacti-0.8.7b/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]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Up'] index: 2 [from value]
+ Found item [ifOperStatus='Down'] index: 3 [from value]
+ Found item [ifOperStatus='Down'] index: 4 [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='lo'] index: 1 [from value]
+ Found item [ifDescr='eth0'] index: 2 [from value]
+ Found item [ifDescr='eth1'] index: 3 [from value]
+ Found item [ifDescr='sit0'] index: 4 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='softwareLoopback(24)'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 2 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 3 [from value]
+ Found item [ifType='tunnel(131)'] index: 4 [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='10000000'] index: 1 [from value]
+ Found item [ifSpeed='100000000'] index: 2 [from value]
+ Found item [ifSpeed='0'] index: 3 [from value]
+ Found item [ifSpeed='0'] index: 4 [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=''] index: 1 [from value]
+ Found item [ifHwAddr='00:00:14:22:24:4C:FB'] index: 2 [from value]
+ Found item [ifHwAddr='00:00:14:22:24:4C:FC'] index: 3 [from value]
+ Found item [ifHwAddr=''] index: 4 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found data query XML file at
'/home/cacti/public_html/cacti-0.8.7b/resource/snmp_queries/interface.xml'
+ Found data query XML file at
'/home/cacti/public_html/cacti-0.8.7b/resource/snmp_queries/interface.xml'
+ Found data query XML file at
'/home/cacti/public_html/cacti-0.8.7b/resource/snmp_queries/interface.xml'

nate