SNMP Interface statistics and Cisco

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

Moderators: Developers, Moderators

Post Reply
hank42
Posts: 8
Joined: Sun Apr 03, 2005 9:45 pm

SNMP Interface statistics and Cisco

Post by hank42 »

Been wrestling with this one for a while.
Cacti 0.8.6c on mandrake 10.1.
Cacti works great - am able to graph Cisco CPU, memory, host cpu, processes etc.

I am trying to graph Cisco Interface stats using the "SNMP -Interface Statistics" data query and am experiencing a really strange problem.

It polls the router fine, and the verbose query looks to be accurate to me:



+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/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='IF-MIB::ifIndex.1 1'] index: IF-MIB::ifIndex.1 1 [from value]
+ Found item [ifIndex='IF-MIB::ifIndex.2 2'] index: IF-MIB::ifIndex.2 2 [from value]
+ Found item [ifIndex='IF-MIB::ifIndex.3 3'] index: IF-MIB::ifIndex.3 3 [from value]
+ Found item [ifIndex='IF-MIB::ifIndex.4 4'] index: IF-MIB::ifIndex.4 4 [from value]
+ Found item [ifIndex='IF-MIB::ifIndex.5 5'] index: IF-MIB::ifIndex.5 5 [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='IF-MIB::ifOperStatus.1 1'] index: IF-MIB::ifOperStatus.1 1 [from value]
+ Found item [ifOperStatus='IF-MIB::ifOperStatus.2 1'] index: IF-MIB::ifOperStatus.2 1 [from value]
+ Found item [ifOperStatus='IF-MIB::ifOperStatus.3 1'] index: IF-MIB::ifOperStatus.3 1 [from value]
+ Found item [ifOperStatus='IF-MIB::ifOperStatus.4 1'] index: IF-MIB::ifOperStatus.4 1 [from value]
+ Found item [ifOperStatus='IF-MIB::ifOperStatus.5 2'] index: IF-MIB::ifOperStatus.5 2 [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='IF-MIB::ifDescr.1 Serial0/0'] index: IF-MIB::ifDescr.1 Serial0/0 [from value]
+ Found item [ifDescr='IF-MIB::ifDescr.2 FastEthernet0/0'] index: IF-MIB::ifDescr.2 FastEthernet0/0 [from value]
+ Found item [ifDescr='IF-MIB::ifDescr.3 Ethernet1/0'] index: IF-MIB::ifDescr.3 Ethernet1/0 [from value]
+ Found item [ifDescr='IF-MIB::ifDescr.4 Null0'] index: IF-MIB::ifDescr.4 Null0 [from value]
+ Found item [ifDescr='IF-MIB::ifDescr.5 Virtual-Template1'] index: IF-MIB::ifDescr.5 Virtual-Template1 [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='IF-MIB::ifName.1 Se0/0'] index: IF-MIB::ifName.1 Se0/0 [from value]
+ Found item [ifName='IF-MIB::ifName.2 Fa0/0'] index: IF-MIB::ifName.2 Fa0/0 [from value]
+ Found item [ifName='IF-MIB::ifName.3 Et1/0'] index: IF-MIB::ifName.3 Et1/0 [from value]
+ Found item [ifName='IF-MIB::ifName.4 Nu0'] index: IF-MIB::ifName.4 Nu0 [from value]
+ Found item [ifName='IF-MIB::ifName.5 Vt1'] index: IF-MIB::ifName.5 Vt1 [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='IF-MIB::ifAlias.1'] index: 1 [from value]
+ Found item [ifAlias='IF-MIB::ifAlias.2'] index: 2 [from value]
+ Found item [ifAlias='IF-MIB::ifAlias.3'] index: 3 [from value]
+ Found item [ifAlias='IF-MIB::ifAlias.4'] index: 4 [from value]
+ Found item [ifAlias='IF-MIB::ifAlias.5'] index: 5 [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='IF-MIB::ifType.1 23'] index: IF-MIB::ifType.1 23 [from value]
+ Found item [ifType='IF-MIB::ifType.2 6'] index: IF-MIB::ifType.2 6 [from value]
+ Found item [ifType='IF-MIB::ifType.3 6'] index: IF-MIB::ifType.3 6 [from value]
+ Found item [ifType='IF-MIB::ifType.4 1'] index: IF-MIB::ifType.4 1 [from value]
+ Found item [ifType='IF-MIB::ifType.5 23'] index: IF-MIB::ifType.5 23 [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='IF-MIB::ifSpeed.1 1536000'] index: IF-MIB::ifSpeed.1 1536000 [from value]
+ Found item [ifSpeed='IF-MIB::ifSpeed.2 100000000'] index: IF-MIB::ifSpeed.2 100000000 [from value]
+ Found item [ifSpeed='IF-MIB::ifSpeed.3 10000000'] index: IF-MIB::ifSpeed.3 10000000 [from value]
+ Found item [ifSpeed='IF-MIB::ifSpeed.4 4294967295'] index: IF-MIB::ifSpeed.4 4294967295 [from value]
+ Found item [ifSpeed='IF-MIB::ifSpeed.5 100000000'] index: IF-MIB::ifSpeed.5 100000000 [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='IF-MIB::ifPhysAddress.1'] index: 1 [from value]
+ Found item [ifHwAddr='IF-MIB:00:IFPHYSADDRESS.2:00:09:B7:5F:DD:FF'] index: IF-MIB::ifPhysAddress.2 0:9:b7:5f:dd:ff [from value]
+ Found item [ifHwAddr='IF-MIB:00:IFPHYSADDRESS.3:00:04:DD:0C:D6:B5'] index: IF-MIB::ifPhysAddress.3 0:4:dd:c:d6:b5 [from value]
+ Found item [ifHwAddr='IF-MIB::ifPhysAddress.4'] index: 4 [from value]
+ Found item [ifHwAddr='IF-MIB::ifPhysAddress.5'] index: 5 [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='IP-MIB::ipAdEntIfIndex.13.19.182.250 1'] index: 1 [from regexp oid parse]
+ Found item [ifIP='IP-MIB::ipAdEntIfIndex.13.70.101.41 2'] index: 1 [from regexp oid parse]
+ Found item [ifIP='IP-MIB::ipAdEntIfIndex.172.30.0.2 3'] index: 1 [from regexp oid parse]
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'


