Discovery rule that populates Web console watchers

Microsoft.SystemCenter.WebConsoleWatcherDiscovery (Discovery)

Discovery rule that populate web console watchers instances.

Knowledge Base article:

Summary

Discovers the Web Console Watcher.

Causes

This section is not applicable for this type of rule.

Resolutions

There is no user action for this type of rule.

Element properties:

TargetMicrosoft.SystemCenter.HealthService
EnabledTrue
Frequency86400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.FilteredRegistryDiscoveryProvider System.PrivilegedMonitoringAccount

Source Code:

<Discovery ID="Microsoft.SystemCenter.WebConsoleWatcherDiscovery" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.HealthService" ConfirmDelivery="false" Remotable="false" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="SCLibrary!Microsoft.SystemCenter.WebConsoleWatcher">
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
<Property PropertyID="WebConsoleUrl"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DS" RunAs="System!System.PrivilegedMonitoringAccount" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>WebConsoleUrl</AttributeName>
<Path>SOFTWARE\Microsoft\System Center Operations Manager\12\Setup\WebConsole\WEB_CONSOLE_URL</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>86400</Frequency>
<ClassId>$MPElement[Name="SCLibrary!Microsoft.SystemCenter.WebConsoleWatcher"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="SCLibrary!Microsoft.SystemCenter.WebConsoleWatcher"]/WebConsoleUrl$</Name>
<Value>$Data/Values/WebConsoleUrl$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>Web Console Watcher($Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$)</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>Values/WebConsoleUrl</XPathQuery>
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value/>
</ValueExpression>
</SimpleExpression>
</Expression>
</DataSource>
</Discovery>