Master test alert scheduling

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
argis
Posts: 31
Joined: Mon May 06, 2019 8:30 pm

Master test alert scheduling

Post by argis »

I want to send an alert when a device doesn't respond to a ping test after three minutes. I scheduled the ping test for every three minutes, and set an alert to send after two failed results, but I've found a problem.

I've set the ping test as a master test for all the other tests on each device. This means that the ping test is running more often than it is scheduled, and it may run (and fail) twice within a short time if two other tests run close together.

Is there a way to enforce a three minute delay before re-checking and sending an alert?
KS-Soft
Posts: 12903
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I scheduled the ping test for every three minutes, and set an alert to send after two failed results, but I've found a problem.
This means target host can be dead for 5:59 and you will not know this.
I would suggest to set test interval to 1 min and start action after 3rd or 4th bad result.
Is there a way to enforce a three minute delay before re-checking and sending an alert?
1) You may use advanced mode action with expression like
('%SimpleStatus%'=='DOWN') and (%CurrentStatusDuration_sec%>=180) and (%CurrentStatusDuration_sec%<200)

2) or you may set test interval to the same value as "Consider status of the master test obsolete after N seconds" option (Options dialog -> Behavior page)
If you set this option to 60sec, then use the same interval for Master test, this way it will be performed exactly 3 times in 3 minutes so you may use "standard" action.

3) or you may setup additional Ping test for such alert and use Master Ping just to prevent other tests to start alerts.

Regards
Alex
argis
Posts: 31
Joined: Mon May 06, 2019 8:30 pm

Post by argis »

Thanks Alex, the advanced mode expression is just what I needed.
argis
Posts: 31
Joined: Mon May 06, 2019 8:30 pm

Post by argis »

Now I have another problem. I would like to create a good status action for when the device comes back online again. However since this uses a logical expression I'm not able to use the "depends on a bad action" option, and I can't work out how to limit it to one reply, and only after the conditions were met for the "bad" message.
Is there a way to do this?
KS-Soft
Posts: 12903
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You may try expression like
('%SimpleStatus%'=='UP') and (("%PreviousStatus%"=="No answer") or ("%PreviousStatus%"=="Bad")) and (%PreviousStatusDuration_Sec%>180)

But I would switch to option #2 or #3 and use standard actions.

Regards
Alex
argis
Posts: 31
Joined: Mon May 06, 2019 8:30 pm

Post by argis »

Thanks Alex, I'll work my way through those options.
Post Reply