monit-general
[Top][All Lists]
Advanced

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

Re: [PATCH] Running an external script with EXEC on a timeout


From: Martin Pala
Subject: Re: [PATCH] Running an external script with EXEC on a timeout
Date: Mon, 28 Feb 2005 21:04:38 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050105 Debian/1.7.5-1

I think both solutions are very nice :)

Thanks for the patch, i will look on it. Similar feature is planned for some future release (see http://www.tildeslash.com/monit/doc/next.php#20) and your patch solves one part of the task.

... and the described trick is probably the most avanced monit configuration i ever saw :)

Martin


Patrick Burns wrote:
That's a good system. I considered something similar myself at first,
I.e. writing some sort of count to a file at every restart and
periodically checking/clearing it. However it's obviously much better to
have this functionality built-in to monit. Is there any way we can put
this patch up for argument on the developer's list? I'd definitely like
to see something similar in the CVS.

Perhaps I should make a diff against the development version (rather
than stable.) It would also be good to get some people testing this to
make sure it works properly.

On Sun, 27 Feb 2005 19:59:55 +0100, "Gael Pourriel"
<address@hidden> said:

Basically whenever I start apache using the apachectl script I also
add a byte to a temp file (echo >> /tmp/apache_restart), then I use
another test in monit to check this temp file and exec "reboot" when
it reach a given size (10 bytes would mean 10 restart). However I've
also got another check that deletes the file is the timestamp if over
a given period.




reply via email to

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