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
Next time it tests it will try to restart it, again...
>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