Hi,
I'd like to for 3 groups of clients. For all clients I need to send an email once the system is down and once it's back up.
For group 1 - I need down reminders every 30 minutes until its back up. For group 2 - I need down reminders every 60 minutes
For group 3 - I need 60, 120, 240,480,960 minute reminders.
Thanks
Periodic reminder emails
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
It is possible, but it depends on how often test is performed. For instance, if test is performed every 5 minutes, you may assign to this test an action profile with 3 "Send Email" actions, configured into advanced mode with the following expressions:
Expression for the first group: ('%SimpleStatus%'=='DOWN') and (%Recurrences% mod 6==1)
Expression for the second group: ('%SimpleStatus%'=='DOWN') and (%Recurrences% mod 12==1)
It's pretty difficult to calculate formula for the third group, so you may use following expression: ('%SimpleStatus%'=='DOWN') and ((%Recurrences%==1) or (%Recurrences%==13) or (%Recurrences%==49) or (%Recurrences%==97))
Of course if you specified another test interval (not 5 minutes) you should sligtly modify these expression to make HostMonitor work properly.
You may find information regarding "Advanced mode" actions here:
http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction
Regards,
Max
Expression for the first group: ('%SimpleStatus%'=='DOWN') and (%Recurrences% mod 6==1)
Expression for the second group: ('%SimpleStatus%'=='DOWN') and (%Recurrences% mod 12==1)
It's pretty difficult to calculate formula for the third group, so you may use following expression: ('%SimpleStatus%'=='DOWN') and ((%Recurrences%==1) or (%Recurrences%==13) or (%Recurrences%==49) or (%Recurrences%==97))
Of course if you specified another test interval (not 5 minutes) you should sligtly modify these expression to make HostMonitor work properly.
You may find information regarding "Advanced mode" actions here:
http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction
Regards,
Max
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Not exactly. Each test has its own "Recurrences" counter. It means when test changes status from "Good" to "Bad" or vice versa, Recurrences counter is resetted to 0. If after next probe status remains the same, Recurrences increases to 1, and so on. As I understand, you setup the test, to check system is up, right? To achieve your goal, you should assign to this test an action profile with three "Send Email" actions. It is simple to calculate: if the test is performed once a minute, it means test should be performed 30 times for 30 minutes. If test status has not been changed for this time, Recurrences counter should contain 30. That's why we should use three "Send Email" actions with different expressions:
Expression for the first group: ('%SimpleStatus%'=='DOWN') and (%Recurrences% mod 30==1)
Expression for the second group: ('%SimpleStatus%'=='DOWN') and (%Recurrences% mod 60==1)
Expression for the third group: ('%SimpleStatus%'=='DOWN') and ((%Recurrences%==1) or (%Recurrences%==60) or (%Recurrences%==120) or (%Recurrences%==240) or (%Recurrences%==480))
Regards,
Max
Expression for the first group: ('%SimpleStatus%'=='DOWN') and (%Recurrences% mod 30==1)
Expression for the second group: ('%SimpleStatus%'=='DOWN') and (%Recurrences% mod 60==1)
Expression for the third group: ('%SimpleStatus%'=='DOWN') and ((%Recurrences%==1) or (%Recurrences%==60) or (%Recurrences%==120) or (%Recurrences%==240) or (%Recurrences%==480))
Regards,
Max