Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
#./check_snmp -H 10.14.222.80 -C public -m DATAKOM-MIB -o "Engine_Temperature"
External command error: Bad operator (_): At line 17 in /usr/local/share/snmp/mibs/500-snmp_E_34076_D500_20121225.mib
Engine_Temperature: Unknown Object Identifier (Sub-id not found: (top) -> Engine_Temperature)
There is optin "u" in snmpget utility, that allows underlines:
I did some research and found that ASN.1 forbids the use of the underscore ('_') character in descriptors.
Here are the characters that they say are supported.
Descriptors (including identifiers like MIB module names and type names) must not contain other characters than:
a b c d e f g h i j k l m n o p q r s t u v w x y z
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
0 1 2 3 4 5 6 7 8 9 -
Some programs like snmpget ignore bad characters.
I converted your mib file and changed the underscores to hyphens, will that work for you?
You will have to remove the bad mib file and replace it with the fixed one that is attached to this post.
Then you would use this as your check command
./check_snmp -H 10.14.222.80 -C public -m DATAKOM-MIB -o "Engine-Temperature"