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
Alerting when something EQUALS a value instead of NOT EQUALS
-
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
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.