MSMQ Server Total Kbytes in all queues Performance Collection Rule

MSMQ.Server.TotalKBytesInAllQueues.PerformanceCollection.Rule (Rule)

Element properties:

TargetMSMQ.Server
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource MSMQ.ServerStats.DS Default
System.Performance.DataGenericMapper ConditionDetection System.Performance.DataGenericMapper Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="MSMQ.Server.TotalKBytesInAllQueues.PerformanceCollection.Rule" Enabled="true" Target="MSMQ.Server" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="MSMQ.ServerStats.DS">
<IntervalSeconds>901</IntervalSeconds>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<DebugLogging>false</DebugLogging>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="System.Performance.DataGenericMapper" TypeID="Perf!System.Performance.DataGenericMapper">
<ObjectName>MSMQ Service</ObjectName>
<CounterName>Total Kbytes in all queues</CounterName>
<InstanceName/>
<Value>$Data/Property[@Name='TotalKBytesInAllQueues']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>