How to create an Agent-based Monitor 7 policy to monitor for a service
|Article:HOWTO32640|||||Created: 2010-10-27|||||Updated: 2012-01-19|||||Article URL http://www.symantec.com/docs/HOWTO32640|
- Open Home > Monitoring and Alerting then go to Monitor > Policies
- Find the folder you want the new policy to be in and right click it
- Go to New > Monitor Policy (Agent-based)
- Give the policy a name
- Click the Add button under ‘Rules’
- Click New > Metric
- Give the new rule a name and click the New button under Metrics
- Click Select metric
- Click New > Windows Service
- Name the new metric and configure as needed
- The Query type will determine what you want to know about the service: Installed, Status, or Startup Type
- Ensure the new metric is selected and click OK
- Configure the evaluation as needed. IE if you want to know if the service has stopped, use the following settings:
- Statistics = None
- Condition = Is equal to
- Value = Stopped
- Click OK
- If you would like the rule to trigger an action, configure the Actions section as desired. As an example:
- You can set the severity to “Warning” so that if the service gets stopped then there will be a Warning alert in the Event Console.
- Set the Reset values as desired
- You can take action on the server the NS is on or you can take action on the agent machine.
- To restart a stopped service on the agent, click the New button in the “Monitor Agent” section.
- Select Run Script
- Give the task a name and configure as desired
- The most common way to restart a service is to run “Net start <serviceName>”
- Click OK twice
- Add your targets and enable the policy.
- Ensure your resources get the updated configuration.
Article URL http://www.symantec.com/docs/HOWTO32640