SNMP Cisco 2811

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

Moderators: Developers, Moderators

Frasco
Posts: 10
Joined: Tue Mar 08, 2011 5:14 pm

SNMP Cisco 2811

Post by Frasco »

Hello,

I've trying to add to my Cacti my Cisco 2811 Router. I have talked with the ISP (he is the owned of the router) and they have configured the SNMP.

The problem is that when I try to add the Device, the Cacti says me "SNMP Error" and I can't do anything. I've tested with the GetIf program and it says me "SysInfo variables OK", but it doesn't show me the Routing Table, The CPU Information... It only says me what is the IP of the Router.

What should I do? Is any problem of the Cisco configuration or what?

Thanks!
Best regards!
Frasco
Posts: 10
Joined: Tue Mar 08, 2011 5:14 pm

Re: SNMP Cisco 2811

Post by Frasco »

I've talked with my ISP and he says me that my Cisco Router is SNMP v1

I've tried again on the cacti and the log says:

"CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'192.168.0.10', and OID:'.1.3.6.1.2.1.1.1.0' "

I've increased the SNMP timeout to 1000000 but the problem persists.

Any idea?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: SNMP Cisco 2811

Post by BSOD2600 »

If GetIF and/or net-snmp snmpwalk do not work, then something is not properly configured with the router.

This is a non-windows specific issue, moving.
Frasco
Posts: 10
Joined: Tue Mar 08, 2011 5:14 pm

Re: SNMP Cisco 2811

Post by Frasco »

I've tried the command snmpwalk -v1 -c public 192.168.0.10 into CMD and I get this:
C:\>snmpwalk -v1 -c public 192
.168.0.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (522070053) 60 days, 10:11:40.5
3
SNMPv2-MIB::sysName.0 = STRING: madrid2
IF-MIB::ifDescr.1 = STRING: FastEthernet0/0
IF-MIB::ifDescr.2 = STRING: FastEthernet0/1
IF-MIB::ifDescr.3 = STRING: Serial0/0/0
IF-MIB::ifDescr.4 = STRING: Serial0/1/0
IF-MIB::ifDescr.5 = STRING: Serial0/2/0
IF-MIB::ifDescr.6 = STRING: VoIP-Null0
IF-MIB::ifDescr.7 = STRING: Null0
IF-MIB::ifDescr.11 = STRING: Loopback0
IF-MIB::ifDescr.12 = STRING: Multilink1
IF-MIB::ifDescr.13 = STRING: NVI0
IF-MIB::ifInOctets.1 = Counter32: 1818245193
IF-MIB::ifInOctets.2 = Counter32: 0
IF-MIB::ifInOctets.3 = Counter32: 3339943974
IF-MIB::ifInOctets.4 = Counter32: 4050803373
IF-MIB::ifInOctets.5 = Counter32: 3888979948
IF-MIB::ifInOctets.6 = Counter32: 0
IF-MIB::ifInOctets.7 = Counter32: 0
IF-MIB::ifInOctets.11 = Counter32: 0
IF-MIB::ifInOctets.12 = Counter32: 3524566416
IF-MIB::ifInOctets.13 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 668
IF-MIB::ifInErrors.2 = Counter32: 0
IF-MIB::ifInErrors.3 = Counter32: 1
IF-MIB::ifInErrors.4 = Counter32: 0
IF-MIB::ifInErrors.5 = Counter32: 4
IF-MIB::ifInErrors.6 = Counter32: 0
IF-MIB::ifInErrors.7 = Counter32: 0
IF-MIB::ifInErrors.11 = Counter32: 0
IF-MIB::ifInErrors.12 = Counter32: 26600
IF-MIB::ifInErrors.13 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 3625907684
IF-MIB::ifOutOctets.2 = Counter32: 0
IF-MIB::ifOutOctets.3 = Counter32: 891590666
IF-MIB::ifOutOctets.4 = Counter32: 885117114
IF-MIB::ifOutOctets.5 = Counter32: 873442758
IF-MIB::ifOutOctets.6 = Counter32: 0
IF-MIB::ifOutOctets.7 = Counter32: 0
IF-MIB::ifOutOctets.11 = Counter32: 0
IF-MIB::ifOutOctets.12 = Counter32: 2606760118
IF-MIB::ifOutOctets.13 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutErrors.2 = Counter32: 0
IF-MIB::ifOutErrors.3 = Counter32: 0
IF-MIB::ifOutErrors.4 = Counter32: 0
IF-MIB::ifOutErrors.5 = Counter32: 0
IF-MIB::ifOutErrors.6 = Counter32: 0
IF-MIB::ifOutErrors.7 = Counter32: 0
IF-MIB::ifOutErrors.11 = Counter32: 0
IF-MIB::ifOutErrors.12 = Counter32: 0
IF-MIB::ifOutErrors.13 = Counter32: 0
IF-MIB::ifAlias.1 = STRING:
IF-MIB::ifAlias.2 = STRING:
IF-MIB::ifAlias.3 = STRING: POS E1
IF-MIB::ifAlias.4 = STRING:
IF-MIB::ifAlias.5 = STRING:
IF-MIB::ifAlias.6 = STRING:
IF-MIB::ifAlias.7 = STRING:
IF-MIB::ifAlias.11 = STRING:
IF-MIB::ifAlias.12 = STRING: IC-FR 265218-19-20 BPAL-RNA-01 IES25002588
IF-MIB::ifAlias.13 = STRING:
End of MIB
It means that my router is answering me, is not? Should I try another thing?
Thanks!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: SNMP Cisco 2811

