|
From: | Eric Pailleau |
Subject: | Re: Silencing Monit for a given amount of cycles |
Date: | Fri, 19 Nov 2010 12:13:29 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100624 Mandriva/3.0.5-0.1mdv2009.1 (2009.1) Thunderbird/3.0.5 |
Le 19/11/2010 12:03, Julian Berkner a écrit :
check system localhost if loadavg (1min)> 0.1 for 2 cycles then exec "/usr/bin/test -f /tmp/ignore || /my/script" /my/script has simply to touch /tmp/ignore .This does not work for me. According to monit log file, only '/usr/bin/test' is called, without neither any parameter, nor the OR part. But thanks to your idea i was able to make it work by myself, by simply moving your test inside my script. And i appended an else if succeeded for 3 cycles then exec "/bin/rm /tmp/ignore" to monitrc, so after 3 cycles of "peace" emailing and caretaking will be switched back on. Thank you for your help!
May be 'test' is in /bin instead. do 'whereis test' to check... -- Salutations - Best regards - mit freundlichen Grüssen ----------------- address@hidden ------------------------------------ fr - Merci d'utiliser cette addresse pour le support ou question technique en - Please use this address for any support or technical question ----------------- https://support.numlog.fr -------------------------------- fr - Privilégier la gestion de ticket d'incident (Clients NUMLOG) en - Prefere our trouble ticket application (NUMLOG's customers)
[Prev in Thread] | Current Thread | [Next in Thread] |