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 <[email protected]> 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" [email protected]'" > > 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 -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
