Performance Collection Rule to Collect Message Tracking Log Statistics for Exchange Event Type 1004 - Top Destinations by Message Count

Collect_Message_Tracking_Log_Statistics.1004.E2kMessageCount.PerformanceCollection (Rule)

This rule collects the performance metrics for exchange event type 1004 for 'Top Destinations by Message Count' report. (reports only - disabled by default)

Knowledge Base article:

Summary

Collect Message Tracking Log Statistics Top Destinations by Message Count: Collects the multi-instance metric

This rule submits data only to the Ops Mgr Data Warehouse for reporting purposes.

Note: Rule is disabled by default.

Configuration

IMPORTANT NOTE: The performance collections for all Collect Message Tracking Log Statistics counters use the same script run internally to collect data. Change configuration in the same way for all Collect Message Tracking Log Statistics Rules.

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 performance. (This collection is resource intensive).

Element properties:

TargetMicrosoft.Exchange.Databases
CategoryPerformanceCollection
EnabledFalse
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
ScriptDS DataSource Collect_Message_Tracking_Log_Statistics.DataSource Default
CD ConditionDetection FilterAndPerfMapper Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Collect_Message_Tracking_Log_Statistics.1004.E2kMessageCount.PerformanceCollection" Enabled="false" Target="Exch2003Core!Microsoft.Exchange.Databases" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="ScriptDS" TypeID="Collect_Message_Tracking_Log_Statistics.DataSource">
<IntervalSeconds>86400</IntervalSeconds>
<TargetNetbiosComputer>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetbiosComputerName$</TargetNetbiosComputer>
<MaxEntries>200</MaxEntries>
<TimeoutSeconds>7200</TimeoutSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="CD" TypeID="FilterAndPerfMapper">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='StatusCounterId']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">1004</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='StatusCounter']</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>E2k Message Count</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
<ObjectName>$Data/Property[@Name='StatusObject']$</ObjectName>
<CounterName>$Data/Property[@Name='StatusCounter']$</CounterName>
<InstanceName>$Data/Property[@Name='StatusInstance']$</InstanceName>
<Value>$Data/Property[@Name='StatusValue']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>