Collect number of iSCSI target sessions

Microsoft.Windows.FileServices.Service.iSCSITarget.10.0.CollectSessionsCounter (Rule)

Collect the Windows performance counter for the number of iSCSI target sessions

Knowledge Base article:

Summary

This rule collects performance data for the number of sessions currently connected to the iSCSI Target service. This is a standard Windows performance collection rule and uses optimized performance collection to reduce the number of data points collected and stored. The rule writes to both the data base and data warehouse.

Configuration

This rule is disabled by default after you install the management pack. To enable the rule add an override by following the steps in the Windows Server management pack guide that accompanies this MP.

Element properties:

TargetMicrosoft.Windows.FileServices.Service.iSCSITarget.10.0
CategoryPerformanceCollection
EnabledFalse
Instance NameiSCSI Target
Counter Name# Sessions
Frequency900
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource System.Performance.OptimizedDataProvider Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.Windows.FileServices.Service.iSCSITarget.10.0.CollectSessionsCounter" Enabled="false" Target="Microsoft.Windows.FileServices.Service.iSCSITarget.10.0" Remotable="true">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="SystemPerf!System.Performance.OptimizedDataProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName># Sessions</CounterName>
<ObjectName>iSCSI Target</ObjectName>
<InstanceName/>
<AllInstances>false</AllInstances>
<Frequency>900</Frequency>
<Tolerance>2</Tolerance>
<ToleranceType>Absolute</ToleranceType>
<MaximumSampleSeparation>10</MaximumSampleSeparation>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>