On Tuesday, November 05, 2013 04:09:12 PM you wrote:
> If there will be standalone restart program, it'll also have some timeout
> => there is no difference between start/stop/restart in that point.
> 
> If the stop/start timed out, the error event is send and Monit can retry
> next cycle.

Does that mean if in 30s "stop" does not succeed monit sends alert to global 
email ?

So to avoid 'false positive alerts' one needs to set cycle explicitly ?
eg.
apache settings become:

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 port 80 then restart
       if failed port 443 with timeout 15 seconds then restart
       if failed port 80 for 3 times within 5 cycles then alert
       if failed port 443 for 3 times within 5 cycles then alert

above would be ok, or do I need do if... then... else ?

-- 
Regards.
V.Krishn

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

Reply via email to