|Subject:||Re: can monit 5.2.5 execute a script when it times out?|
|Date:||Thu, 9 Jun 2011 01:45:03 +0200|
Unfortunately multiple actions in one statement are not supported now, you can use one of following workarounds:
1.) either call the unmonitor along with exec like this:
if 5 restarts within 5 cycles the exec "/bin/bash -c '/path/to/cool/script && /usr/bin/monit unmonitor myservice'"
2.) or specify the timeout action in standalone timeout statement like this:
if 5 restarts within 5 cycles the exec "..."
if 5 restarts within 5 cycles the timeout
On Jun 7, 2011, at 3:05 AM, Michael, Jason wrote:
|[Prev in Thread]||Current Thread||[Next in Thread]|