Check_snmp with bool as return

Hi there!
I need to check some OIDs which are returning true (for good status) or false (for bad status).
I can’t test, as the status is the health status for disks.
If I send

./check_snmp -H -C public -P 2c -o -m ALL

I get “SNMP OK - true(1)”.
No matter what I enter for critical, I always get a critical back.
How would the value for critical look like, or does the check even return critical by default if I get false(0) as return?

1 Like

I would have a play with using the check_snmp -r (–ereg) parameter:

-r, --ereg=REGEX
Return OK state (for that OID) if extended regular expression REGEX matches

I haven’t used it myself so I can’t offer any more advice on exactly what the regex should look like.