ジョブの状態が停止に変わったときにアラートを生成する

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

ジョブの状態が停止に変わったことを示すイベントを受け取ったときにアラートを生成します。

Knowledge Base article:

概要

イベント 3184 に対してアラートを生成します。

原因

System Center 2012 R2 Orchestrator - Service Management Automation に定義されているワークフローが、構成が無効なため、またはユーザーが手動で停止したため、ジョブを開始または完了できませんでした。

解決方法

この問題を解決するには、Windows Azure パック ポータルを開き、Automation のリソースを選択します。次に Runbook を選択し、フィルター オプションを使用して、アラートに指定された Runbook を選択し、ジョブの状態を確認します。選択したら、ジョブの概要の履歴で、エラーの原因を特定します。

構成

このルールでは次のオプションを構成できます:

オプション

定義

既定

有効

ルールを実行するかどうかを指定します。

アラートの優先順位

このルールで生成されるアラートの優先順位。

0 = 低

1 = 中

2 = 高

アラートの重要度

このルールで生成されるアラートの重大度。

0 = 情報

1 = 警告

2 = 重大

重大

Element properties:

TargetMicrosoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Worker
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.2012R2.RuleAlert.JobStatusStopped" 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>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.2012R2.RuleAlert.JobStatusStopped.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
</WriteAction>
</WriteActions>
</Rule>