Custom Windows Media Services 9 Role Discovery

Custom.WMS.9.Role.Discovery (Discovery)

Uses registry discovery to identify servers hosting the Microsft Windows Media Services

Knowledge Base article:

Summary

Custom Windows Media Services server Role

Configuration

The Custom WMS Role server is identified by the existence of the WMServer.exe service set to auto or manual start.

Causes

The monitor will show a red state and raise an alert when the service is not running

Resolutions

Re-start the service

Additional

The service is the most fundamental component of this server role

External

This Management Pack is owned and maintained by Custom

Element properties:

TargetMicrosoft.Windows.Server.2003.Computer
EnabledTrue
Frequency3845
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.FilteredRegistryDiscoveryProvider Default

Source Code:

<Discovery ID="Custom.WMS.9.Role.Discovery" Enabled="true" Target="Server!Microsoft.Windows.Server.2003.Computer" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Custom.WMS.9.Role">
<Property TypeID="Custom.WMS.x.Role" PropertyID="ID"/>
<Property TypeID="Custom.WMS.x.Role" PropertyID="InstallDir"/>
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
<ComputerName>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>WMServerStart</AttributeName>
<Path>SYSTEM\CurrentControlSet\Services\WMServer\Start</Path>
<PathType>1</PathType>
<AttributeType>2</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>InstallDir</AttributeName>
<Path>SOFTWARE\Microsoft\Windows Media\Server\InstallDir</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>Version</AttributeName>
<Path>SOFTWARE\Microsoft\Windows Media\Server\Version</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>3845</Frequency>
<ClassId>$MPElement[Name="Custom.WMS.9.Role"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Custom.WMS.x.Role"]/ID$</Name>
<Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetbiosComputerName$</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="Custom.WMS.x.Role"]/InstallDir$</Name>
<Value>$Data/Values/InstallDir$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>Windows Media Services Role</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<And>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Values/WMServerStart</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Integer">2<!--Auto--></Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Values/WMServerStart</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Integer">3<!--Manual--></Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Values/Version</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>
9.0
</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</Discovery>