Crea una alerta cuando se recibe un evento que indica que un trabajo se ha suspendido.
Crea una alerta en respuesta al evento 5022.
Un flujo de trabajo definido en System Center 2012 R2 Orchestrator - Service Management Automation no pudo iniciar o completar un trabajo debido a una configuración no válida o detenida manualmente por un usuario.
Para solucionar el problema, navegue al portal de Windows Azure Pack y seleccione el recurso Automation. Seleccione Runbooks y utilice la opción de filtro para seleccionar el Runbook especificado en la alerta. A continuación, consulte el estado de los trabajos. Tras seleccionarlo, consulte el historial del resumen del trabajo para determinar a qué se debe el error.
Se pueden configurar las siguientes opciones en esta regla:
Opción | Definición | Predeterminada |
Habilitado | Especifica si se debe ejecutar la regla. | Verdadero |
Prioridad de la alerta | Prioridad de la alerta generada por esta regla. 0 = Baja 1 = Media 2 = Alta | Intermedia |
Gravedad de la alerta | Gravedad de la alerta generada por esta regla. 0 = Información 1 = Advertencia 2 = Crítica | Crítica |
Target | Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Worker | ||
Category | Alert | ||
Enabled | False | ||
Event_ID | 50022 | ||
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.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>