good alert ONLY after 3 consecutive bad
good alert ONLY after 3 consecutive bad
What is the best way to send a good alert (email) only after I've experienced 3 'Bad' responses?
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Re: good alert ONLY after 3 consecutive bad
The simplest way is to add additional "Bad" action (any action), that should be triggered after 3 consecutive "Bad" probes. After that, you may add a "Send Email" action into "Good status actions" area, enable "Action depends on "bad" one" option and select foregoing "Bad" action from the dropdown. Quote from the manual:curtis224 wrote:What is the best way to send a good alert (email) only after I've experienced 3 'Bad' responses?
http://www.ks-soft.net/hostmon.eng/mfra ... properties
=======================================
Action depends on "bad" one
This optional parameter is available for "Good" actions only. You can set "Good" action dependable on a "Bad" action. Why do you need it? For example you defined "Bad" action to send an e-mail notification to the network administrator when test fails 3 times consecutively (start when 3 consecutive "Bad" results occur), also you defined «Good» action to send a notification when the test status changes to "Good". What will happen if test fails 1 or 2 times and after this it restores "Good" status? HostMonitor will not send a notification about failure (because test did not fail 3 times) but the program will send notification about restoring "Good" status. To avoid unnecessary "Good" action execution you can mark "Action depends on "bad" one" option and select "Bad" action. In this case HostMonitor will start "Good" action only if corresponding "Bad" action was executed.
=======================================
Regards,
Max