The problem appears when I go to "Create graphs":
Under the "Data Query[SNMP - Interface Statistics]" section, all of the data is visible, but not each entry is on a different line. So instead of:

Index Status Description Name Alias Type Speed Hardware Address
1 1 Fa0/0 etc......

It's all skewed:


Index Status Description Name Alias Type Speed Hardware Address

IF-MIB::ifIndex.1 1
IF-MIB::ifOperStatus.1 1
IF-MIB::ifName.2 Fa0/0

I've attached a screen dump that illustrates the problem.

Could it be not parsing properly?
[/img]
Attachments
Strange screen
Strange screen
dump.jpg (47.17 KiB) Viewed 3768 times
hank42
Posts: 8
Joined: Sun Apr 03, 2005 9:45 pm

Murphy..

Post by hank42 »

After hours of searching, just seconds after I post this, I found the right thread that describers this problem - no solution yet however.

http://forums.cacti.net/viewtopic.php?t ... e&start=30
hank42
Posts: 8
Joined: Sun Apr 03, 2005 9:45 pm

Solution

Post by hank42 »

And not to be too redundant, I found a solution as well.

http://forums.cacti.net/viewtopic.php?t=6864&highlight=
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I need some information from you. You are the second person to have this problem.

What OS?
Version of NET-SNMP? Where did you get your NET-SNMP?

Does php have the snmp support turned on?

Is this device SNMPv2 or SNMPv1?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests