Page 1 of 2
Some Cisco OIDs Not Working on Router
Posted: Mon Nov 10, 2014 9:41 am
by perric
Hello,
I have Nagios XI 2012R2.9. Using the check_snmp from the GUI, i am able to test and get one OID to respond, but not another on the same Cisco router:
-o .1.3.6.1.2.1.33.1.2.1.0 (system uptime) --> OUTPUT: SNMP OK - Timeticks: (23531231) 2 days, 17:21:52.31 |
-o .1.3.6.1.2.1.10.20.1.3.4.1.2 (isdnLapdOperStatus) ---> OUTPUT: SNMP problem - No data received from host
I am converting my SNMP monitoring from PRTG to Nagios and the OIDs work from PRTG on this same device, when using the same MIB (ISDN-MIB-V1SMI). I have checked the device and there are no commands specific to the PRTG server, so it looks like something I am missing in Naios.
David
Re: Some Cisco OIDs Not Working on Router
Posted: Mon Nov 10, 2014 2:04 pm
by tmcdonald
Does that second OID show up in a snmpwalk or is it otherwise directly queryable from the command line?
Re: Some Cisco OIDs Not Working on Router
Posted: Mon Nov 10, 2014 3:45 pm
by perric
Hello,
snmpwalk output...
[root@cawlk mibs]# snmpwalk -mALL -v1 -cPern0dRO 192.168.83.11 1.3.6.1.2.1.10.20.1.3.4.1.2
No log handling enabled - turning on stderr logging
Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 }
Undefined identifier: snmp near line 74 of /usr/share/snmp/mibs/CISCO-GENERAL-TRAPS.my
Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 }
Undefined identifier: snmp near line 64 of /usr/share/snmp/mibs/CISCO-GENERAL-TRAPS.my
Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 }
Undefined identifier: snmp near line 50 of /usr/share/snmp/mibs/CISCO-GENERAL-TRAPS.my
Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 }
Undefined identifier: snmp near line 40 of /usr/share/snmp/mibs/CISCO-GENERAL-TRAPS.my
Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 }
Undefined identifier: snmp near line 30 of /usr/share/snmp/mibs/CISCO-GENERAL-TRAPS.my
I see these errors, but I am not sure how to resolve.
David
Re: Some Cisco OIDs Not Working on Router
Posted: Mon Nov 10, 2014 3:50 pm
by abrist
Looks like there may be an issue with the mib.
Could you post a copy of the mib in code wraps, attached, or as a link?
Re: Some Cisco OIDs Not Working on Router
Posted: Mon Nov 10, 2014 4:07 pm
by perric
Sure... Here is a link to the MIB contents (at bottom of page).
http://tools.cisco.com/Support/SNMP/do/ ... ERAL-TRAPS
David
Re: Some Cisco OIDs Not Working on Router
Posted: Mon Nov 10, 2014 8:12 pm
by Box293
I think the following lines need to be something like:
Code: Select all
Line 30:
::= { coldStart 0 }
Line 40:
::= { linkDown 2 }
Line 50:
::= { linkUp 3 }
Line 64:
::= { authenticationFailure 4 }
Line 74:
::= { egpNeighborLoss 4 }
Line 86:
::= { reload 0 }
Line 98:
::= { tcpConnectionClose 1 }
Re: Some Cisco OIDs Not Working on Router
Posted: Tue Nov 11, 2014 12:32 pm
by perric
Thanks.
I will try this fix, when I can resolve another issue removing old MIB files from Nagios. I have submitted this under the title of "Cannot Remove MIB" in this same forum.
Detail: When I try to delete and re-add a MIB file, it seems that a "processed" or "converted" MIB is still in place somewhere else, even though I have deleted the MIB file and placed a new one into /usr/share/snmp/mib folder. See addmib message below:
[root@cawlk mibs]# addmib /usr/share/snmp/mibs/CISCOTRAP-MIB.my
This file looks like it has been added already! Exiting.
David
Re: Some Cisco OIDs Not Working on Router
Posted: Tue Nov 11, 2014 2:05 pm
by sreinhardt
Since you already have responses in that thread, let's keep the fix over there and return here once that's resolved.
Re: Some Cisco OIDs Not Working on Router
Posted: Wed Nov 12, 2014 11:34 am
by perric
Still cannot remove old MIB and re-add this MIB to test... hoping to resolve the issue soon.
David
Re: Some Cisco OIDs Not Working on Router
Posted: Wed Nov 12, 2014 1:54 pm
by perric
Ok. Progress. I remove a MIB that seemed to be causing a problem and I now get this.
[root@cawlk mibs]# snmpwalk -mALL -v1 -cXXXXX 192.168.83.75 1.3.6.1.2.1.10.20.1.3.4.1.2
ISDN-MIB::isdnLapdOperStatus.43 = INTEGER: inactive(1)
ISDN-MIB::isdnLapdOperStatus.1314 = INTEGER: l2Active(3)
My check_snmp still comes back with "No data received from the host".
[root@cawlk mibs]# check_snmp -C cXXXXX -H 192.168.83.75 -o 1.3.6.1.2.1.10.20.1.3.4.1.2
SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] 192.168.83.75:161 1.3.6.1.2.1.10.20.1.3.4.1.2
[root@cawlk mibs]#
Do I need to edit the /etc/snmp/snmptt.conf and tweak the values?
David