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: Eric Pailleau
Subject: Re: Silencing Monit for a given amount of cycles
Date: Fri, 19 Nov 2010 12:21:56 +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:18, Eric Pailleau a écrit :

else if succeeded for 3 cycles then exec "/bin/rm /tmp/ignore"

Better using "/bin/rm -f /tmp/ignore" as it won't return non negative
exit code if /tmp/ignore does not exist...
You want that /tmp/ignore is deleted, so it must not be a error if
something or someone deleted it manually before.
Regards.

Sorry, by "non negative code" I mean "failure exit code", guessing you 
understood anyway ...
Regards.



reply via email to

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