--On Wednesday, December 04, 2002 2:27 PM +0100 Frank A Ekern <[EMAIL PROTECTED]> wrote:

Is there a way to get an alert script to be called each time a check has
been performed, regardless of the whether the check failed or succeeded?

I could probably achieve this by having the monitor script always return
non-zero, and then defining my own exit status to decide whether the
check was OK or not, and then use something like:
alert exit=1 file.alert
alert exit=2 file.alert
--
Frank

In the patches that I've submitted to Jim I've added this ability. I called it 'redistribute', because the way we use it is to have an alert script, which sends a Mon trap, get called every time the service is tested, in order to propagate that status from a slave mon server to a master mon server. (In our setup, we have slaves that do most of the monitoring, and one master that all the clients talk to, and that handles sending alerts.) It could also be used to send traps into other monitoring systems, i.e. by using the HP OpenView alert script that exists in the mon contrib collection.

Hopefully this will make it into the new version of Mon that Jim is expecting to release before the end of the year.

-David Nolan
Network Software Developer
Computing Services
Carnegie Mellon University

_______________________________________________
mon mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to