Detecta el reinicio del motor de base de datos de SQL Server 2016. Nota: esta regla está deshabilitada de manera predeterminada. Use invalidaciones para habilitarla cuando sea necesario.
Esta regla detecta el reinicio de SQL Server.
Esta regla detecta que el servicio del motor de base de datos de SQL se encontraba en el estado "Detenido" durante un breve periodo de tiempo y que regresó al estado "En ejecución" después. La duración permitida de no disponibilidad se define por el parámetro "Tiempo no disponible" y se puede invalidar. De forma predeterminada, este valor es 900 segundos (15 minutos).
Nombre | Descripción | Valor predeterminado |
Habilitado | Habilita o deshabilita el flujo de trabajo. | No |
Prioridad | Define la prioridad de la alerta. | 1 |
Gravedad | Define la gravedad de la alerta. | 1 |
Tiempo no disponible (segundos) | El flujo de trabajo intentará capturar un evento de inicio de servicio durante este intervalo de tiempo, después de que el servicio de eventos se detenga. | 900 |
Target | Microsoft.SQLServer.2016.DBEngine | ||
Category | AvailabilityHealth | ||
Enabled | False | ||
Alert Generate | True | ||
Alert Severity | Warning | ||
Alert Priority | Normal | ||
Remotable | True | ||
Alert Message |
|
ID | Module Type | TypeId | RunAs |
---|---|---|---|
ServiceRestart | DataSource | Microsoft.SQLServer.2016.WindowsServiceRestartDetectionProvider | Default |
GenerateAlert | WriteAction | System.Health.GenerateAlert | Default |
<Rule ID="Microsoft.SQLServer.2016.DBEngineServiceRestart" Enabled="false" Target="SQL2016Core!Microsoft.SQLServer.2016.DBEngine" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>AvailabilityHealth</Category>
<DataSources>
<DataSource ID="ServiceRestart" TypeID="Microsoft.SQLServer.2016.WindowsServiceRestartDetectionProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>SQL Server ($Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.ServerRole"]/InstanceName$)</ServiceName>
<CorrelatorInterval>900</CorrelatorInterval>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2016.DBEngineServiceRestart.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.ServerRole"]/InstanceName$</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter2>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>