Only critical for Exact value in check_snmp plugin


I have an OID and its have only two instances:
16 is OK
14 is Not OK
I want to get critical for query result is 14
Here is the outputs:
[blockquote][root@localhost libexec]# ./check_snmp -H -o . -Ctrancha
SNMP OK - 16 | iso.
[root@localhost libexec]# ./check_snmp -H -o . -Ctrancha -c 14
SNMP CRITICAL - 16 | iso.
have you any usage method or another idea?


Read the --help again and you’ll see that -c, --critical=INTEGER_RANGE(s)
Range(s) which will not result in a CRITICAL status

If only a value of 16 should give the OK state then setting -c 16 would be enough.