Le 19/11/2012 17:12, Dmitry Zamaruev a écrit :
check program with path '/tmp/script.sh'
  every 2 cycles
  if status != 0 then exec '/tmp/some_service.sh restart'

check program_thread with path '/tmp/script.sh'
  every 2 cycles
  if status != 0 then exec '/bin/rm -f /tmp/file.pid'

check process program with pidfile /tmp/file.pid
        start = "/tmp/some_service.sh start'"
        stop  = "/tmp/some_service.sh stop'"
        if 5 restarts within 5 cycles then timeout


--


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

Reply via email to