Post by gandalf »

Please perform an snmpget against .1.3.6.1.2.1.1.1.0 and post results
R.
Frasco
Posts: 10
Joined: Tue Mar 08, 2011 5:14 pm

Re: SNMP Cisco 2811

Post by Frasco »

gandalf wrote:Please perform an snmpget against .1.3.6.1.2.1.1.1.0 and post results
R.
Hello, I've tried the next command and I obtain the next error:

Code: Select all

C:\>snmpget -v 1 -c public 192
.168.0.10 .1.3.6.1.2.1.1.1.0
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-MIB::sysDescr.0
I don't know if I'm writing good the command or not.

Thanks!
Fran
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: SNMP Cisco 2811

Post by gandalf »

Cacti tries to detect availability based on this OID. Most systems respond to that OID. Unfortunately, your device doesn't. It may happen, that the configuration prohibits access to that. Again, talk to your ISP regarding this fact.
R.
Frasco
Posts: 10
Joined: Tue Mar 08, 2011 5:14 pm

Re: SNMP Cisco 2811

Post by Frasco »

Hello, I have phoned to my ISP and they have told me that everything's ok. They have told me too that, if we see the comand of the previous post, it says "Failed object: SNMPv2-MIB::sysDescr.0" and they don't know what means the v2 into this line, because the CISCO operates on v1.

Can we do anything? They say me that all is ready and they can receive data succesfully.

Thanks!
Fran
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: SNMP Cisco 2811

Post by gandalf »

Frasco wrote:I've tried the command snmpwalk -v1 -c public 192.168.0.10 into CMD and I get this:
C:\>snmpwalk -v1 -c public 192.168.0.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (522070053) 60 days, 10:11:40.5
3
SNMPv2-MIB::sysName.0 = STRING: madrid2
...
But this WAS working!
In fact, SNMPv2-MIB is (afaik), optional.
As a workaround, you may want to edit host.php and change the failing OID to .1.3.6.1.2.1.1.5.0 (which related to sysName)
R.
Frasco
Posts: 10
Joined: Tue Mar 08, 2011 5:14 pm

Re: SNMP Cisco 2811

Post by Frasco »

gandalf wrote:
Frasco wrote:I've tried the command snmpwalk -v1 -c public 192.168.0.10 into CMD and I get this:
C:\>snmpwalk -v1 -c public 192.168.0.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (522070053) 60 days, 10:11:40.5
3
SNMPv2-MIB::sysName.0 = STRING: madrid2
...
But this WAS working!
In fact, SNMPv2-MIB is (afaik), optional.
As a workaround, you may want to edit host.php and change the failing OID to .1.3.6.1.2.1.1.5.0 (which related to sysName)
R.

