A policy is a set of rules that you define for vRealize Operations Manager to use to analyze and display information about the objects in your environment. You can modify an existing policy or create a new policy and configure it for automatic alert remediation. To automate the workflow execution, you must apply the policy to a custom group called vRealize Orchestrator Adapter-Managed Objects. This group contains the vSphere objects.
Prerequisites
Ensure that the following prerequisites are met:
- You have mapped custom and user-defined workflows to resources as actions. Automated workflow execution is possible on workflows which have only one input parameter. The only other input parameter is vrops_alert_id and it is used to fetch the ID of the alert that triggered the workflow. This input parameter should be of the type String. To automate workflows which have more than one input parameter, you must create a user-defined workflow and predefine the input parameters in the workflow.
- You have mapped the action to an alert through a recommendation.
Procedure
- In the menu, click Administration, and then on the left pane click Policies and then click the Active Policies tab. Note the name of the current default policy.
- In the Policy Library tab, select the current default policy and click Edit Selected Policy.
- In the Edit Monitoring Policy window, click the Apply Policy to Groups tab.
- Select the checkbox next to vRealize Orchestrator Adapter Managed Objects.
- In the Edit Monitoring Policy window, click the Alert/Symptom Definitions tab.
- In the Alert Definitions pane, filter by the name of the alert to which you have mapped the action that you want to automate.
- Select the alert from the filter results.
- In the Automate column, select Local from the drop-down menu.
- In the State column, select Local from the drop-down menu.
- Click Save.
Results
The default policy is modified to automatically run the configured action when mapped alerts are displayed.