monit-general
[Top][All Lists]
Advanced

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

Re: Silencing Monit for a given amount of cycles


From: Paul Sun
Subject: Re: Silencing Monit for a given amount of cycles
Date: Sat, 20 Nov 2010 05:21:54 +0800



----- Original Message -----
From: address@hidden <address@hidden>
To: This is the general mailing list for monit <address@hidden>
Sent: Fri Nov 19 19:13:29 2010
Subject: Re: Silencing Monit for a given amount of cycles

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)


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


reply via email to

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