Apply windows service configuration

Microsoft.SystemCenter.Apm.NTServiceInstance.ApplyConfigurationRule (Rule)

Apply windows service configuration.

Knowledge Base article:

Summary

This rule applies the monitoring configuration for the application.

Element properties:

TargetMicrosoft.SystemCenter.Apm.NTServiceInstance
CategoryCustom
EnabledTrue
Alert GenerateFalse
RemotableFalse

Member Modules:

ID Module Type TypeId RunAs 
Scheduler DataSource System.SimpleScheduler Default
WriteAction WriteAction Microsoft.SystemCenter.Apm.NTServiceInstance.ApplyConfiguration System.PrivilegedMonitoringAccount

Source Code:

<Rule ID="Microsoft.SystemCenter.Apm.NTServiceInstance.ApplyConfigurationRule" Enabled="true" ConfirmDelivery="false" Target="Microsoft.SystemCenter.Apm.NTServiceInstance" Remotable="false">
<Category>Custom</Category>
<DataSources>
<DataSource ID="Scheduler" TypeID="System!System.SimpleScheduler">
<IntervalSeconds>86400</IntervalSeconds>
<SyncTime/>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteAction" TypeID="Microsoft.SystemCenter.Apm.NTServiceInstance.ApplyConfiguration" RunAs="System!System.PrivilegedMonitoringAccount">
<Id>$Target/Id$</Id>
<ApplicationName>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstanceBase"]/ApplicationName$</ApplicationName>
<ServiceName>$Target/Property[Type="Microsoft.SystemCenter.Apm.NTServiceInstance"]/ServiceName$</ServiceName>
<ServiceProcessName>$Target/Property[Type="Microsoft.SystemCenter.Apm.NTServiceInstance"]/ServiceProcessName$</ServiceProcessName>
<NamespacesData>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstance"]/Namespaces$</NamespacesData>
<ResourcesData>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstance"]/Resources$</ResourcesData>
<ExcTrackingsData>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstance"]/ExceptionTrackings$</ExcTrackingsData>
<ExcHandlersData>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstance"]/ExceptionHandlers$</ExcHandlersData>
<PerformanceThreshold>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstance"]/PerformanceThreshold$</PerformanceThreshold>
<SensitivityThreshold>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstance"]/SensitivityThreshold$</SensitivityThreshold>
<CollectAllExceptions>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstance"]/CollectAllExceptions$</CollectAllExceptions>
<ManagementGroupName>$Target/ManagementGroup/Name$</ManagementGroupName>
<ManagementGroupId>$Target/ManagementGroup/Id$</ManagementGroupId>
<ApplicationGroupName>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstanceBase"]/ApplicationGroupName$</ApplicationGroupName>
</WriteAction>
</WriteActions>
</Rule>