monit-general
[Top][All Lists]
Advanced

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

Re: avoid email loop


From: Martin Pala
Subject: Re: avoid email loop
Date: Mon, 15 Dec 2014 16:24:39 +0100

Hi,

the exec action is triggered each time the test condition matches. You can use 
the "alert" action instead of exec, which sends the alert only once: on state 
change.

Regards,
Martin


> On 15 Dec 2014, at 15:05, Pol Hallen <address@hidden> wrote:
> 
> Hi all, I've personalized disk space option:
> 
> if space usage > 95% then exec "/bin/bash -c 'df -lh|egrep
> "File|root"|mutt -s "HIGH DISK SPACE" address@hidden'"
> 
> runs but when disk space execeeds 95%, monit sends email every 60seconds
> (like option on top of config file):
> 
> set daemon 60
> 
> is there a way to set (i.e.) 5 times emails and stop?
> 
> thanks for help
> 
> Pol
> 
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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