monit-general
[Top][All Lists]
Advanced

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

[monit] stop restarting and exec other script at same time


From: conandor
Subject: [monit] stop restarting and exec other script at same time
Date: Sun, 7 Sep 2008 10:29:49 -0700 (PDT)

how can i put a stop and execute a script if monit fail to restart apache for
several time.

check process apache with pidfile /opt/apache_misc/logs/httpd.pid
   start program = "/etc/init.d/apache start"
   stop  program = "/etc/init.d/apache stop"
   if 5 restarts within 5 cycles then exec "do_sms"

-- 
View this message in context: 
http://www.nabble.com/stop-restarting-and-exec-other-script-at-same-time-tp19360446p19360446.html
Sent from the monit-general mailing list archive at Nabble.com.





reply via email to

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