Hi,
How will AHM treat good actions in this action profile:
Bad:
1. 3 bad, restart service
2. 10bad, send email
Good:
1->1. 3good, send email, service okay again, because of automatic restart
2->2. 10good, send email, service okay again
So, action 1 good, depends on 1 bad, and the same for number 2..
Scenario:
Test fails
After 3 bad, try to restart service
Restart service fails for some reason
After 10 bad, email is sent
After 20 bad, server is manually restarted
Now to the question:
Will I recieve both emails..? Since both bad status actions have been executed..
Or is there som logic, that will ensure, that only number 2 is send..?
Logic in action profiles
Because I wanted to send different emails..KS-Soft wrote:However I do not understand why do you need 2 "good" actions that do the same job - send e-mail that informs you that everything is Ok.
Why?
1. Service has been restarted automatically, nothing to worry about
2. Automatic restart failed. Please check log etc
Basically something like that..

I use these for checking/re-starting a failed service.
BAD
Action: Start After: Repeat
Start Service: 1: 1
Set new test interval: 1: 1
Send email: 2: 1
Set new test interval: 2: 1
GOOD
Action: Start After: Repeat
Set new test interval: 1: 1
On failure attempt to restart service.
Set the test time interval to 2 minutes so the test will check if the service has restarted.
If test still fails, send email and restore normal test inteval.
cheers, Paul
BAD
Action: Start After: Repeat
Start Service: 1: 1
Set new test interval: 1: 1
Send email: 2: 1
Set new test interval: 2: 1
GOOD
Action: Start After: Repeat
Set new test interval: 1: 1
On failure attempt to restart service.
Set the test time interval to 2 minutes so the test will check if the service has restarted.
If test still fails, send email and restore normal test inteval.
cheers, Paul