Could you increase the test interval up to 2 minutes? Just for testing?scott.carroll@brulant.com wrote:Any ideas on a solution?
Sure. You may use expression like the following:scott.carroll@brulant.com wrote:If I change it to what you mention above (to not send an alert if the status=unknown) is there also a way to keep that 5 bad then send alert setting?
('%SimpleStatus%'=='DOWN') and (%Recurrences%>4)
Please note: you have to disable "Treat Unknown as Bad" option to use foregoing expression. Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro
============================
%SimpleStatus%
This macro may return one of the following text values:
* "UP" for good statuses (Host is Alive, Ok);
* "DOWN" for any bad status (No answer, Bad, Bad Contents); for Warning status when "Treat Warning as Bad" option is enabled; for Unknown status when "Treat Unknown as Bad" option is enabled
* "UNKNOWN" if status of the test is "Unknown" or "Unknown host" and "Treat Unknown as Bad" option is disabled; variable also returns "UNKNOWN" for statuses like WaitForMaster, OutOfSchedule, Paused
* "WARNING" when status of the test is "Warning" and "Treat Warning as Bad" option is disabled
============================
%Recurrences%
Similar to %CurrentStatusIteration% but this counter is resetted by HostMonitor when test status changes from "bad" to "good", from "good" to unknown or warning and vice versa. While changes between "Ok", "Host is alive" and "Normal" statuses do not reset the counter, changes between "Bad" and "No answer" do not reset the counter either. "Threat Unknown status as Bad" and "Treat Warning status as Bad" options determine behaviour of the counter for Unknown and Warning statuses.
============================
Regards,
Max