作業已暫停時發出警示

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

在收到指出作業已暫停的事件時建立警示。

Knowledge Base article:

摘要

建立警示以回應事件 5022。

原因

System Center 2012 R2 Orchestrator - Service Management Automation 中定義的工作流程無法啟動或完成作業,因為設定無效或使用者已手動停止作業。

解決方式

若要疑難排解此問題,請瀏覽至 Windows Azure 套件入口網站並選取 Automation 資源。選取 [Runbook],接著使用篩選選項來選取 [警示] 中指定的 Runbook 並檢視作業狀態。選取完成後,請檢視 [作業摘要] 的 [歷程],以判斷失敗的原因。

設定

您可以在此規則上設定下列選項:

選項

定義

預設值

已啟用

指定規則是否應執行。

True

警示優先順序

此規則所產生之警示的優先順序。

0 = 低

1 = 中

2 = 高

警示嚴重性

此規則所產生之警示的嚴重性。

0 = 資訊

1 = 警告

2 = 重大

重大

Element properties:

TargetMicrosoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Worker
CategoryAlert
EnabledFalse
Event_ID50022
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.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>