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?
Master test alert scheduling
This means target host can be dead for 5:59 and you will not know this.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 would suggest to set test interval to 1 min and start action after 3rd or 4th bad result.
1) You may use advanced mode action with expression likeIs there a way to enforce a three minute delay before re-checking and sending an alert?
('%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
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?
Is there a way to do this?