Page 1 of 2
SNMP Probes and MIBS
Posted: Fri Dec 30, 2016 12:04 pm
by rbuckle
So i added a MIB to Nagios XI so that i could monitor a stat on a radio. I get this error:
Code: Select all
[nagios@NagiosXI ~]$ /usr/local/nagios/libexec/check_snmp -H 10.0.2.146 -o rfRSSIInt -C private -P 2c -l "RSSI" -m TRANGO-PTP-MIB
External command error: Cannot find module (TRANGO-PTP-MIB): At line 1 in (none)
rfRSSIInt: Unknown Object Identifier (Sub-id not found: (top) -> rfRSSIInt)
The MIB is in the list with all the rest so why wasnt it found?
Re: SNMP Probes and MIBS
Posted: Fri Dec 30, 2016 12:10 pm
by rbuckle
So i swapped to command line and ran the command like this:
Code: Select all
/usr/local/nagios/libexec/check_snmp -H 10.0.2.146 -o rfRSSIInt -C private -P 2c -l "RSSI" -m ALL
My response is as follows:
Code: Select all
External command error: Bad operator (_): At line 486 in /usr/share/snmp/mibs/TRANGO-PTP-MIB.txt
rfRSSIInt: Unknown Object Identifier (Sub-id not found: (top) -> rfRSSIInt)
[root@NagiosXI ~]#
This MIB works fine in a MIB browser so WTF....
Please help
(MIB attached)
Re: SNMP Probes and MIBS
Posted: Fri Dec 30, 2016 12:21 pm
by avandemore
Looks like you have a bad MIB, what happens if you remove it and query the OID?
Re: SNMP Probes and MIBS
Posted: Fri Dec 30, 2016 2:31 pm
by rbuckle
The problem is that the OID's change from brand/firmware of these radios. If i use a MIB browser to find the OID then query the OID i get the result i am looking for BUT, I have too many of these radios to do that for EACH one so it would be nice to be able to just use the MIB reference

Re: SNMP Probes and MIBS
Posted: Fri Dec 30, 2016 2:50 pm
by avandemore
https://www.simpleweb.org/ietf/mibs/validate/ says your MIB is invalid and your previous output indicates the same.
Re: SNMP Probes and MIBS
Posted: Fri Dec 30, 2016 5:33 pm
by rbuckle
I manually edited the MIB so now it works.... Thank you
So in a related problem, using
$USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
allows you to retrieve the value from the OID, is it possible to also set a warning threshold?
Re: SNMP Probes and MIBS
Posted: Tue Jan 03, 2017 9:54 am
by avandemore
Yes, /usr/local/nagios/libexec/check_snmp -h will show you the syntax to set thresholds.
Re: SNMP Probes and MIBS
Posted: Tue Jan 03, 2017 11:22 am
by rbuckle
Thank you for your reply...
The one issue I now have is a typical big one with Nagios, these radios provide their signal numbers in negative values with -70 being worse than -30 for instance.
So here is the error:
[nagios@NagiosXI ~]$ /usr/local/nagios/libexec/check_snmp -H 10.0.2.82 -o rfRSSIInt.0 -C private -P 2c -l "RSSI" -m ALL -w~:-60 -c~:-70
SNMP CRITICAL - RSSI *-38* | RSSI=-38;0;0;
[nagios@NagiosXI ~]$ /usr/local/nagios/libexec/check_snmp -H 10.0.2.82 -o rfRSSIInt.0 -C private -P 2c -l "RSSI" -m ALL -w-60 -c-70
Range format incorrect
What is the best way to resolve my problem, and thanks in advance
Re: SNMP Probes and MIBS
Posted: Tue Jan 03, 2017 11:32 am
by rbuckle
OK, so I might have figured it out... could you please check my numbers
Thank you
Code: Select all
[nagios@NagiosXI ~]$ /usr/local/nagios/libexec/check_snmp -H 10.0.2.82 -o rfRSSIInt.0 -C private -P 2c -l "RSSI" -m ALL -w-60:-69 -c-70:-120
SNMP OK - RSSI -38 | RSSI=-38;-60;-70;
Re: SNMP Probes and MIBS
Posted: Tue Jan 03, 2017 11:41 am
by avandemore
We don't have any thing like that to test against but the best way to make sure it's working is to setup a service that utilizes it. Then after the service is setup and work for 15+ minutes, make sure graphs are appearing.