Collect All Management Server SDK Connection Count Rule

OpsMgr.2012.Self.Maintenance.Collect.All.Management.Server.SDK.Connection.Count.Rule (Rule)

Collect Total number of SDK connections across all management servers.

Knowledge Base article:

Summary

This performance collection rule runs on a schedule to collect SDK connection count from each management server in the OpsMgr 2012 management group and present the total number of SDK connections as performance data.

Configuration

The performance data can be access either via any performance reports or performance views in operational console.

Target: All Management Servers Resource Pool

Perf Data Object: OpsMgr SDK Service

Perf Data Counter: Total Client Connections

Element properties:

TargetMicrosoft.SystemCenter.AllManagementServersPool
CategoryPerformanceCollection
EnabledFalse
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource OpsMgr.2012.Self.Maintenance.All.Management.Server.SDK.Connection.Count.DataSource Default
MapToPerf ConditionDetection System.Performance.DataGenericMapper Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="OpsMgr.2012.Self.Maintenance.Collect.All.Management.Server.SDK.Connection.Count.Rule" Target="SC!Microsoft.SystemCenter.AllManagementServersPool" Enabled="false" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="OpsMgr.2012.Self.Maintenance.All.Management.Server.SDK.Connection.Count.DataSource">
<IntervalSeconds>600</IntervalSeconds>
<TimeoutSeconds>120</TimeoutSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="MapToPerf" TypeID="Performance!System.Performance.DataGenericMapper">
<ObjectName>OpsMgr SDK Service</ObjectName>
<CounterName>Total Client Connections</CounterName>
<InstanceName/>
<Value>$Data/Property[@Name='TotalSDKConnection']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="DW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>