[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cycles bug ?
From: |
Martin Pala |
Subject: |
Re: cycles bug ? |
Date: |
Wed, 16 Dec 2015 16:52:32 +0100 |
Hello Stefan,
there is already an issue created for this problem (the "every" statement make
the "cycles" option confusing):
https://bitbucket.org/tildeslash/monit/issues/174/the-for-x-cycles-is-confusing-if-the-test
Regards,
Martin
> On 15 Dec 2015, at 18:28, stefanx <address@hidden> wrote:
>
>
> Hello,
>
> until today I thought one cycle is always equal to the number of seconds in
> the "set daemon"
> config options. But this is definitely not the case (Monit 5.6, Ubuntu 14.04,
> a lot of tests),
> here an example:
>
> set daemon 300
> set alert address@hidden not on { instance,action } with reminder on 288
> cycles
> ...
> check file test with path "/tmp/testfile" every 20 cycles
> if timestamp > 1 days then alert
> alert address@hidden only on { timestamp }
> with mail-format {
> from: address@hidden
> subject: test
> message: test
> } with reminder on 288 cycles
>
> In the first occurrence of "288 cycles", 1 cycle = 300 s, so the reminder
> will be send one time every day
> (288 x 300 = 86400 seconds = 1 day). But in the second occurrence of "288
> cycles", 1 cycle = 20x300 = 6000s,
> so the alert will be send on every 20th day (20 x 300 x 288s).
>
> Is this a bug ?
>
> Thanks and regards
>
> Stefan
>
>
>
>
>
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
- cycles bug ?, stefanx, 2015/12/15
- Re: cycles bug ?,
Martin Pala <=