Alert o wstrzymaniu zadania

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

Tworzy alert w momencie odebrania zdarzenia wskazującego wstrzymanie zadania.

Knowledge Base article:

Podsumowanie

Tworzy alert w odpowiedzi na zdarzenie 5022.

Przyczyny

Nie można rozpocząć lub ukończyć procesu roboczego zdefiniowanego w programie System Center 2012 R2 Orchestrator - Service Management Automation z powodu nieprawidłowej konfiguracji lub ręcznego przerwania przez użytkownika.

Rozwiązanie

Aby rozwiązać ten problem, przejdź do portalu Windows Azure Pack i wybierz zasób automatyzacji. Wybierz elementy Runbook i użyj filtra, aby wybrać element Runbook podany w alercie i sprawdzić stan zadania. Po wybraniu przejrzyj historię podsumowania zadania, aby określić przyczynę niepowodzenia.

Konfiguracja

W odniesieniu do tej reguły można skonfigurować następujące opcje:

Opcja

Definicja

Domyślne

Włączone

Określa, czy zasada powinna zostać uruchomiona.

Prawda

Priorytet alertu

Priorytet alertu wygenerowanego przez tę zasadę.

0 = niski

1 = średni

2 = wysoki

Średni

Ważność alertu

Ważność alertu wygenerowanego przez tę zasadę.

0 = informacja

1 = ostrzeżenie

2 = krytyczny

Krytyczny

Element properties:

TargetMicrosoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Worker
CategoryAlert
EnabledFalse
Event_ID50022
Event SourceMicrosoft-ServiceManagementAutomation
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
Zadanie zostało wstrzymane
{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>