[Top][All Lists]

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

Re: retries not working?

From: Nestor Urquiza
Subject: Re: retries not working?
Date: Tue, 27 Sep 2011 15:11:25 +0000

I don't believe "for x cycles" is working either  for 5.1.1 (my current version) I would appreciate any feedback around the best way to upgrade this in a Ubuntu box where I installed it from 'apt-get'. 

On Tue, Sep 27, 2011 at 3:00 PM, Nestor Urquiza <address@hidden> wrote:
I am trying now with "for x cycles". Hopefully that will work. Thanks!

In the case I decide to upgrade are there any directions to install from sources upgrading a ubuntu package installation? I am thinking about removing the package and then install from sources but just wondering if there is a better way. 

On Tue, Sep 27, 2011 at 7:57 AM, Martin Pala <address@hidden> wrote:
Hi Nestor,

the retry option was added in Monit 5.3 … if you're using older version, it won't work.

In the Monit 5.3 the retry itself is silent and particular attempt failure doesn't log the error - the error is logged only when all attempts failed (we have extended Monit development version to log the details for every particular attempt in debug mode). It is thus very likely that in your case all 3 consecutive attempts failed since they were too fast (within one cycle) - you can use the cross-cycle failure ratio to wait between retries like this:

    if failed url … for 3 cycles then alert

=> the test will fail only when 3 consecutive cycles ended up with error

Best regards,

On Sep 27, 2011, at 2:28 AM, Nestor Urquiza wrote:


In the rule below:

if (failed url and content == 'login') retry 3 then alert

The retry part seems not working. I am trying to go around a random issue where I am notified the website is not accessible but a minute later I get it is back. In reality the site is never unaccessible.

I have tested this with google, yahoo, cnn and other well known sites. I know for sure there is a problem in our network, perhaps related to a firewall or proxy but I am trying to let us say check the url, wait 2 seconds and retry again before sending the alert. Is that possible?



To unsubscribe:

To unsubscribe:

reply via email to

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