Hitachi Storage Drive Availability State Unit Monitor

Hitachi.Storage.Drive.AvailabilityState.UnitMonitorDisable (UnitMonitor)

Element properties:

TargetHitachi.Storage.DriveDisable.3.12
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledFalse
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.WmiEventProvider.2SingleEvent2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Hitachi Storage Drive Availability State UnitMonitor
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Hitachi.Storage.Drive.AvailabilityState.UnitMonitorDisable" Accessibility="Public" Enabled="false" Target="Hitachi.Storage.DriveDisable.3.12" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.WmiEventProvider.2SingleEvent2StateMonitorType" ConfirmDelivery="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Hitachi.Storage.Drive.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="FirstEventRaised" MonitorTypeStateID="FirstEventRaised" HealthState="Success"/>
<OperationalState ID="SecondEventRaised" MonitorTypeStateID="SecondEventRaised" HealthState="Error"/>
</OperationalStates>
<Configuration>
<FirstNameSpace>\\$Target/Property[Type="Hitachi.Storage.Drive.3.12"]/ConnectorID$\root\Hitachi</FirstNameSpace>
<FirstQuery>select ObjectID, Status, StatusDesc from DriveEvent 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.Drive.3.12"]/ObjectID$</Value>
</ValueExpression>
</SimpleExpression>
</FirstExpression>
<SecondNameSpace>\\$Target/Property[Type="Hitachi.Storage.Drive.3.12"]/ConnectorID$\root\Hitachi</SecondNameSpace>
<SecondQuery>select ObjectID, Status, StatusDesc from DriveEvent 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.Drive.3.12"]/ObjectID$</Value>
</ValueExpression>
</SimpleExpression>
</SecondExpression>
</Configuration>
</UnitMonitor>