收到事件时创建警报,以指明作业的状态已经更改为已停止。
创建警报以响应事件 3184。
System Center Orchestrator - Service Management Automation 中定义的工作流无法启动或完成作业,因为配置无效或者用户手动停止了该工作流。
要解决此问题,请导航至 Windows Azure 包门户并选择自动资源。选择 Runbook,并使用筛选器选项,以选择警报中指定的 Runbook 以及查看作业状态。选择后,查看作业摘要的历史记录以确定失败的原因。
可以在此规则上配置以下选项:
选项 | 定义 | 默认值 |
已启用 | 指定是否应该运行规则。 | 真 |
警报优先级 | 此规则生成的警报的优先级。 0 = 低 1 = 中 2 = 高 | 中 |
警报严重性 | 此规则生成的警报的严重性。 0 = 信息 1 = 警告 2 = 严重 | 严重 |
Target | Microsoft.SystemCenter.ServiceManagementAutomation.Server.RunbookWorker | ||
Category | Alert | ||
Enabled | False | ||
Event_ID | 3184 | ||
Event Source | Microsoft-ServiceManagementAutomation | ||
Alert Generate | True | ||
Alert Severity | Warning | ||
Alert Priority | Normal | ||
Remotable | True | ||
Alert Message |
| ||
Event Log | Microsoft-ServiceManagementAutomation/Operational |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.EventProvider | Default |
Alert | WriteAction | System.Health.GenerateAlert | Default |
<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>