Hi Martin,

  The following seems to work ok:

check process apache
       with pidfile /var/run/httpd.pid
       start program = "/etc/init.d/httpd start"
       stop program  = "/etc/init.d/httpd stop"
       if failed host 192.168.1.25 port 80 for 3 times within 5 cycles then
exec "/usr/lib/heartbeat/hb_standby"
       if failed host 192.168.1.26 port 80 for 3 times within 5 cycles then
exec "/usr/lib/heartbeat/hb_standby"
       mode manual
group node2


I just merged the 2 checks into the main config.  Also, and this is probably
for another thread, the monit+heartbeat configuration seems to be wrong.
That plus a logging bug in heartbeat's ResourceManager had me stumped for a
few days.  I'll write up a doc on it in a bit.. once I confirm the config is
works properly and is stable.

Thanks!
Alex


On 1/3/07, Martin Pala <[EMAIL PROTECTED]> wrote:

Monit currently doesn't prevent the dependants from starting - the
current dependency chain just ensures correct startup sequence.

We plan to improve it in the future.

Martin


Alexey Zilber wrote:
> Hello,
>
>   I have something like this setup:
>
> ---
> check process apache
>         with pidfile /var/run/httpd.pid
>         start program = "/etc/init.d/httpd start"
>         stop program  = "/etc/init.d/httpd stop"
>         mode manual
> group node2
>
> check host http1 with address 192.168.1.25 <http://192.168.1.25>
>         if failed port 80 for 3 times within 3 cycles then exec
> "/usr/lib/heartbeat/hb_standby"
>         depends on apache
>         mode active
> group node2
>
> check host http2 with address 192.168.1.26 <http://192.168.1.26>
>         if failed port 80 for 3 times within 3 cycles then exec
> "/usr/lib/heartbeat/hb_standby"
>         depends on apache
>         mode active
> group node2
> ---
> The problem is that even though the 2 checks are dependent on apache,
> they continue doing their checks even when apache has not been started.
> Can anyone confirm the proper behavior for this?  I want the two checks
> to 'follow' the apache status.. is this possible?
>
> -Alex
>
>
> ------------------------------------------------------------------------
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general


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

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

Reply via email to