On Jan 20, 2005, at 21:17, Martin Pala wrote:
However maybe it could be useful to:
- extend restart and similar monit actions by optional argument which
may specify monit's service name (to bypass the exec trick)
And as an alternative to the depend trick :)
- allow to specify list of actions
Possible syntax:
IF FAILED <test> THEN {<action> [<service>], ...}
Example:
--8<--
check process ipsec with pidfile /var/run/ipsec.pid
start program = "/etc/init.d/ipsec start"
stop program = "/etc/init.d/ipsec stop"
check host theotherside with address the.other.side
if failed icmp type echo then alert, restart ipsec
--8<--
(i.e. monit will send alert for service 'theotherside' && restart
service named 'ipsec')
What do you think?
+1 Looks very useful and should be a good alternative to using depend.
This is probably more understandable.