SnapMgrSPJobFailureRule

Bostwick.SnapManager.SnapMgrSPJobFailureRule (Rule)

Snap Manager Job Failed

Element properties:

TargetBostwick.SnapManager.SnapMgrSPServerClass
CategoryAlert
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
Snap Manager Job Failed
Job failure.
Event LogSMSP

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
Alert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Bostwick.SnapManager.SnapMgrSPJobFailureRule" Target="Bostwick.SnapManager.SnapMgrSPServerClass" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>SMSP</LogName>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">2405</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="Alert" TypeID="Health!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Bostwick.SnapManager.SnapMgrSPJobFailureRule.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>