monit-general
[Top][All Lists]
Advanced

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

Re: Another feature


From: Martin Pala
Subject: Re: Another feature
Date: Sat, 11 Sep 2010 14:49:03 +0200

Hi,

you can use exec action instead of alert:

check device root with path /
     if space usage > 89% then exec "/root/Scripts/alert.sh" else if succeeded 
then exec "/root/Scripts/alert.sh"

Upcoming M/Monit-2.3 also allows to set rules for events which allow to execute 
custom program (in addition to email and instant message). We use it to collect 
events from all monit hosts and pass the event to text-to-speach program so we 
can hear what happened if event arrives (in practice it is pretty cool :), it 
is also possible to execute snmptrap, etc.

Martin


On Sep 11, 2010, at 2:33 PM, Andrew Holt wrote:

> 
> Hi,
> 
> One other thing I would like to be able to do
> 
> e.g.
> 
> check device root with path /
>    if space usage > 89% then alert
>    else if succeeded then alert
> 
> And alert sends a mail.  What would be useful is
> 
> set alert_action exec "/root/Scripts/alert.sh"
> 
> Where the default is:
> 
> set alert_action email
> 
> 
> 
> =============================
> Andrew Holt
> 
> Email: address@hidden
> 
> De Omnibus Dubitandum
> =============================
> 
> 
> 
> 
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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