To manage, monitor, and apply policies to the accounting objects as a group, you create a custom object group.
Procedure
- From the left menu, click .
- Click Add to create a new custom group.
- Type a name similar to Accounting VMs and Hosts.
- From the Group Type drop-down menu, select Department.
- From the Policy drop-down menu, select Default Policy.
When you create a policy, you apply the new policy to the accounting group.
- In the Define membership criteria area, from the Select the Object Type that matches the following criteria drop-down menu, expand vCenter Adapter, select Host System, and configure the dynamic group criteria.
- From the criteria drop-down menu, select Relationship.
- From the relationships options drop-down menu, select Parent of.
- From the operator drop-down menu, select contains.
- In the Object name text box, enter acct.
- From the navigation tree drop-down list, select vSphere Hosts and Clusters.
You created a dynamic group where host objects that are the host for virtual machines with acct in the virtual machine name are included in the group. If a virtual machine with acct in the object name is added or moved to a host, the host object is added to the group.
- Click Preview in the lower-left corner of the workspace, and verify that the hosts on which your virtual machines that include acct in the object name appear in the Preview Group window.
- Click Close.
- Click Add another criteria set.
A new criteria set is added with the OR operator between the two criteria sets.
- From the Select the Object Type that matches the following criteria drop-down menu, expand vCenter Adapter, select Virtual Machine, and configure the dynamic group criteria.
- From the criteria drop-down menu, select Properties.
- From the Pick a property drop-down menu, expand Configuration and double-click Name.
- From the operator drop-down menu, select contains.
- In the Property value text box, enter acct.
You created a dynamic group where virtual machine objects with acct in the object name are included in the group that depends on the presence of those virtual machines. If a virtual machine with acct in the name is added to your environment, it is added to the group.
- Click Preview in the lower-left corner of the workspace, and verify that the virtual machines with acct in the object name are added to the list that also includes the host systems.
- Click Close.
- Click OK.
The Accounting VMs and Hosts group is added to the Groups list.
Results
You created a dynamic object group that changes as virtual machines with acct in their names are added, removed, and moved in your environment.
What to do next
Create a policy that determines how vRealize Operations uses the alert definition to monitor your environment. See Create a Policy for the Accounting Alert.