Discover Foglight Monitoring Server

Connect.APM.Foglight.Discover.Connect.APM.MonitoringServer (Discovery)

Description for the new discovery.

Element properties:

TargetMicrosoft.Windows.Computer
EnabledTrue
Frequency84600
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="Connect.APM.Foglight.Discover.Connect.APM.MonitoringServer" Target="Windows!Microsoft.Windows.Computer" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Connect.APM.Foglight.MonitoringServer"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
<ComputerName>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>KeyExists</AttributeName>
<Path>SOFTWARE\ABCIT\APMFoglight</Path>
<PathType>0</PathType>
<AttributeType>0</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>APMServerURL</AttributeName>
<Path>SOFTWARE\ABCIT\APMFoglight\APMServerURL</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>APMServerAuthToken</AttributeName>
<Path>SOFTWARE\ABCIT\APMFoglight\APMServerAuthToken</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>84600</Frequency>
<ClassId>$MPElement[Name="Connect.APM.Foglight.MonitoringServer"]$</ClassId>
<InstanceSettings>
<Settings>
<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="System!System.Entity"]/DisplayName$</Name>
<Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Connect.APM.Foglight.MonitoringServer"]/APMServerURL$</Name>
<Value>$Data/Values/APMServerURL$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Connect.APM.Foglight.MonitoringServer"]/APMServerAuthToken$</Name>
<Value>$Data/Values/APMServerAuthToken$</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>Values/KeyExists</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>true</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</DataSource>
</Discovery>