Advisor 커넥터 검색
Microsoft.SystemCenter.Advisor.Internal.AdvisorConnectorDiscovery (Discovery)
이 검색 규칙은 Advisor 커넥터가 대상 컴퓨터에 설치되고 활성화되었는지 여부를 검색합니다.
Element properties:
Object Discovery Details:
Member Modules:
Source Code:
<Discovery ID="Microsoft.SystemCenter.Advisor.Internal.AdvisorConnectorDiscovery" Target="Windows!Microsoft.Windows.Computer" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SystemCenter.Advisor.Internal.AdvisorConnector">
<Property TypeID="Microsoft.SystemCenter.Advisor.Internal.AdvisorConnector" PropertyID="AgentID"/>
<Property TypeID="Microsoft.SystemCenter.Advisor.Internal.AdvisorConnector" PropertyID="PrincipalName"/>
<Property TypeID="Microsoft.SystemCenter.Advisor.Internal.AdvisorConnector" PropertyID="Version"/>
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider" RunAs="System!System.PrivilegedMonitoringAccount">
<ComputerName>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>AdvisorConnectorActivated</AttributeName>
<Path>SYSTEM\CurrentControlSet\services\HealthService\Parameters\Management Groups\AdvisorMonitorV2\Connector CLSID</Path>
<PathType>1</PathType>
<AttributeType>0</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>Version</AttributeName>
<Path>SOFTWARE\Microsoft\System Center Operations Manager\12\Advisor\Version</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>RegisterToManagementGroup</AttributeName>
<Path>SOFTWARE\Microsoft\System Center Operations Manager\12\Advisor\RegisterToManagementGroup</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>600</Frequency>
<ClassId>$MPElement[Name="Microsoft.SystemCenter.Advisor.Internal.AdvisorConnector"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Microsoft.SystemCenter.Advisor.Internal.AdvisorConnector"]/AgentID$</Name>
<Value>$Target/Id$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Microsoft.SystemCenter.Advisor.Internal.AdvisorConnector"]/PrincipalName$</Name>
<Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Microsoft.SystemCenter.Advisor.Internal.AdvisorConnector"]/Version$</Name>
<Value>$Data/Values/Version$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>$Target/Property[Type="System!System.Entity"]/DisplayName$</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Values/AdvisorConnectorActivated</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">True</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Values/RegisterToManagementGroup</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/ManagementGroup/Id$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</Discovery>