Сбор количества сообщений журнала очереди
Microsoft.MSMQ.6.3.Rule.CollectQueueJournalMessageCount (Rule)
Knowledge Base article:
Element properties:
Member Modules:
Source Code:
<Rule ID="Microsoft.MSMQ.6.3.Rule.CollectQueueJournalMessageCount" Enabled="true" Target="Microsoft.MSMQ.6.3.Queues" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.MSMQ.6.3.DataSource.Queue.Statistics.PerformanceRaw">
<IntervalSeconds>900</IntervalSeconds>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<QueuePath>$Target/Property[Type='Microsoft.MSMQ.6.3.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>