Alert Attachment File Share Availability Monitor

Microsoft.SystemCenter.AlertAttachment.AlertAttachmentFileShare.AvailabilityState.Monitor (UnitMonitor)

This monitor verifies connectivity to the alert attachment file share from the management servers.

Knowledge Base article:

Summary

The alert attachment file share processing workflows log events to indicate connectivity and security issues. This monitor sets the health state of the file share instance based on these events.

The monitor automatically resets the health state to Healthy with each successful file share operation. Use the monitor health history to analyze past connectivity issues.

The alert attachment share processing workflow permanently unloads when connectivity or security issues occur. You need to manually restart Health Service to restart workflows.

Causes

This monitor controls the health state of an "Alert Attachment File Share" instance and generates alerts related to the file share when processing alert attachments.

2001: A path to the file share is not set in the file share discovery override.

2002: A file share path cannot be resolved or a share does not exist.

2003: A file share is not accessible.

2004: An input/output operation error occurred.

2000: An unknown error occurred.

Resolutions

Element properties:

TargetMicrosoft.SystemCenter.AlertAttachment.AlertAttachmentFileShare
Parent MonitorSystem.Health.AvailabilityState
CategoryCustom
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Alert Attachment File Share processing workflow alert
Event Description: {0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.AlertAttachment.AlertAttachmentFileShare.AvailabilityState.Monitor" Accessibility="Public" Enabled="true" Target="Microsoft.SystemCenter.AlertAttachment.AlertAttachmentFileShare" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>Custom</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.AlertAttachment.AlertAttachmentFileShare.AvailabilityState.Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data[Default='']/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Error" MonitorTypeStateID="FirstEventRaised" HealthState="Error"/>
<OperationalState ID="Success" MonitorTypeStateID="SecondEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>.</FirstComputerName>
<FirstLogName>Operations Manager</FirstLogName>
<FirstExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[6]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Alert Attachment</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Health Service Modules Ex</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(2000|2001|2002|2003|2004)$</Pattern>
</RegExExpression>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>.</SecondComputerName>
<SecondLogName>Operations Manager</SecondLogName>
<SecondExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[6]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Alert Attachment</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Health Service Modules Ex</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">2010</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>