Storwize.V7000U Configuration UnitMonitor

IBM.Storage.Storwize.V7000U.Configuration.UnitMonitor (UnitMonitor)

Element properties:

TargetIBM.Storage.Storwize.V7000U.Configuration
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.TimedScript.ThreeStateMonitorType
RemotableTrue
AccessibilityInternal
Alert Message
Storwize.V7000U device can bot be reached
Storwize V7000U device({0}) can not be reached. The cause must be investigated to determine the required fix.
RunAsDefault

Source Code:

<UnitMonitor ID="IBM.Storage.Storwize.V7000U.Configuration.UnitMonitor" Accessibility="Internal" Enabled="true" Target="IBM.Storage.Storwize.V7000U.Configuration" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.TimedScript.ThreeStateMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="IBM.Storage.Storwize.V7000U.Configuration.UnitMonitor_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="IBM.Storage.Storwize.V7000U.Configuration"]/HostURL$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="Warning" MonitorTypeStateID="Warning" HealthState="Warning"/>
<OperationalState ID="Error" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>60</IntervalSeconds>
<SyncTime/>
<ScriptName>MyScript.vbs</ScriptName>
<Arguments>$Target/Property[Type="IBM.Storage.Storwize.V7000U.Configuration"]/scom_status$</Arguments>
<ScriptBody><Script>
' Enter a script that outputs a property bag
' Example VBScript:
'
Dim oAPI, oBag, oStatus
Set oAPI = CreateObject("MOM.ScriptAPI")
args = WScript.Arguments.Count
if args &lt; 1 then
oStatus = "available"
else
oStatus = WScript.Arguments(0)
end if
Set oBag = oAPI.CreatePropertyBag()
Call oBag.AddValue("Status",oStatus)
Call oAPI.Return(oBag)
</Script></ScriptBody>
<TimeoutSeconds>60</TimeoutSeconds>
<ErrorExpression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Status']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">unavailable</Value>
</ValueExpression>
</SimpleExpression>
</ErrorExpression>
<WarningExpression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Status']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">warning</Value>
</ValueExpression>
</SimpleExpression>
</WarningExpression>
<SuccessExpression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Status']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">available</Value>
</ValueExpression>
</SimpleExpression>
</SuccessExpression>
</Configuration>
</UnitMonitor>