I have created an alert to send an email if any component in a specific application template goes into a bad state. The application template has various monitors for event logs, Windows services etc..
Here is the trigger condition for the alert
Trigger Condition:
The actual trigger condition:
All child conditions must be satisfied (AND)
Application Alerting Properties - Application Name - is equal to - My Application
Node - Status - is not equal to - Down
At least one child condition must be satisfied (OR)
Component - Status - is equal to - Down
Component - Status - is equal to - Warning
Component - Status - is equal to - Critical
The question I have is, besides the "Send email" trigger action, can I have an additional action using the APMService control to restart any of the services if they go down or do I need the Restart Service to be a separate alert that only targets the "Service" components? If that make sense.
I am not sure what would happen if say, an event log monitor component went into a critical state and then the Restart Service action ran on that. Would it just say, this isn't a service and move along or would it break something. Not sure I want to test in production.
Thanks