I'm looking to create an alert with our Hostmon version6.82 that will trigger an email action when we have 10+ simultaneous failures. This means that if more than 10 tests fail within, say a 30 seconds time period, an email gets triggered.
Thanks in advance
Alert for Simultaneous failures
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Hm. The only appropriate solution I see, is to copy these tests in to separate folder and use %FolderCurrent_BadTests% macro variable.
Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro
=======================================
%FolderCurrent_BadTests% - Number of the test items (in the folder) those have "Bad" status
=======================================
For instance, you may setup additional "dummy" test (e.g. Ping 127.0.0.1) and use "This test depends on expression" mode. Set the following options:
Perform test if: (%FolderCurrent_BadTests% < 10) or ((%FolderCurrent_BadTests% <= 10) and ('%SimpleStatus%'=='DOWN'))
Otherwise status: Bad
Synchronize status & alerts: [x]
http://www.ks-soft.net/hostmon.eng/mfra ... htm#Master
To this "dummy" test you may assign an alert profile with "Send email" action in "Bad status actions" area. Such configuration allows you to avoid receiving unnecessary alerts. For instance, if you specify "Start when 1 consecutive "Bad" results occur" and "Repeat 1 times" options in "Action Properties" window, you will receive just one alert when the number of failed tests exceeds 9.
Regards,
Max
Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro
=======================================
%FolderCurrent_BadTests% - Number of the test items (in the folder) those have "Bad" status
=======================================
For instance, you may setup additional "dummy" test (e.g. Ping 127.0.0.1) and use "This test depends on expression" mode. Set the following options:
Perform test if: (%FolderCurrent_BadTests% < 10) or ((%FolderCurrent_BadTests% <= 10) and ('%SimpleStatus%'=='DOWN'))
Otherwise status: Bad
Synchronize status & alerts: [x]
http://www.ks-soft.net/hostmon.eng/mfra ... htm#Master
To this "dummy" test you may assign an alert profile with "Send email" action in "Bad status actions" area. Such configuration allows you to avoid receiving unnecessary alerts. For instance, if you specify "Start when 1 consecutive "Bad" results occur" and "Repeat 1 times" options in "Action Properties" window, you will receive just one alert when the number of failed tests exceeds 9.
Regards,
Max