The following procedures show how to create a discovery to populate groups in the Operations Manager 2007 Authoring console. Before you perform these procedures, you must complete the following prerequisite procedures:
To populate an instance group
-
Select Health Model, and then select Discoveries.
-
Right-click in the right side pane, select New, and then select Custom Discovery.
-
In the Choose a unique identifier box, type MyMP.Discovery.Populate MyInstanceGroup.
-
On the General tab, do the following:
-
In the Name box, type Populate My Instance Group.
-
In the Target box, select MyMP.MyInstanceGroup.
-
On the Discovered Classes tab, do the following:
-
Click Add above the Discovered relationships and their attributes pane and select Add discovered relationship.
-
In the Management Pack Relationship Chooser box, select Microsoft.SystemCenter.InstanceGroupContainsEntities, and then click OK.
-
On the Configuration tab, do the following:
-
Select Browse for a type.
-
In the Choose module type box, select Microsoft.SystemCenter.GroupPopulator.
-
In the Module ID box, type GroupPopulator. Click OK.
-
In the Value column of the RuleId row, type $MPElement$.
-
In the Value column of the GroupInstanceId row, type $MPElement[Name="MyMP.MyInstanceGroup"]$.
-
In the Value column of the >MonitoringClass row, type $MPElement[Name="MyMP.MyComputerRole1"]$.
-
In the Value column of the >>RelationshipClass row, type $MPElement[Name="SCIG!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$. If an alias other than SCIG is used, this string should be replaced with the appropriate alias.
-
Click OK.
-
Select File, and then click Save.
To populate a computer group
-
Select Health Model, and then select Discoveries.
-
Right-click in the right-side pane, select New, and then select Custom Discovery.
-
In the Choose a unique identifier box, type MyMP.Discovery.PopulateMyComputerGroup.
-
On the General tab, do the following:
-
In the Name box, type Populate My Computer Group.
-
In the Target box, select MyMP.MyComputerGroup.
-
On the Discovered Classes tab, do the following:
-
Click Add above the Discovered relationships and their attributes pane, and select Add discovered relationship.
-
Select Microsoft.SystemCenter.ComputerGroupContainsComputer. Click OK.
-
On the Configuration page, do the following:
-
Select Browse for a type.
-
In the Choose module type box, select Microsoft.SystemCenter.GroupPopulator.
-
In the Module ID box, type GroupPopulator. Click OK.
-
Click Edit to start the external editor.
-
Copy and paste the following XML code between the Configuration tags.
<RuleId>$MPElement$</RuleId>
<GroupInstanceId>$MPElement[Name="MyMP.MyComputerGroup"]$</GroupInstanceId>
<MembershipRules>
<MembershipRule>
<MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Computer"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="SC!Microsoft.SystemCenter.ComputerGroupContainsComputer"]$</RelationshipClass>
<Expression>
<Contains>
<MonitoringClass>$MPElement[Name="MyMP.MyComputerRole1"]$</MonitoringClass>
</Contains>
</Expression>
</MembershipRule>
</MembershipRules>
-
Close the external editor, and save the configuration in the Authoring console.
-
Click OK.
-
Select File, and then click Save.