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 <[email protected]> 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 [email protected] 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 [email protected] only on { timestamp } > with mail-format { > from: test@$HOST > 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 -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
