Alert after 5 non consecutive failed test?

Need new test, action, option? Post request here.
Post Reply
mp1
Posts: 199
Joined: Tue Mar 07, 2006 3:24 am

Alert after 5 non consecutive failed test?

Post by mp1 »

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
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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
mp1
Posts: 199
Joined: Tue Mar 07, 2006 3:24 am

Post by mp1 »

Hi,
I think, you should use "%Recurrences%" variable. So, your expression should be like this:
('%SimpleStatus%'=='DOWN') and (%Recurrences%==5)
I think, this is the same as the standard mode "5 consecutive bad results"

I will have a look on the other variables and do some checks.

Regards,

Martin
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Sure, 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

Regards
Alex
mp1
Posts: 199
Joined: Tue Mar 07, 2006 3:24 am

Post by mp1 »

Hi Alex,
Sure, 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
That's exactly I don't want ;-)
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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Oh, 5 failed test in an hour :roll:
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
Post Reply