[Top][All Lists]

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

Re: how does monit every cycle statement works?

From: Martin Pala
Subject: Re: how does monit every cycle statement works?
Date: Thu, 11 Aug 2016 08:06:44 +0200

The second configuration is correct.

The combination of "every" with "X cycles" is confusing, we'll modify the syntax:

Best regards,

On 11 Aug 2016, at 04:48, Vikram Kone <address@hidden> wrote:

I have a monit check program as follows

check program test_pgm with path "/bin/bash /var/run/"
every 2 cycles
if status !=0 for 2 cycles then alert

Let's say my monit daemon is set to run every 60 seconds which means each cycle is 1 minute. I want to run my program every 2mins and alert if it fails twice in a row

Is what I have above correct? or should I say

if status !=0 for 4 cycles then alert

or should it be

if status !=0 for 2 times within 2 cycles then alert
To unsubscribe:

reply via email to

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