I am aware that an action can be configured for a monitored item which can be an e-mail sent to an address.
However, I would like to configure the system that an e-mail is allways sent to an address when the status of any item changes. I have about 500 monitored items with various actions which must remain the same.
I found the global macro variables and altered the udv_admin_mail to the address I need. I set up the smtp server and that works for a configured action.
When I look at the mail profiles, there is a line that says "Mail to Admin". This is basically what I want, but it does not send any e-mails.
Is it possible to send an e-mail for every status change, without having to change 500 tests?
Dremel
Mail action for all status changes
You don't need to modify test settings at all. You just need to add "Send e-mail" action into action profiles assigned to the tests
http://www.ks-soft.net/hostmon.eng/mfra ... ctions.htm
Usually we use the following settings to start an action
- Start when 1 consecutive bad result occurs
- Repeat 1 time
In such case HostMonitor will execute action when test status changes from "bad" to "good" or vice versa.
If you really need to send "e-mail" on ANY status change (e.g. some test methods may change status from "Ok" to "Host is alive"), then you may use "advanced mode" action and exression like ('%Status%'<>'%LastStatus%')
http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction
Regards
Alex
http://www.ks-soft.net/hostmon.eng/mfra ... ctions.htm
Usually we use the following settings to start an action
- Start when 1 consecutive bad result occurs
- Repeat 1 time
In such case HostMonitor will execute action when test status changes from "bad" to "good" or vice versa.
If you really need to send "e-mail" on ANY status change (e.g. some test methods may change status from "Ok" to "Host is alive"), then you may use "advanced mode" action and exression like ('%Status%'<>'%LastStatus%')
http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction
Regards
Alex