在收到指出作業已暫停的事件時建立警示。
建立警示以回應事件 5022。
System Center 2012 R2 Orchestrator - Service Management Automation 中定義的工作流程無法啟動或完成作業,因為設定無效或使用者已手動停止作業。
若要疑難排解此問題,請瀏覽至 Windows Azure 套件入口網站並選取 Automation 資源。選取 [Runbook],接著使用篩選選項來選取 [警示] 中指定的 Runbook 並檢視作業狀態。選取完成後,請檢視 [作業摘要] 的 [歷程],以判斷失敗的原因。
您可以在此規則上設定下列選項:
選項 | 定義 | 預設值 |
已啟用 | 指定規則是否應執行。 | True |
警示優先順序 | 此規則所產生之警示的優先順序。 0 = 低 1 = 中 2 = 高 | 中 |
警示嚴重性 | 此規則所產生之警示的嚴重性。 0 = 資訊 1 = 警告 2 = 重大 | 重大 |
Target | Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Worker | ||
Category | Alert | ||
Enabled | False | ||
Event_ID | 50022 | ||
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.2012R2.RuleAlert.JobSuspended" 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>50022</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.2012R2.RuleAlert.JobSuspended.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
</WriteAction>
</WriteActions>
</Rule>