monit-general
[Top][All Lists]
Advanced

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

Re: cron style service poll time not functioning since update to 5.10


From: Martin Pala
Subject: Re: cron style service poll time not functioning since update to 5.10
Date: Tue, 18 Nov 2014 23:20:51 +0100

> On 18 Nov 2014, at 01:57, Paul Theodoropoulos <address@hidden> wrote:
> 
> 
> On 11/17/14 2:29 PM, Jan-Henrik Haukeland wrote:
>>> On 17 Nov 2014, at 19:28, Paul Theodoropoulos <address@hidden> wrote:
>>> 
>>> I have a service check that I disable while backups are running on a 
>>> particular server. Since upgrading from 5.8.1 to 5.10, the cron declaration 
>>> appears to no longer work - I've started getting alerts during that time 
>>> since the upgrade.
>>> 
>>> Here's how I have it set up -
>>> 
>>> check program servercomm-db1 with path /usr/local/bin/check_server_wrapper 
>>> with timeout 25 seconds
>>> not every "40-50 0 * * *"
>>> 
>>> I checked the manual, and that appears to be a valid config. Thoughts?
>> This should work, please check that you do not have a a second (old) monit 
>> instance running in the background or that the every-cron string is 
>> specified as you think it is. Right now, Monit is specified to skip this 
>> check every night between 00:40-00:50.
>> 
> Thanks. The above declarations were cut & paste directly from the conf file, 
> and I've confirmed that it is indeed running 5.10, with no other monit 
> executables on the server. This is compiled from source on Debian Squeeze, 
> 32bit, in case that might matter.

Hi Paul,

the “not every <cron>” was skipped only once per minute when matched the 
pattern since Monit 5.9, it is fixed in the development version now, you can 
get it here: https://bitbucket.org/tildeslash/monit/get/master.tar.gz

To compile

        tar -xzf master.tar.gz
        cd tildeslash*
        ./bootstrap
        ./configure
        make

Regards,
Martin


reply via email to

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