|
From: | Martin Pala |
Subject: | Re: Question regarding cycles |
Date: | Thu, 22 Sep 2005 10:49:11 +0200 |
User-agent: | Mozilla Thunderbird 1.0.6 (Windows/20050716) |
Andreas Oesterer wrote:
Follow up question to cycles:check host xxx with address xxx.xxx.xxx.xxxif failed port 80 for 3 times within 3 cycles then alertWith the 4.6 beta this syntax works. However, each time the service fails in one cycle and passes in the next cycle, I get the email that the service passed. Is there a syntax to only get the message if it passed in the fourth cycle
This is because you omited the passed/recovery part of the rule - it then defaults to alert on first passed cycle:
if failed port 80 for 3 times within 3 cycles then alert [else if passed then alert]If you want to modify the recovery condition, then you need to be more verbous, for example:
if failed port 80 for 3 times then alert else if passed for 5 times then alertSe monit-4.6 manual for complete syntax (http://www.tildeslash.com/monit/doc/manual.php#service_tests)
Martin
[Prev in Thread] | Current Thread | [Next in Thread] |