monit-dev
[Top][All Lists]
Advanced

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

Re: Features...


From: Christian Hopp
Subject: Re: Features...
Date: Fri, 26 Sep 2003 11:51:45 +0200 (CEST)

On Fri, 26 Sep 2003, Martin Pala wrote:

> >2) A watchdog thread... (I think I have mentioned this hidden
> >   somewhere in a mail some days ago)
> >
> >   We detach the validation as one thread, then we do already have the
> >   http thread and whatever might come.  The main thread become the
> >   watchdog.  After each validation and after each accept (w/ or w/o
> >   timeout) both do set a semaphore which is checked by the watchdog.
> >   In case one of them has not done this the thread is restarted or
> >   monit is restarted.
> >
> I'm not sure whether it is needed to separate main thread for watchdog.
> It could be usefull to watch httpd thread, but i think it could be
> implemented inside of main thread. As workaround in the case that monit
> httpd availability is issue, it can be monitored by present monit
> version from main thread by:
>
>  check host monit-httpd with address 127.0.0.1
>    if failed port 2812 protocol http then exec "/usr/bin/monit -c
> /etc/monitrc reload"
>
> This is not exactly the same thing as httpd thread watchdog, but it can
> solve the issue too. In the case that monit httpd is not accessible,
> monit will reload itself, which will cause failed thread to start.

But this does only work in case you start the http support.  If you
think of application where you donT need/want the http support you
have no chance finding out whether monit is running or not.

CHopp

-- 
Christian Hopp                                email: address@hidden
Institut für Elektrische Informationstechnik             fon: +49-5323-72-2113
TU Clausthal, Leibnizstr. 28, 38678 Clausthal-Zellerf.   fax: +49-5323-72-3197
                             pgpkey: https://www.iei.tu-clausthal.de/pgp-keys/





reply via email to

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