Mail action for all status changes

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
mrdremel
Posts: 2
Joined: Tue Aug 19, 2008 12:18 am

Mail action for all status changes

Post by mrdremel »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
mrdremel
Posts: 2
Joined: Tue Aug 19, 2008 12:18 am

Post by mrdremel »

Thanks a bundle. I was looking in all the wrong places. No that I see the solution, I feel like such a n00b.
Post Reply