SVC Configuration UnitMonitor

IBM.Storage.SVC.Configration.UnitMonitor (UnitMonitor)

Element properties:

TargetIBM.Storage.SVC.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
SVC device can not be reached
SVC device({0}) can not be reached.
The cause must be investigated to determine the required fix.
RunAsDefault

Source Code:

<UnitMonitor ID="IBM.Storage.SVC.Configration.UnitMonitor" Accessibility="Internal" Enabled="true" Target="IBM.Storage.SVC.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.SVC.Configration.UnitMonitor_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="IBM.Storage.SVC.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.SVC.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>