Alert for Lenovo Server Error Events

Lenovo.ThinkServer.ErrorAlert.Rule (Rule)

Element properties:

TargetLenovo.ThinkServer.BMC
CategoryAlert
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
{2} - {3}
The alert was generated because event "{0}" received from server {1}

Member Modules:

ID Module Type TypeId RunAs 
DataSource DataSource Microsoft.SystemCenter.TargetEntitySdkEventProvider Default
ConditionDetection ConditionDetection System.ExpressionFilter Default
WriteAction WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Lenovo.ThinkServer.ErrorAlert.Rule" Enabled="true" Target="Lenovo.ThinkServer.BMC" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource TypeID="SC!Microsoft.SystemCenter.TargetEntitySdkEventProvider" ID="DataSource"/>
</DataSources>
<ConditionDetection TypeID="System!System.ExpressionFilter" ID="ConditionDetection">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventLevel</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<WriteActions>
<WriteAction TypeID="Health!System.Health.GenerateAlert" ID="WriteAction">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertOwner/>
<AlertMessageId>$MPElement[Name="Lenovo.ThinkServer.Alert.AlertMessageID"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
<AlertParameter2>$Data/EventSourceName$</AlertParameter2>
<AlertParameter3>$Data/EventData/Data/MessageID[1]$</AlertParameter3>
<AlertParameter4>$Data/EventData/Data/MessageName[1]$</AlertParameter4>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/EventNumber$</SuppressionValue>
<SuppressionValue>$Data/EventLevel$</SuppressionValue>
<SuppressionValue>$Data/EventSourceName$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>