7.4 Creating a Monitoring Policy

You can create a monitoring policy to automatically discover and monitor resources in a management group. Implementing a monitoring policy on a management group provides a powerful and flexible way to monitor the resources in your environment. For more information, see Section 4.0, Managing a Group of Physical Computers or Logical Servers.

AppManager implements a monitoring policy with one or more Knowledge Script Groups. Before you create a monitoring policy, create and properly configure a Knowledge Script Group. For more information, see Section 7.2, Creating a Knowledge Script Group.

When you create a monitoring policy, AppManager automatically monitors all matching objects. Be aware that if an object belongs to multiple members of a management group and matches a monitoring policy running on that management group, AppManager creates a policy-based job for each instance of the object. For more information about defining the members of a management group, see Section 4.3, Working with Management Groups and Section 4.3, Working with Management Groups.

When you create a monitoring policy, it might take up to one minute for the policy-based jobs to start. If you subsequently add or remove resources, it might take up to one minute for policy-based jobs to start or stop.

If necessary, you can stop and restart a policy-based job or configure override values for a particular parameter.

NOTE:You cannot use a monitoring policy to run reports; a Knowledge Script Group that was created with the Install KS option cannot be added to a monitoring policy. For more information, see Section 7.2, Creating a Knowledge Script Group.

To create a monitoring policy:

  1. In the Enterprise Layout view of the Navigation pane, right-click the management group you want to monitor by policy.

  2. In the Tasks pane, click Management Group Properties > Policies.

  3. On the Policies tab of the Management Group Properties window, click Add.

    Note that from the Operator Console, you cannot remove a Knowledge Script Group that was added in the Control Center console. If you select a Knowledge Script Group that was added from the Control Center console, the Remove button is enabled but does not work.

  4. Select one or more Knowledge Script Groups from the list. To select multiple items, use the Shift or Ctrl keys.

  5. Click OK.

  6. You can configure the number of times that the monitoring policy should attempt to restart policy-based monitoring jobs:

    Click...

    To...

    Always restart error jobs

    Restart a policy-based monitoring job until its job status changes to Running.

    NOTE:The monitoring policy can only restart monitoring jobs.

    Restart error jobs n times

    Specify the number of retry attempts. If the specified number of retry attempts fails to restart the job, the job status remains Error.

    NOTE:If AppManager cannot restart a policy-based job automatically, or if the policy-based job is scheduled to run once, when the job status is Stopped, you can manually restart the job. For more information, see Section 5.11.4, Changing Job Status.

  7. Click OK. The monitoring policy creates policy-based jobs to monitor matching resources.