what if service does not restart?

General chat about HostMonitor (all messages posted before March 07, 2003 available here).
Locked
User avatar
M@ster
Posts: 78
Joined: Thu Oct 24, 2002 6:00 pm
Location: Germany

Post by M@ster »

I want HM to restart a service if it failes (on a remote machine). How can I send a mail if restarting that service failes? I do not want to end in a loop, where HM always gets a bad answer, because the service is not running and it can not be restartet :sad:
Next time it tests it will try to restart it, again...

regards
René
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

>How can I send a mail if restarting that service failes?

Its simple. If "Restart service" is first action that you setup, I think you use following settings:
- Start when 1 consecutive Bad result occurs
- Repeat: 1 time
Just add "Send e-mail" action with settings:
- Start when 2 consecutive Bad result occurs
- Repeat: 1 time

Regards
Alex
User avatar
M@ster
Posts: 78
Joined: Thu Oct 24, 2002 6:00 pm
Location: Germany

Post by M@ster »

Jep, you are right.
It can be that easy :smile:

thx again
René
Locked