Some Cisco OIDs Not Working on Router

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Some Cisco OIDs Not Working on Router

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Some Cisco OIDs Not Working on Router

Post by tmcdonald »

Does that second OID show up in a snmpwalk or is it otherwise directly queryable from the command line?
Former Nagios employee
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Re: Some Cisco OIDs Not Working on Router

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Some Cisco OIDs Not Working on Router

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Re: Some Cisco OIDs Not Working on Router

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Some Cisco OIDs Not Working on Router

Post 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 }
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Re: Some Cisco OIDs Not Working on Router

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Some Cisco OIDs Not Working on Router

Post by sreinhardt »

Since you already have responses in that thread, let's keep the fix over there and return here once that's resolved.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Re: Some Cisco OIDs Not Working on Router

Post by perric »

Still cannot remove old MIB and re-add this MIB to test... hoping to resolve the issue soon.

David
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Re: Some Cisco OIDs Not Working on Router

Post 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
Locked