Hi all –
I have an SNMP capable device that returns either “Alarm” or “Clear” as a string for a particular OID I want to watch.
When I do this:
snmpget -c -v 2c 188.8.131.52.4.1.26184.108.40.206.220.127.116.11.1.1
I get this:
SNMPv2-SMI::enterprises.2618.104.22.168.22.214.171.124.1.1 = STRING: “Clear”
I’ve read the docs for check_snmp, and I understand a bit about the “-s” option telling check_snmp to look for a string.
What I’m not clear about is how (or if) I need to use the “-w” and “-c” switches??
This is what I’ve got so far – and it’s working, but always says “CRITICAL” no matter what the actual string that’s returned is.
check_command check_snmp!-C -l GeneratorPower -o 126.96.36.199.4.1.26188.8.131.52.184.108.40.206.1.1 -s=Clear
This is what I’m getting back every time:
"GeneratorPower CRITICAL 02-17-2011 15:56:39 0d 0h 0m 26s 1/4 GeneratorPower CRITICAL - “Clear” "
What am I missing about how to get that SNMP string “Clear” to be recognized as an “everything’s OK” message, and
a state of “Alarm” as a notification??