Alerting when something EQUALS a value instead of NOT EQUALS

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dervari
Posts: 20
Joined: Thu Jun 20, 2013 7:54 am

Alerting when something EQUALS a value instead of NOT EQUALS

Post by dervari »

We have a NAS that has flaky SNMP code. It's supposed to return OK when a drive is running without problems, but sometimes returns random garbage. Hence, setting an alert when it's NOT EQUAL to "OK" doesn't work. Is there an easy way to alert when the value returned EQUALS a certain string, such as "DEAD" or "RESYNC"?

Thanks
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Alerting when something EQUALS a value instead of NOT EQ

Post by sreinhardt »

That really depends on what plugin you are using to monitor this device and its drive status. Could you post a link or give us the name of it, and possibly an example how the command is being run?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked