monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] Alert redirection


From: Henrik
Subject: Re: [monit] Alert redirection
Date: Tue, 16 Oct 2007 21:54:34 +0200


16 okt 2007 kl. 20:58 skrev Jan-Henrik Haukeland:

On 16. okt. 2007, at 13.55, Henrik wrote:

This is my first post to this list and I wonder if it is possible to configure monit to send alerts in other ways than e-mail? Maybe internal signals etc? The reason for this is that I really like monit to monitor(!) my processes but I want to use a separate program to handle the events (Logging to database, sending SMSs etc.).

How would I go about this?

Its not perfect but you can use exec instead of alert in if-tests and call the program/script you want to handle the notification. Such as in this example where I call growl:

   if failed host 192.168.1.100
      port 80 protocol http then exec
      "/usr/local/bin/growlnotify -m 'apache failed' -t apache"
Ahh thanks. That'll work. :)
Cheers,
henke




--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general





reply via email to

[Prev in Thread] Current Thread [Next in Thread]