Cria uma alerta ao receber um evento indicando que um runbook foi salvo com uma definição inválida.
Cria um alerta em resposta ao evento 50006.
Um fluxo de trabalho definido no System Center 2016 Orchestrator - Service Management Automation não foi capaz de iniciar ou concluir um trabalho por conta de uma configuração inválida ou foi parado manualmente por um usuário.
Para encontrar a solução do problema, navegue até o portal do Windows Azure Pack e selecione o recurso Automação. Selecione Runbooks e use a opção de filtragem para selecionar o runbook especificado no Alerta e exibir o status do Trabalho. Uma vez selecionado, exiba o Histórico do Resumo do Trabalho para determinar a causa da falha.
As seguintes opções podem ser configuradas com esta regra:
Opção | Definição | Padrão |
Habilitado | Especifica se a regra deve ser executada. | Verdadeiro |
Prioridade do Alerta | Prioridade do alerta gerado por esta regra. 0 = Baixa 1 = Média 2 = Alta | Média |
Severidade do Alerta | Severidade do alerta gerado por esta regra. 0 = Informação 1 = Aviso 2 = Crítica | Crítica |
Target | Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Web | ||
Category | Alert | ||
Enabled | False | ||
Event_ID | 50006 | ||
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.RunbookDefinitionInvalid" Target="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Web" 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>50006</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.RunbookDefinitionInvalid.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
</WriteAction>
</WriteActions>
</Rule>