Ok. I have changed the OID into the host.php and now I can see the name of the system, uptime, hostname... into the device section. But I can't create graphs for the host.

I have the data query "SNMP - Interface stadistics" and in debug mode I can see the next log:

Code: Select all

Data Query Debug Information
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:/Apache2/htdocs/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 'C:/Apache2/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:/Apache2/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:/Apache2/htdocs/cacti/resource/snmp_queries/interface.xml'
And, if I go to the Cacti Log I can see:

Code: Select all

03/30/2011 11:33:02 PM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'192.168.0.10', and OID:'.1.3.6.1.2.1.1.4.0'
03/30/2011 11:33:02 PM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'192.168.0.10', and OID:'.1.3.6.1.2.1.1.6.0'
03/30/2011 11:33:02 PM - CMDPHP: Poller[0] WARNING: SNMP Walk Timeout for Host:'192.168.0.10', and OID:'.1.3.6.1.4.1.2021.9.1.1' 
What must I do??

Thank you very much again, Gandalf.

Fran
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: SNMP Cisco 2811

Post by gandalf »

It seems, that ".1.3.6.1.2.1.2.2.1.1" does not return any data. Please walk against that OID using the option "-On" to get numeric OIDs. I fear, that this very OID is still blocked
R.
Frasco
Posts: 10
Joined: Tue Mar 08, 2011 5:14 pm

Re: SNMP Cisco 2811

Post by Frasco »

gandalf wrote:It seems, that ".1.3.6.1.2.1.2.2.1.1" does not return any data. Please walk against that OID using the option "-On" to get numeric OIDs. I fear, that this very OID is still blocked
R.
Hello Gandalf, I'm sorry but I can't obtain data because I don't know surely the command I have to put. I've try the next commands:

Code: Select all

C:\>snmpwalk -v1 -c public 192.168.0.10 -On .1.3.6.1.2.1.2.2.1.
-On:  (Sub-id not found: (top) -> -On)

C:\>snmpwalk -v1 -c public 192.168.0.10 -On
-On:  (Sub-id not found: (top) -> -On)

C:\>snmpwalk -v1 -c public .1.3.6.1.2.1.2.2.1.
snmpwalk: Unknown host (.1.3.6.1.2.1.2.2.1.) (No such file or directory)

C:\>snmpwalk -v1 -c public 192.168.0.10 .1.3.6.1.2.1.2.2.1.
.1.3.6.1.2.1.2.2.1.:  (Sub-id not found: ifEntry -> )

C:\>snmpwalk -v1 -c public 192.168.0.10 .1.3.6.1.2.1.2.2.1.1 -On
Are they ok?

Thanks
Fran
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: SNMP Cisco 2811

Post by gandalf »

snmpwalk -v1 -c public -O n 192.168.0.10 .1.3.6.1.2.1.2.2.1
should do
R.
Frasco
Posts: 10
Joined: Tue Mar 08, 2011 5:14 pm

Re: SNMP Cisco 2811

Post by Frasco »

gandalf wrote:snmpwalk -v1 -c public -O n 192.168.0.10 .1.3.6.1.2.1.2.2.1
should do
R.
This is what I obtain...

Code: Select all

