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 <[email protected]> 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: > > --8<-- > if failed url … for 3 cycles then alert > --8<-- > > => the test will fail only when 3 consecutive cycles ended up with error > > Best regards, > Martin > > > On Sep 27, 2011, at 2:28 AM, Nestor Urquiza wrote: > > Hi, > > In the rule below: > > if (failed url https://sample.com 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? > > > Thanks! > > -Nestor > > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general > > > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general >
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
