Cannot graph Cisco switch - no snmp data returned

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

Moderators: Developers, Moderators

Post Reply
SeanLee
Posts: 44
Joined: Wed Oct 29, 2003 10:41 pm

Cannot graph Cisco switch - no snmp data returned

Post by SeanLee »

Hey I have a Cisco MDS 9216 Fiber Channel switch/router. I can snmp walk it from a unix box shell, ie:

Code: Select all

snmpwalk -v 3 -A adminpass -u admin -c public 10.10.10.19
That returns a whole bunch of stuff:

Code: Select all

SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.12.3.1.3.380
SNMPv2-MIB::sysUpTime.0 = Timeticks: (4189331767) 484 days, 21:01:57.67
SNMPv2-MIB::sysContact.0 = STRING: 
SNMPv2-MIB::sysName.0 = STRING: cisco-mds
SNMPv2-MIB::sysLocation.0 = STRING: 
SNMPv2-MIB::sysServices.0 = INTEGER: 70
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.2 = OID: TCP-MIB::tcpMIB
etc...
etc...
However when I try to add it in cacti, I get the "snmp error" message at the top, and the "No SNMP data returned" message in the Verbose Query. I've tried combinations of everything - using different templates and uname/pass with all versions of SNMP - nothing works. What do I need to do to get this working? I'm running latest stable version of cacti on Linux RH9 with up2date snmp rpm's installed.

Any comments appreciated.

Thanks,
Sean
PhilG
Posts: 7
Joined: Fri Feb 27, 2004 6:14 pm

Catalyst 6509 SNMP error

Post by PhilG »

I am also having a problem with 0.8.5 polling a Cisco switch. I have used previous version without any problems. The verbose query shows that the MIBs are being walked and results are being returned. The 'SNMP error' appears at the top of the device page. I did notice that the code in host.php is querying 1.3.6.1.2.1.1 (MIB2:System) items. The Catalyst switch is returning null values for some of those items, specifically sysUpTime. This may be why the 'SNMP error' message appears. I have not yet been able to sort through the rest of the code so perhaps Ian and others can help wih this one?
PhilG
Posts: 7
Joined: Fri Feb 27, 2004 6:14 pm

Post by PhilG »

Sean,
Which SNMP version are you using under Cacti Settings:General tab?
SeanLee
Posts: 44
Joined: Wed Oct 29, 2003 10:41 pm

Post by SeanLee »

PhilG wrote:Sean,
Which SNMP version are you using under Cacti Settings:General tab?
I am using "NET-SNMP 5.x"
Guest

Post by Guest »

Perhaps this switch does not have any entries in the Interface MIB that Cacti is looking for? Do you have a MIB browser? Can you query for 1.3.6.1.2.1.2.1.0 with a "snmpget"? How many interfaces are listed? Then from 1.3.6.1.2.1.2.2.1.1.(ifIndex#) to 1.3.6.1.2.1.2.2.1.22.(ifIndex#) you should be able to get stats using "snmpget". If you browse and get no results from these MIBs, you may have to find out which MIBs contain the stats for that fiber channle switch. I could be barking up the wrong tree as well....The reason I headed this route is because the output that you displayed only show the MIB2:System stuff....Try and validate if you are getting anything form the MIB2:interfaces

Phil
User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

Post by Morgan »

i had the same problem. deleting the community in the device and re entering it fixed it. refreshign the data query on the create new graph screen displayed my interfaces.
PhilG
Posts: 7
Joined: Fri Feb 27, 2004 6:14 pm

Post by PhilG »

Well....I was able to get this to work with my Cat6509. I finally tried switching to SNMP 1 which works. If I switch to 2, it fails again.
SeanLee
Posts: 44
Joined: Wed Oct 29, 2003 10:41 pm

Post by SeanLee »

PhilG wrote:Well....I was able to get this to work with my Cat6509. I finally tried switching to SNMP 1 which works. If I switch to 2, it fails again.
I don't believe snmp v1 is an option on my device.
Craig Pitout

RE:Cannot graph Cisco switch - no snmp data returned

Post by Craig Pitout »

I am having the same Problem with my PIX Firewall. I can SNMP browse and see all the interfaces - in fact the same device is being sucessfully graphed by MRTG based on the same community name on the same box (Linux RH8)

Thanks

Craig Pitout
craigpitout@yahoo.com
radomsmj
Posts: 1
Joined: Mon Apr 04, 2005 8:34 am

Post by radomsmj »

We have a Cisco MDS9500 with the same problem. When performing a verbose query we get the following results:

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/netmon/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 '/netmon/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/netmon/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/netmon/cacti/resource/snmp_queries/interface.xml'


When querying the OID .1.3.6.1.2.1.2.2.1.1 with snmpwalk, we get similar results as with a Cat3550.

Has anyone made any progress in this thread? Has anyone tried using the rrds created from the MDS Performance Manager?

Thanks,
MikeR
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests