Hitachi Storage FileSystem Availability State Unit Monitor

Hitachi.Storage.HNAS.FileSystem.AvailabilityState.UnitMonitor (UnitMonitor)

Knowledge Base article:

Summary

Monitors file system for critical conditions and generates an alert.

Causes

File system has Unknown, Failed, Unavailable or Failing status.

Resolutions

Examine error message and determine cause for the alert.

Element properties:

TargetHitachi.Storage.HNAS.FileSystem.3.12
Parent MonitorSystem.Health.AvailabilityState
CategoryCustom
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.WmiEventProvider.2SingleEvent2StateMonitorType
RemotableTrue
AccessibilityInternal
Alert Message
Hitachi Storage FileSystem Critical Alert
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Hitachi.Storage.HNAS.FileSystem.AvailabilityState.UnitMonitor" Accessibility="Internal" Enabled="true" Target="Hitachi.Storage.HNAS.FileSystem.3.12" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.WmiEventProvider.2SingleEvent2StateMonitorType" ConfirmDelivery="true">
<Category>Custom</Category>
<AlertSettings AlertMessage="Hitachi.Storage.HNAS.FileSystem.AvailabilityState.UnitMonitor_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name="StatusDesc"]$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UIGeneratedOpStateId9ea11dbdb9434009a36f17a334b38a00" MonitorTypeStateID="FirstEventRaised" HealthState="Success"/>
<OperationalState ID="UIGeneratedOpStateIddd38c1cfff244245be5dab0bd7ceccf6" MonitorTypeStateID="SecondEventRaised" HealthState="Error"/>
</OperationalStates>
<Configuration>
<FirstNameSpace>\\$Target/Property[Type="Hitachi.Storage.HNAS.FileSystem.3.12"]/ConnectorID$\root\Hitachi</FirstNameSpace>
<FirstQuery>select ObjectID, Status, StatusDesc from FileSystemEvent within 30 where Status = 0 or Status = 1</FirstQuery>
<FirstPollInterval>120</FirstPollInterval>
<FirstExpression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name="ObjectID"]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="Hitachi.Storage.HNAS.FileSystem.3.12"]/ObjectID$</Value>
</ValueExpression>
</SimpleExpression>
</FirstExpression>
<SecondNameSpace>\\$Target/Property[Type="Hitachi.Storage.HNAS.FileSystem.3.12"]/ConnectorID$\root\Hitachi</SecondNameSpace>
<SecondQuery>select ObjectID, Status, StatusDesc from FileSystemEvent within 30 where Status = 2</SecondQuery>
<SecondPollInterval>120</SecondPollInterval>
<SecondExpression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name="ObjectID"]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="Hitachi.Storage.HNAS.FileSystem.3.12"]/ObjectID$</Value>
</ValueExpression>
</SimpleExpression>
</SecondExpression>
</Configuration>
</UnitMonitor>