Can not discover Cisco Router/Interfaces

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

Moderators: Developers, Moderators

Post Reply
twebb
Posts: 3
Joined: Thu Dec 04, 2003 1:20 pm

Can not discover Cisco Router/Interfaces

Post by twebb »

Hello,

I just installed cacti-0.8.4 and can not seem to get it to discover a cisco router or its interfaces. Using snmpwalk from the shell I see everything just fine. In the cacti console, after going to polling hosts and adding a description and placing the IP Adress in Hostname as well as the same community string I used in the shell, I see SNMP Error in red under the SNMP Information Header. When I click Verbose Query next to the SNMP - Interface Statistics line, I see:

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/export/home/twebb/cacti-0.8.4/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

Any information that you can provide would be of great assistance. I have had this problem with multiple versions of cacti. If there is a log file I can check that may be of some help here. Thanks in advance!

--trey
twebb
Posts: 3
Joined: Thu Dec 04, 2003 1:20 pm

Can not discover Cisco Router/Interfaces

Post by twebb »

Somebody. Anybody. Help! lol.
memdy
Posts: 2
Joined: Sat Dec 06, 2003 10:25 pm
Location: Earth

Post by memdy »

Are you using SNMP version 1,2,3? and specifying the same host name as you used in the shell.

What model Cisco router? What OS are you running Cacti on?

What command syntax did you use from the shell, and is this shell on the same host you are running Cacti on?

Here's my verbose query output for my interfaces on a small 1600 router

+ 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='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Located input field 'ifDesc' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDesc='Ethernet0'] index: 1 [from value]
+ Found item [ifDesc='Ethernet1'] index: 2 [from value]
+ Found item [ifDesc='Null0'] index: 3 [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='Et0'] index: 1 [from value]
+ Found item [ifName='Et1'] index: 2 [from value]
+ Found item [ifName='Nu0'] index: 3 [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]
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='ethernetCsmacd(6)'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 2 [from value]
+ Found item [ifType='other(1)'] index: 3 [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='10000000'] index: 2 [from value]
+ Found item [ifSpeed='4294967295'] index: 3 [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:00:30:94:BE:77:10'] index: 1 [from value]
+ Found item [ifHwAddr='00:00:30:94:BE:77:11'] index: 2 [from value]
+ Found item [ifHwAddr=''] index: 3 [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='69.17.171.8'] index: 1 [from regexp parse]
+ Found item [ifIP='199.168.96.38'] index: 2 [from regexp parse]
twebb
Posts: 3
Joined: Thu Dec 04, 2003 1:20 pm

Post by twebb »

Thanks for the response! I have tried both v1 and v2 with no apparent change in the result. The OS is Solaris 8. The Cisco is a 7513. From the shell (on the same host that cacti is running on) I execute: nms-lab3$ snmpwalk 192.168.51.2

here is a snippet of the output:

SNMPv2-MIB::sysDescr.0 = STRING: Cisco Internetwork Operating System Software
IOS (tm) RSP Software (RSP-K4PV-M), Version 12.0(21)S7, EARLY DEPLOYMENT RELEASE SOFTWARE (fc2)
TAC Support: http://www.cisco.com/tac
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Fri 02-May-03 1
SNMPv2-MIB::sysObjectID.0 = OID: CISCO-PRODUCTS-MIB::cisco7505
SNMPv2-MIB::sysUpTime.0 = Timeticks: (44453388) 5 days, 3:28:53.88
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: LAB-7500-1.QWEST-P1
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 6
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
IF-MIB::ifNumber.0 = INTEGER: 28
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifIndex.6 = INTEGER: 6
IF-MIB::ifIndex.7 = INTEGER: 7
IF-MIB::ifIndex.8 = INTEGER: 8
IF-MIB::ifIndex.9 = INTEGER: 9
IF-MIB::ifIndex.10 = INTEGER: 10
IF-MIB::ifIndex.11 = INTEGER: 11
IF-MIB::ifIndex.12 = INTEGER: 12
Guest

Post by Guest »

Ok. After correcting my path (to include the name of the binary itself) I dont get the SNMP Error under SNMP Information. Now I see the following:

System: Compiled Fri 02-May-03 1
Uptime: Timeticks: (44594614) 5 days, 3:52:26.14
Hostname: LAB-7500-2.AT-GR1

However, under verbose query I still see:

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/export/home/twebb/cacti-0.8.4/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

Whereas, from the shell I do see interfaces. Almost there... any ideas?
Post Reply

Who is online

Users browsing this forum: tembarek and 1 guest