Cria um alerta quando é recebido um evento que indica que uma tarefa foi suspensa por uma exceção.
Cria um alerta em resposta ao evento 3186.
Um fluxo de trabalho definido no System Center 2012 R2 Orchestrator - Service Management Automation foi parado devido a uma exceção.
Para resolver o problema, navegue para o portal do Windows Azure Pack e selecione o recurso Automatização. Selecione Runbooks e utilize a opção do filtro para selecionar o runbook especificado no Alerta e ver o estado das Tarefas. Depois de selecionar, veja o Histórico do Resumo da Tarefa para determinar a causa da falha.
As seguintes opções podem ser configuradas nesta regra:
Opção | Definição | Predefinição |
Ativado | Especifica se a regra deverá ser executada. | Verdadeiro |
Prioridade dos Alertas | Prioridade do alerta gerado por esta regra. 0 = Baixo 1 = Médio 2 = Alto | Média |
Gravidade do Alerta | Gravidade do alerta gerado por esta regra. 0 = Informação 1 = Aviso 2 = Crítico | Crítica |
Target | Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Worker | ||
Category | Alert | ||
Enabled | False | ||
Event_ID | 3186 | ||
Event Source | Microsoft-ServiceManagementAutomation | ||
Alert Generate | True | ||
Alert Severity | Error | ||
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.JobStatusSuspendedByException" 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>3186</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>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.RuleAlert.JobStatusSuspendedByException.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
</WriteAction>
</WriteActions>
</Rule>