One of my monit configuration files looks like that:
check process lucee with pidfile /opt/lucee/tomcat/work/tomcat.pid
start program = "/etc/init.d/lucee_ctl start" with timeout 60 seconds
stop program = "/etc/init.d/lucee_ctl stop"
if failed host www.binostore.com port 80 with protocol http
and request "/"
with timeout 10 seconds
then restart
It actually works when process crashes or is killed.
Unfortunately, the second part doesn't work at all!
I want monit to ping the homepage of my website and restart immediately in
case it takes more than 10 seconds to give a response.
I tried putting a "*sleep(15)*" in the homepage to simulate performance
degradation, with no luck: I didn't see anything happening in monit.log.
Thank you
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general