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 126.96.36.199.4.1.26188.8.131.52.184.108.40.206.1.1
I get this:
SNMPv2-SMI::enterprises.26220.127.116.11.18.104.22.168.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 22.214.171.124.4.1.26126.96.36.199.188.8.131.52.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??