monit-general
[Top][All Lists]
Advanced

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

Re: Delaying monitoring


From: Martin Pala
Subject: Re: Delaying monitoring
Date: Fri, 1 Apr 2011 21:11:43 +0200

You can use most probably something like this (not tested):

--8<--
if 5 restarts within 8 cycles then exec "/bin/bash -c '/usr/bin/monit unmonitor myservice && echo /usr/bin/monit monitor myservice | at now + 20minutes"
--8<--

the script first disables monitoring of service called "myservice" and then schedules monitoring enable using "at".

Martin


On Apr 1, 2011, at 12:12 PM, Jeb Wilkins wrote:

Hi All,
Is there anyway to set a 'sleep' to stop monitoring for a period, eg
at the minute you can do

  if 5 restarts within 8 cycles then timeout

This will then disable monitoring until I next take action. Instead
I'd like to do something like

  If 5 restarts with 8 cycles then sleep 20 cycles

Is this, or something similar possible?

thanks

jebw

--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general


reply via email to

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