Hi,
I coudn't yet find a solution for my problem with the advanced alerting mode.
We want to get an alert, when there are f.e. 5 failed test in an hour.
f.e. we want to do a simple ping check on our customers router interfaces.
So it's possibile that the interface is up and down, but we don't want to get an alert after every status change. An alert after a number of status changes would be great.
Thanks in advance
Martin
Alert after 5 non consecutive failed test?
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
I think, you should use "%Recurrences%" variable. So, your expression should be like this:
('%SimpleStatus%'=='DOWN') and (%Recurrences%==5)
Foregoing expression make HostMonitor to execute an action if the fifth attempt of a test in a row fails. Also you may use %CurrentStatusDuration_sec% variable. This variable represents the duration of current (simple) status of the test, shows time in seconds.
http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro
Regards,
Max
('%SimpleStatus%'=='DOWN') and (%Recurrences%==5)
Foregoing expression make HostMonitor to execute an action if the fifth attempt of a test in a row fails. Also you may use %CurrentStatusDuration_sec% variable. This variable represents the duration of current (simple) status of the test, shows time in seconds.
http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro
Regards,
Max
Hi Alex,

I want an alert after 5 non consecutive results.
f.e.
bad
good
bad
bad
good
good
good
bad
good
bad --> and now an alert
Regards,
Martin
That's exactly I don't wantSure, you may use Standard "bad" and "good" actions:
- Start when 5 consecutive Bad/Good results occur
- Repeat 1 time
Plus for "good" action you should use "Action depends on bad one" option

I want an alert after 5 non consecutive results.
f.e.
bad
good
bad
bad
good
good
good
bad
good
bad --> and now an alert
Regards,
Martin
Oh, 5 failed test in an hour
The only solution I see: use %FailedCnt% variable and reset statistisc every hour (or after each 5 failures).
To reset statistisc you may use HMScript action with ResetTest command
www.ks-soft.net/hostmon.eng/mframe.htm# ... #actScript
Regards
Alex

The only solution I see: use %FailedCnt% variable and reset statistisc every hour (or after each 5 failures).
To reset statistisc you may use HMScript action with ResetTest command
www.ks-soft.net/hostmon.eng/mframe.htm# ... #actScript
Regards
Alex