Vytvoří výstrahu, pokud je přijata událost indikující, že se stav úlohy změnil na Zastaveno.
Vytvoří výstrahu v reakci na událost 3184.
Pracovní postup definovaný ve službě System Center 2012 R2 Orchestrator - Service Management Automation nemohl spustit nebo dokončit příslušnou úlohu, a to buď z důvodu neplatné konfigurace nebo kvůli ručnímu zastavení ze strany uživatele.
Chcete-li vyřešit tyto potíže, otevřete portál balíčku Windows Azure Pack a vyberte zdroj automatizace. Vyberte možnost Sady Runbook, pomocí filtru vyberte sadu Runbook definovanou ve výstraze a zobrazte stav úloh. Jakmile sadu vyberete, zobrazte souhrn historie úlohy a určete příčinu selhání.
Pro toto pravidlo lze nakonfigurovat následující možnosti:
Možnost | Definice | Výchozí |
Povoleno | Specifikuje, zda je nutné příslušné pravidlo spustit. | Pravda |
Priorita výstrahy | Priorita výstrahy vygenerované tímto pravidlem. 0 = nízká 1 = střední 2 = vysoká | Střední |
Závažnost výstrahy | Závažnost výstrahy vygenerované tímto pravidlem. 0 = informační 1 = upozorňující 2 = kritická | Kritická |
Target | Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Worker | ||
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.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>