关于因异常而暂停的作业状态的警报

Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.RuleAlert.JobStatusSuspendedByException (Rule)

收到事件时创建警报,以指明作业已因异常而暂停。

Knowledge Base article:

摘要

创建警报以响应事件 3186。

原因

System Center 2012 R2 Orchestrator - Service Management Automation 中定义的工作流因异常而停止。

解决方法

要解决此问题,请导航至 Windows Azure 包门户并选择自动资源。选择 Runbook,并使用筛选器选项,以选择警报中指定的 Runbook 以及查看作业状态。选择后,查看作业摘要的历史记录以确定失败的原因。

配置

可以在此规则上配置以下选项:

选项

定义

默认值

已启用

指定是否应该运行规则。

警报优先级

此规则生成的警报的优先级。

0 = 低

1 = 中

2 = 高

警报严重性

此规则生成的警报的严重性。

0 = 信息

1 = 警告

2 = 严重

严重

Element properties:

TargetMicrosoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Worker
CategoryAlert
EnabledFalse
Event_ID3186
Event SourceMicrosoft-ServiceManagementAutomation
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
因异常而暂停的作业状态。
{0}
Event LogMicrosoft-ServiceManagementAutomation/Operational

Member Modules:

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

Source Code:

<Rule ID="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.RuleAlert.JobStatusSuspendedByException" Target="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Worker" Enabled="false" 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"]/PrincipalName$</ComputerName>
<LogName>Microsoft-ServiceManagementAutomation/Operational</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>3186</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-ServiceManagementAutomation</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="Alert" TypeID="Health!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.RuleAlert.JobStatusSuspendedByException.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
</WriteAction>
</WriteActions>
</Rule>