C:>snmpwalk -v1 -c public -O n 192.168.0.10 .1.3.6.1.2.1.2.2.1
.1.3.6.1.2.1.2.2.1.2.1 = STRING: FastEthernet0/0
.1.3.6.1.2.1.2.2.1.2.2 = STRING: FastEthernet0/1
.1.3.6.1.2.1.2.2.1.2.3 = STRING: Serial0/0/0
.1.3.6.1.2.1.2.2.1.2.4 = STRING: Serial0/1/0
.1.3.6.1.2.1.2.2.1.2.5 = STRING: Serial0/2/0
.1.3.6.1.2.1.2.2.1.2.6 = STRING: VoIP-Null0
.1.3.6.1.2.1.2.2.1.2.7 = STRING: Null0
.1.3.6.1.2.1.2.2.1.2.11 = STRING: Loopback0
.1.3.6.1.2.1.2.2.1.2.12 = STRING: Multilink1
.1.3.6.1.2.1.2.2.1.2.13 = STRING: NVI0
.1.3.6.1.2.1.2.2.1.10.1 = Counter32: 3924743973
.1.3.6.1.2.1.2.2.1.10.2 = Counter32: 0
.1.3.6.1.2.1.2.2.1.10.3 = Counter32: 3504562292
.1.3.6.1.2.1.2.2.1.10.4 = Counter32: 3539306997
.1.3.6.1.2.1.2.2.1.10.5 = Counter32: 3532670043
.1.3.6.1.2.1.2.2.1.10.6 = Counter32: 0
.1.3.6.1.2.1.2.2.1.10.7 = Counter32: 0
.1.3.6.1.2.1.2.2.1.10.11 = Counter32: 0
.1.3.6.1.2.1.2.2.1.10.12 = Counter32: 3802748817
.1.3.6.1.2.1.2.2.1.10.13 = Counter32: 0
.1.3.6.1.2.1.2.2.1.14.1 = Counter32: 81
.1.3.6.1.2.1.2.2.1.14.2 = Counter32: 0
.1.3.6.1.2.1.2.2.1.14.3 = Counter32: 0
.1.3.6.1.2.1.2.2.1.14.4 = Counter32: 0
.1.3.6.1.2.1.2.2.1.14.5 = Counter32: 0
.1.3.6.1.2.1.2.2.1.14.6 = Counter32: 0
.1.3.6.1.2.1.2.2.1.14.7 = Counter32: 0
.1.3.6.1.2.1.2.2.1.14.11 = Counter32: 0
.1.3.6.1.2.1.2.2.1.14.12 = Counter32: 966
.1.3.6.1.2.1.2.2.1.14.13 = Counter32: 0
.1.3.6.1.2.1.2.2.1.16.1 = Counter32: 4091152102
.1.3.6.1.2.1.2.2.1.16.2 = Counter32: 0
.1.3.6.1.2.1.2.2.1.16.3 = Counter32: 1245067170
.1.3.6.1.2.1.2.2.1.16.4 = Counter32: 1246528347
.1.3.6.1.2.1.2.2.1.16.5 = Counter32: 1244137345
.1.3.6.1.2.1.2.2.1.16.6 = Counter32: 0
.1.3.6.1.2.1.2.2.1.16.7 = Counter32: 0
.1.3.6.1.2.1.2.2.1.16.11 = Counter32: 0
.1.3.6.1.2.1.2.2.1.16.12 = Counter32: 3731985653
.1.3.6.1.2.1.2.2.1.16.13 = Counter32: 0
.1.3.6.1.2.1.2.2.1.20.1 = Counter32: 0
.1.3.6.1.2.1.2.2.1.20.2 = Counter32: 0
.1.3.6.1.2.1.2.2.1.20.3 = Counter32: 0
.1.3.6.1.2.1.2.2.1.20.4 = Counter32: 0
.1.3.6.1.2.1.2.2.1.20.5 = Counter32: 0
.1.3.6.1.2.1.2.2.1.20.6 = Counter32: 0
.1.3.6.1.2.1.2.2.1.20.7 = Counter32: 0
.1.3.6.1.2.1.2.2.1.20.11 = Counter32: 0
.1.3.6.1.2.1.2.2.1.20.12 = Counter32: 0
.1.3.6.1.2.1.2.2.1.20.13 = Counter32: 0
Thanks!
Fran
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: SNMP Cisco 2811

Post by gandalf »

resource/snmp_queries/interface.xml indeed requires that <oid_index>.1.3.6.1.2.1.2.2.1.1</oid_index>is available.
But your walk does not show any data for the interface index.
This looks like a root cause to your problem.
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest