monit-dev
[Top][All Lists]
Advanced

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

Re: [PATCH] ICMP with optional host parameter


From: Martin Pala
Subject: Re: [PATCH] ICMP with optional host parameter
Date: Fri, 21 Jan 2005 22:35:43 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050105 Debian/1.7.5-1



Jan-Henrik Haukeland wrote:

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.

Added on the todo list ;)

Martin





reply via email to

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