MailIn CloseAlerts.Rule

SCOM.Addons.MailIn.CloseAlerts.Rule (Rule)

Closes Generic Mail Alerts older than confiugured retention.

Element properties:

TargetSCOM.Addons.MailIn.MonitoringServer
CategoryCustom
EnabledTrue
Alert GenerateTrue
Alert SeverityInformation
Alert PriorityNormal
RemotableTrue
Alert Message
MailIn Close Alerts Rule

Title:
{0}

Generic Alert Info:
{1}

Clean EmlArchive Alert Info
{2}

ClosedAlerts Alert Info:
{3}

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource SCOM.Addons.MailIn.CloseAlerts.Rule.Datasource Default
CD ConditionDetection System.ExpressionFilter Default
WA WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="SCOM.Addons.MailIn.CloseAlerts.Rule" Enabled="true" Target="SCOM.Addons.MailIn.MonitoringServer" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Custom</Category>
<DataSources>
<DataSource ID="DS" TypeID="SCOM.Addons.MailIn.CloseAlerts.Rule.Datasource">
<IntervalSeconds>7200</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>120</TimeoutSeconds>
<AlertRetentionHours>24</AlertRetentionHours>
</DataSource>
</DataSources>
<ConditionDetection ID="CD" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Result']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">BAD</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WA" TypeID="Health!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>0</Severity>
<AlertMessageId>$MPElement[Name="SCOM.Addons.MailIn.CloseAlerts.Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/Property[@Name='Title']$</AlertParameter1>
<AlertParameter2>$Data/Property[@Name='GenericAlertInfo']$</AlertParameter2>
<AlertParameter3>$Data/Property[@Name='CleanEmlArchiveAlertInfo']$</AlertParameter3>
<AlertParameter4>$Data/Property[@Name='ClosedAlertsAlertInfo']$</AlertParameter4>
</AlertParameters>
<Suppression/>
</WriteAction>
</WriteActions>
</Rule>