SNMP Cisco 2811
Moderators: Developers, Moderators
SNMP Cisco 2811
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!
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!
Re: SNMP Cisco 2811
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?
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?
Re: SNMP Cisco 2811
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.
This is a non-windows specific issue, moving.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: SNMP Cisco 2811
I've tried the command snmpwalk -v1 -c public 192.168.0.10 into CMD and I get this:
Thanks!
It means that my router is answering me, is not? Should I try another thing?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
Thanks!
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: SNMP Cisco 2811
Please perform an snmpget against .1.3.6.1.2.1.1.1.0 and post results
R.
R.
Re: SNMP Cisco 2811
Hello, I've tried the next command and I obtain the next error:gandalf wrote:Please perform an snmpget against .1.3.6.1.2.1.1.1.0 and post results
R.
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
Thanks!
Fran
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: SNMP Cisco 2811
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.
R.
Re: SNMP Cisco 2811
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
Can we do anything? They say me that all is ready and they can receive data succesfully.
Thanks!
Fran
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: SNMP Cisco 2811
But this WAS working!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
...
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.
Re: SNMP Cisco 2811
gandalf wrote:But this WAS working!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
...
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'
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'
Thank you very much again, Gandalf.
Fran
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: SNMP Cisco 2811
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.
R.
Re: SNMP Cisco 2811
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: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.
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
Thanks
Fran
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: SNMP Cisco 2811
snmpwalk -v1 -c public -O n 192.168.0.10 .1.3.6.1.2.1.2.2.1
should do
R.
should do
R.
Re: SNMP Cisco 2811
This is what I obtain...gandalf wrote:snmpwalk -v1 -c public -O n 192.168.0.10 .1.3.6.1.2.1.2.2.1
should do
R.
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
Fran
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: SNMP Cisco 2811
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.
But your walk does not show any data for the interface index.
This looks like a root cause to your problem.
R.
Who is online
Users browsing this forum: No registered users and 1 guest