Page 1 of 1

Trigger on status information text change

Posted: Mon Oct 08, 2012 9:41 am
by fxmulder
Is there a way of triggering notifications based on status information text change?

What I am trying to do is monitor the status of a raid array. When it is degraded then the service will change to a critical state, but I don't need to be notified often. What I would rather do is have a trigger so that when the drive is changed and the status information text changes along with it, I would be notified again. I can't make the rebuild state an OK state because if the array starts rebuilding on its own I would like to be notified of that too.

Re: Trigger on status information text change

Posted: Mon Oct 08, 2012 7:24 pm
by jsmurphy
The short answer is no... there's no way to trigger notifications based on status text changes.

You could probably fudge this functionality by making a passive check that tracks "last sent status" and only sending a new message to Nagios if the message changes. Nagios isn't particularly fantastic at handling "event driven" information (Windows event log, Syslog, SNMP Traps, Message Queueing, etc) so you are likely to find these are the more frustrating kinds of checks to deal with when working on Nagios, though it is slowly getting better.