ConfigMgr 2007 State Message Summary Tasks: Task running too long

SMSv4_State_Message_Summary_Tasks__Task_running_too_long_1_Rule (Rule)

Knowledge Base article:

Summary

An alert is raised if the threshold is exceeded. The duration is checked by running a script every 5 minutes.  The max duration is passed as an input parameter to the script.  Another resolution option is therefore to adjust the max duration.

Element properties:

TargetMicrosoft.SystemCenter.ConfigurationManager.2007.Microsoft_SMSv4_Site_Database_Servers_Installation
CategoryEventCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue
CommentMom2005ID='{8C1E8095-8FE9-4073-AF34-014AF84520EE}';MOM2005ComputerGroupID={15348338-2E39-4B34-9DFF-4719AE7F1CCE}

Member Modules:

ID Module Type TypeId RunAs 
_F320DA51_13BF_11D3_B2CD_00A0C92A28B4_ DataSource System.Mom.BackwardCompatibility.FilteredEvent.DataProvider Default
GenerateAlert WriteAction System.Mom.BackwardCompatibility.AlertResponse Default

Source Code:

<Rule ID="SMSv4_State_Message_Summary_Tasks__Task_running_too_long_1_Rule" Target="Microsoft.SystemCenter.ConfigurationManager.2007.Microsoft_SMSv4_Site_Database_Servers_Installation" Enabled="true" ConfirmDelivery="false" Comment="Mom2005ID='{8C1E8095-8FE9-4073-AF34-014AF84520EE}';MOM2005ComputerGroupID={15348338-2E39-4B34-9DFF-4719AE7F1CCE}">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="_F320DA51_13BF_11D3_B2CD_00A0C92A28B4_" Comment="{F320DA51-13BF-11D3-B2CD-00A0C92A28B4}" TypeID="MomBackwardCompatibility!System.Mom.BackwardCompatibility.FilteredEvent.DataProvider">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>1741</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>ConfigMgr 2007 Monitor State Message Summary Tasks</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="System.Mom.BackwardCompatibility.AlertResponse">
<GenerateAlert>true</GenerateAlert>
<Owner/>
<Description>
$Data/LoggingComputer$
- ConfigMgr 2007 State Message Summary Tasks: Task running too long.


$Data/EventDescription$


The task contains properties

Task Name:
$Data/Params/Param[1]$

Start Time (UTC):
$Data/Params/Param[2]$

Current Task Duration (seconds):
$Data/Params/Param[3]$

Maximum Task Duration (seconds):
$Data/Params/Param[4]$
</Description>
<AlertLevel>30</AlertLevel>
<ResolutionState/>
<Source>
$Data/PublisherName$
</Source>
<Name>ConfigMgr 2007 State Message Summary Tasks: Task running too long</Name>
<InvokerType>0</InvokerType>
</WriteAction>
</WriteActions>
</Rule>