snmp v2 interface query on cisco

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

Moderators: Developers, Moderators

Post Reply
pippi
Posts: 5
Joined: Mon Feb 27, 2006 4:21 am

snmp v2 interface query on cisco

Post by pippi »

I can't get an interface statistics with snmp v2 from a cisco switch.

It works well with v1 but i need v2 for 64 bit counters.

My Cisco snmpv2 config:

snmp-server group group-name v2c
snmp-server community cname RO
snmp-server user username group-name v2c

######

I think this configuration works, because i get the right values with:

snmpwalk -v 2c -c cname xxx.xxx.xxx.xxx .1.3.6.1.2.1.31.1.1.1.6

But i did't get ANY information with cacti

Maybe someone has a addin od idea for a cisco 6500 switch which allows to graph the interface traffic?
pippi
Posts: 5
Joined: Mon Feb 27, 2006 4:21 am

Post by pippi »

Thats the debug information with v2 when i turn on v1 --> save and do the same again it works!

Code: Select all

Data Query Debug Information
+ 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'
+ No SNMP data returned
+ 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'

Code: Select all

+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
And how can i change this, because thats no 64 bit counter
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The list of indices should not be affected whether you use v1 or v2c. As long as the XML files contains <fields> for 64 bit values that should do. Are you using the standard cacti interface.xml or a user xml file?
What does an snmpwalk (v1 and v2c) with OID = .1.3.6.1.2.1.2.2.1.1 return (when running from cli)?
Reinhard
daemon
Cacti User
Posts: 61
Joined: Tue Jun 21, 2005 12:16 pm

Post by daemon »

on a semi-related note, how do I know if I should be using 64 bit counters for a particular device? I've been using 32 for everything and it all appears to be working fine.
cacti 0.8.6h | cactid 0.8.6g
mysql 4.1.16 | net-snmp 5.1.2-11 | rrdtool 1.0.50 | apache 2.2.0 | php 5.1.2 | RHEL AS rel. 4 kernel 2.6.9-22.ELsmp
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

If we are talking about network devices then you should use 64-bit counters for any interface with maximum speed above 114 Mb/s (if polling every 5 min).

- Piotr
pippi
Posts: 5
Joined: Mon Feb 27, 2006 4:21 am

Post by pippi »

I need 64 Bit Counter, because i want to monitor some 1GB and 4 10GB Interfaces.

I tried it with the standard xml file and i createt e 2nd one. There i deleted every entry from the standard-file which are not 64 Bit. And the same:

NO SNMP Data Returned.

I have to use v2 but i only get interface information with v1. But a Query on the CLI returns the right values!

With SNMPV2 i only get the switch information.

edit:

I isntalled cacti and the os (fc4) new

Now i get some interface information with snmpv2 but it don't work with 64bit.
I mad a copy of the interface.xml file an deletet "everything" excepted the two oids .1.3.6.1.2.1.31.1.1.1.6 and 10
But it won't run:

Here is an example:

Code: Select all

+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface64.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.31.1.1.1.6'
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'

I hope someone know how to monitor with 64 bit counters
I don't know what to do!

regards pippi
leady
Posts: 3
Joined: Wed Jan 25, 2006 10:01 pm

Post by leady »

it 's my problem too

use snmp v2 ,i can't get traffic data of my switch (3550 4006)
leady
Posts: 3
Joined: Wed Jan 25, 2006 10:01 pm

Post by leady »

perhaps you should upgrade your net-snmp
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests