Alert monitor for Lenovo System storage health (ServeRAID-MR or MegaRAID)
IBM.SystemX.LSI.MegaRAIDDevice.Health (UnitMonitor)
Alert monitor for Lenovo System storage health (ServeRAID-MR or MegaRAID)
Element properties:
Source Code:
<UnitMonitor ID="IBM.SystemX.LSI.MegaRAIDDevice.Health" Accessibility="Public" Enabled="true" Target="IBM.SystemX.LSI.MegaRAIDDevice" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Common!IBM.MonitorType.ManualReset3State" ConfirmDelivery="false">
<Category>Custom</Category>
<AlertSettings AlertMessage="IBM.SystemX.LSI.MegaRAIDDevice.Health.AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name="Description"]$</AlertParameter1>
<AlertParameter2>$Data/Context/Property[@Name="__CLASS"]$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
<OperationalState ID="Warning" MonitorTypeStateID="WarningEventRaised" HealthState="Warning"/>
<OperationalState ID="Error" MonitorTypeStateID="ErrorEventRaised" HealthState="Error"/>
</OperationalStates>
<Configuration>
<NameSpace>$Target/Property[Type="IBM.SystemX.LSIRAIDDevice"]/ibmNameSpace$</NameSpace>
<!--<Query>SELECT __Class, AlertingManagedElement, Description, EventID, PerceivedSeverity FROM $Target/Property[Type="IBM.SystemX.LSIRAIDDevice"]/IndicationClass$</Query>-->
<Query>SELECT __Class, AlertingManagedElement, Description, EventID, PerceivedSeverity,SystemName FROM CIM_AlertIndication</Query>
<CIMAlertFilterExpression>
<Or>
<Expression>
<And>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>Property[@Name="AlertingManagedElement"]</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>MegaRAID</Pattern>
</RegExExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>Property[@Name="SystemName"]</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>$Target/Property[Type="IBM.SystemX.HWComponent"]/InstanceID$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<Value Type="String">$Target/Property[Type="IBM.SystemX.LSIRAIDDevice"]/ibmNameSpace$</Value>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>MR_1_3_0</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<Value Type="String">$Target/Property[Type="IBM.SystemX.LSIRAIDDevice"]/ibmNameSpace$</Value>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>MR_1_2_0</Pattern>
</RegExExpression>
</Expression>
</Or>
</CIMAlertFilterExpression>
<PollInterval>10</PollInterval>
<WinEventFiltering>$Target/Host/Host/Property[Type="IBM.SystemX.Platform"]/ibmInternalWinEventFiltering$</WinEventFiltering>
<Licensed>$Target/Host/Host/Property[Type="IBM.SystemX.Platform"]/Licensed$</Licensed>
</Configuration>
</UnitMonitor>