Monitor for repetitive hangs with Microsoft Office 2003 InfoPath

Microsoft.Office.2003.InfoPath.RepetitiveHang.Event.Monitor (UnitMonitor)

Knowledge Base article:

Summary

This Monitor generates an alert when an application repeatedly hangs within a short period of time.

Configuration

The threshold value for the number of repeats and the time period that they can occur within for the threshold to be reached can be modified using the overrides feature.

Resolutions

When an application generates an application error, you can use one of the following options to address the issue:

1. Look for related support information on the Microsoft Support Website.

2. Install any service pack or product updates for the relevant application.

3. Install any service packs or updates for any relevant subsystems that the application depends on.

4. Remove of the relevant application.

If the same application generates application errors frequently and related support information is unavailable contact Microsoft Product Support.

Element properties:

TargetMicrosoft.Office.2003.InfoPath
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.RepeatedEventLogTimer2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Microsoft Office 2003 InfoPath has hung repetitively.
Microsoft {0} {1} has hung a number of times in a short period of time and is effecting the end users ability to properly use the application. Information on possible resolutions can be found in Knowledge associated with this alert.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Office.2003.InfoPath.RepetitiveHang.Event.Monitor" Accessibility="Public" Target="Microsoft.Office.2003.InfoPath" TypeID="Windows!Microsoft.Windows.RepeatedEventLogTimer2StateMonitorType" ParentMonitorID="SystemHealth!System.Health.PerformanceState" ConfirmDelivery="false" Remotable="true" Enabled="onEssentialMonitoring" Priority="Normal">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.Office.2003.InfoPath.RepetitiveHang.Event.Monitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>Office</AlertParameter1>
<AlertParameter2>InfoPath</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="RepetitivelyHanging" HealthState="Warning" MonitorTypeStateID="RepeatedEventRaised"/>
<OperationalState ID="Healthy" HealthState="Success" MonitorTypeStateID="TimerEventRaised"/>
</OperationalStates>
<Configuration>
<RepeatedComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</RepeatedComputerName>
<RepeatedLogName>Application</RepeatedLogName>
<RepeatedExpression>
<And>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>Params/Param[1]</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>$Target/Property[Type="IWCommon!Microsoft.Office.InfoPath"]/FileName$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Application Hang</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>1002</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</RepeatedExpression>
<Consolidator>
<ConsolidationProperties/>
<TimeControl>
<WithinTimeSchedule>
<Interval>3600</Interval>
</WithinTimeSchedule>
</TimeControl>
<CountingCondition>
<Count>4</Count>
<CountMode>OnNewItemTestOutputRestart_OnTimerSlideByOne</CountMode>
</CountingCondition>
</Consolidator>
<TimerWaitInSeconds>86400</TimerWaitInSeconds>
</Configuration>
</UnitMonitor>