snmp -s option

"Gupta, Prabhakar" <[email protected]> Fri, 28 Aug 2015 22:17:08 +0000
Newsgroups gmane.network.nagios.plugins
Message-ID <BN1PR07MB93316ED77D5573925179DBB966E0__1979.64270269058$1440884314$gmane$org@BN1PR07MB933.namprd07.prod.outlook.com>
Hi,
I was trying to use -s options to flag alarm depending on string values.
In my case, normally I should get "No failures" string. The string changes to others when there is an error like fan failure. I tried to get CRITICAL warning when the string is other than 'No failures'. So, I used following command line:
check_snmp  -H <ip_address  -C public -o <OID> -s "No failures"

However, I always get SNMP OK  and the alert status doesn't change at all- no matter what the value is.
Any suggestion?

Thank you.
Prabhakar Gupta
212 275 7819