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: Jan-Henrik Haukeland
Subject: Re: [PATCH] ICMP with optional host parameter
Date: Fri, 21 Jan 2005 09:20:40 +0100


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.

--
Jan-Henrik Haukeland
mobile +47 97141255





reply via email to

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