Check_snmp fails to return OID translations when thresholds are added.

Robert Ennis robert.ennis at
Wed Dec 4 13:45:07 CET 2013


I am using check_snmp (nagios-plugins 1.4.16) to return SNMP dta from Cisco switches.

I’m using Centos 6.4, have all my MIB files included and netsnmp is happy so I can do something like:
./check-snmp –H -c communitystring  -o RFC1213-MIB::ifOperStatus.5001
And get:
SNMP OK – up(1) |

Where up is the translation of 1 from the associated MIB. Great!

The problem is that as soon as I add thresholds to check_snmp this breaks. E.g.
./check-snmp –H  -c communitystring  -o RFC1213-MIB::ifOperStatus.5001 –c 1:1
This gives me:
SNMP OK – 1 | RFC1213-MIB::ifOperStatus.5001=1

So I get the extra info as expected but loose the translation of what 1 means. Bummer!

I can recreate this in Centos 6 running 1.4.13 and Ubuntu running 1.4.13 or .15.

Is this change in behaviour a bug or a feature?

It would be fantastic if I could return the translated values back to Nagios and I’m sure I cannot be the only person who would really appreciate this functionality.


Rob Ennis

This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Devel mailing list