SVC Alert Scan Rule

IBM.Storage.SVC.AlertRule (Rule)

Element properties:

TargetIBM.Storage.SVC.Cluster
CategoryCustom
EnabledTrue
Alert GenerateTrue
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
IBM.Storage.SVC.AlertProvider DataSource IBM.Storage.SVC.AlertDataSource Default
System.Health.GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="IBM.Storage.SVC.AlertRule" Enabled="true" Target="IBM.Storage.SVC.Cluster" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Custom</Category>
<DataSources>
<DataSource ID="IBM.Storage.SVC.AlertProvider" TypeID="IBM.Storage.SVC.AlertDataSource">
<IntervalSeconds>600</IntervalSeconds>
<TimeoutSeconds>1800</TimeoutSeconds>
<InstancePropertyValue>$Target/Property[Type='IBM.Storage.SVC.Cluster']/id$</InstancePropertyValue>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="System.Health.GenerateAlert" TypeID="Health!System.Health.GenerateAlert">
<Priority>$Data/Property[@Name='scom_priority']$</Priority>
<Severity>$Data/Property[@Name='scom_severity']$</Severity>
<AlertMessageId>$MPElement[Name="AlertMessageID024a1f1f21614fb0a5d1fddc467615ef"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/Property[@Name='event_id']$</AlertParameter1>
<AlertParameter2>$Data/Property[@Name='ClusterName']$</AlertParameter2>
<AlertParameter3>$Data/Property[@Name='ClusterID']$</AlertParameter3>
<AlertParameter4>$Data/Property[@Name='object_type']$</AlertParameter4>
<AlertParameter5>$Data/Property[@Name='object_id']$</AlertParameter5>
<AlertParameter6>$Data/Property[@Name='object_name']$</AlertParameter6>
<AlertParameter7>$Data/Property[@Name='error_code']$</AlertParameter7>
<AlertParameter8>$Data/Property[@Name='sequence_number']$</AlertParameter8>
<AlertParameter9>$Data/Property[@Name='timestamp']$</AlertParameter9>
<AlertParameter10>$Data/Property[@Name='description']$</AlertParameter10>
</AlertParameters>
<Custom1>$Data/Property[@Name='event_id']$</Custom1>
<Custom2>$Data/Property[@Name='ClusterName']$</Custom2>
<Custom3>$Data/Property[@Name='ClusterID']$</Custom3>
<Custom4>$Data/Property[@Name='object_type']$</Custom4>
<Custom5>$Data/Property[@Name='object_id']$</Custom5>
<Custom6>$Data/Property[@Name='object_name']$</Custom6>
<Custom7>$Data/Property[@Name='error_code']$</Custom7>
<Custom8>$Data/Property[@Name='sequence_number']$</Custom8>
<Custom9>$Data/Property[@Name='timestamp']$</Custom9>
<Custom10>$Data/Property[@Name='description']$</Custom10>
</WriteAction>
</WriteActions>
</Rule>