Collect Queue Journal Message Count

Microsoft.MSMQ.2003.Rule.CollectQueueJournalMessageCount (Rule)

Collect the number of journal messages in the journal of the queue.

Knowledge Base article:

Summary

This Rule collects the number of journal messages in the journal of the queue.

Element properties:

TargetMicrosoft.MSMQ.2003.Queue
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.MSMQ.2003.DataSource.Queue.Statistics.PerformanceRaw Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.MSMQ.2003.Rule.CollectQueueJournalMessageCount" Enabled="true" Target="Microsoft.MSMQ.2003.Queue" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.MSMQ.2003.DataSource.Queue.Statistics.PerformanceRaw">
<IntervalSeconds>900</IntervalSeconds>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<QueuePath>$Target/Property[Type='MSMQ!Microsoft.MSMQ.Queue']/PathName$</QueuePath>
<CounterName>Messages In Journal Queue</CounterName>
<LogDetail>false</LogDetail>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>