Performance Collection Rule to Collect Mailbox Statistics - Median Mailbox Message Count

Collect_Mailbox_Statistics.MedianMailboxMessageCount.PerformanceCollection (Rule)

This rule collects the performance metric Median Mailbox Message Count

Knowledge Base article:

Summary

Collect Mailbox Statistics Median Mailbox Message Count: Collects the single-instance metric:

Configuration

IMPORTANT NOTE: The performance collections for all Collect Mailbox Statistics counters use the same script run internally to collected data. Change configuration in the same way for all Collect Mailbox Statistics Rules only.

This script is run once, if the configuration for all rules is the same. If the configuration is different, the script is run multiple times which has negative impact on the performances. (This collection is resource intensive).

Element properties:

TargetMicrosoft.Exchange.Databases
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
ScriptDS DataSource Collect_Mailbox_Statistics.DataSource Default
FilterPerf ConditionDetection System.ExpressionFilter Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Collect_Mailbox_Statistics.MedianMailboxMessageCount.PerformanceCollection" Enabled="onStandardMonitoring" Target="Exch2003Core!Microsoft.Exchange.Databases" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="ScriptDS" TypeID="Collect_Mailbox_Statistics.DataSource">
<IntervalSeconds>86400</IntervalSeconds>
<TargetNetbiosComputer>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetbiosComputerName$</TargetNetbiosComputer>
<MaxEntries>200</MaxEntries>
<TimeoutSeconds>1800</TimeoutSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="FilterPerf" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">CounterName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Median Mailbox Message Count</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>