[Top][All Lists]

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

Re: setting service poll times (maintenance windows)

From: Martin Pala
Subject: Re: setting service poll times (maintenance windows)
Date: Thu, 14 Mar 2013 19:19:51 +0100


multiple "every" statements per service are not supported currently, as a 
workaround you can enable/disable the service monitoring externally via monit 
CLI, for example add the following to cron:

        0 0 * * * /usr/bin/monit unmonitor myservice
        30 1 * * * /usr/bin/monit monitor myservice

You can also (un)monitor all services:

        monit unmonitor all

or specific service group (using -g option):

        monit -g myservicegroup unmonitor


On Mar 13, 2013, at 5:40 PM, Bill Sirinek <address@hidden> wrote:

> Is it possible to set service poll times to be something more complex than 
> can be specified in one "EVERY" or "NOT EVERY" statement? 
> For example, I have something I'd like to not alert on from 00:00 - 01:30 
> each night.
> Since monit does not know about seconds, my intent here was to tell monit not 
> check the service if the current time is 00:00-01:29.
> Doing the following does not work:
> not every "* 0 * * *"
> not every "0-29 1 * * *"
> When listing multiple every/not every statements, only the last listed poll 
> time exclusion is acted on, so in this case it is 01:00-01:29.
> Is there a way to make this work? The best I could find in the email archive 
> was someone showing how to specify a complex time range with a slash. While 
> that might be valid syntax in Linux's cron daemon, it is not within monit.
> Thanks
> Bill
> --
> To unsubscribe:

reply via email to

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