SCOM Dynamic Group Computer + Watcher based on different class object

Fursel 341 Reputation points
2020-10-08T13:37:57.903+00:00

Is there some tweak to make a dynamic group which will contain e.g. Windows Computer + HealthServiceWatcher objects based on discovery of some other class, e.g. Print Server Role

I tried with something like that for Windows Computers for first but it doesn't work

<MembershipRules>
       <MembershipRule>
              <MonitoringClass>$MPElement[Name="MicrosoftWindowsLibrary7585010!Microsoft.Windows.Computer"]$</MonitoringClass>
              <RelationshipClass>$MPElement[Name="SystemCenter!Microsoft.SystemCenter.ComputerGroupContainsComputer"]$</RelationshipClass>
              <Expression>
                <Contains>   <MonitoringClass>$MPElement[Name="MicrosoftWindowsServerPrintServerLibrary10100!Microsoft.Windows.Server.PrintServer.Library.PrintServicesRole"]$</MonitoringClass>
                </Contains>
              </Expression>
            </MembershipRule>
Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,469 questions
0 comments No comments
{count} votes

Accepted answer
  1. Fursel 341 Reputation points
    2020-10-08T16:01:25.727+00:00

    Great it worked :)

                <MembershipRule>
                  <MonitoringClass>$MPElement[Name="SystemCenter!Microsoft.SystemCenter.HealthServiceWatcher"]$</MonitoringClass>
                  <RelationshipClass>$MPElement[Name="MicrosoftSystemCenterInstanceGroupLibrary7585010!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$</RelationshipClass>
                   <Expression>
                    <Contains>
                     <MonitoringClass>$MPElement[Name="SystemCenter!Microsoft.SystemCenter.HealthService"]$</MonitoringClass>
                       <Expression>
                        <Contained>
                          <MonitoringClass>$MPElement[Name="MicrosoftWindowsLibrary7585010!Microsoft.Windows.Computer"]$</MonitoringClass>
                           <Expression>
                            <Contained>
                             <MonitoringClass>$Target/Id$</MonitoringClass>
                            </Contained>
                           </Expression>
                        </Contained>
                       </Expression>
                      </Contains>
                     </Expression>
                </MembershipRule>
    
                <MembershipRule>
                  <MonitoringClass>$MPElement[Name="MicrosoftWindowsLibrary7585010!Microsoft.Windows.Computer"]$</MonitoringClass>
                  <RelationshipClass>$MPElement[Name="MicrosoftSystemCenterInstanceGroupLibrary7585010!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$</RelationshipClass>
                  <Expression>
                    <Contains>
                      <MonitoringClass>$MPElement[Name="MicrosoftWindowsServerPrintServerLibrary10100!Microsoft.Windows.Server.PrintServer.Library.PrintServicesRole"]$</MonitoringClass>
                    </Contains>
                  </Expression>
                </MembershipRule>
    
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Leon Laude 85,776 Reputation points
    2020-10-08T14:31:15.59+00:00

    Hi @Fursel ,

    Did you have a look if blog posts below could be of any help?
    Windows Computer and associated Health Service watcher in a dynamic group

    Creating a Group of Windows Computer and Health Service Watcher Objects

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    Best regards,
    Leon

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.