monit-general
[Top][All Lists]
Advanced

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

monit script options


From: Andy Pyles
Subject: monit script options
Date: 03 Mar 2003 09:29:45 -0800

Hi just getting started with Monit,

and looking through the very detailed documentation (great job by the
way) I did not see a way to do the following:


check apache with pidfile /var/run/httpd.pid
       start program = "/etc/init.d/httpd start"
       stop  program = "/etc/init.d/httpd stop"
       host vocal1.telverse.com port 80
       alert address@hidden
       group local

What I'd like to do is:

check apache with pidfile /var/run/httpd.pid
       start program = "/etc/init.d/httpd start"
       stop  program = "/etc/init.d/httpd stop"
       host vocal1.telverse.com port 80
       alert address@hidden
       if failure run script blah_blah.sh   <-----------
       group local

Basically if there is a failure run a script. then restart using the
start programs above.

Is there a way to do this with the current release of monit?
Thanks,
Andy






reply via email to

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