关于已停止作业状态的警报

Microsoft.SystemCenter.ServiceManagementAutomation.RuleAlert.JobStatusStopped (Rule)

收到事件时创建警报,以指明作业的状态已经更改为已停止。

Knowledge Base article:

摘要

创建警报以响应事件 3184。

原因

System Center Orchestrator - Service Management Automation 中定义的工作流无法启动或完成作业,因为配置无效或者用户手动停止了该工作流。

解决方法

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

配置

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

选项

定义

默认值

已启用

指定是否应该运行规则。

警报优先级

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

0 = 低

1 = 中

2 = 高

警报严重性

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

0 = 信息

1 = 警告

2 = 严重

严重

Element properties:

TargetMicrosoft.SystemCenter.ServiceManagementAutomation.Server.RunbookWorker
CategoryAlert
EnabledFalse
Event_ID3184
Event SourceMicrosoft-ServiceManagementAutomation
Alert GenerateTrue
Alert SeverityWarning
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.RuleAlert.JobStatusStopped" Target="Microsoft.SystemCenter.ServiceManagementAutomation.Server.RunbookWorker" 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>3184</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>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SystemCenter.ServiceManagementAutomation.RuleAlert.JobStatusStopped.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
</WriteAction>
</WriteActions>
</Rule>