monit-general
[Top][All Lists]
Advanced

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

Is this a bug with dependent services?


From: Alexey Zilber
Subject: Is this a bug with dependent services?
Date: Tue, 2 Jan 2007 16:25:16 -0500

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
        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
        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

reply via email to

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