El motor de base de datos de SQL Server 2012 se ha reiniciado

Microsoft.SQLServer.2012.DBEngineServiceRestart (Rule)

Detecta el reinicio del motor de base de datos de SQL Server 2012.

Knowledge Base article:

Resumen

Esta regla detecta el reinicio de SQL Server.

Configuración

Esta regla detecta que el servicio del motor de base de datos de SQL se encontraba en el estado "Detenido" durante un breve período de tiempo y ha vuelto al estado "En ejecución" hasta que se ha agotado el tiempo. Este período se define en la propiedad "Tiempo no disponible" y se puede invalidar. Este valor predeterminado es de 900 segundos (15 minutos).

Parámetros invalidables

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)

Durante este intervalo, intente detectar el inicio del servicio de eventos después de la detención del servicio de eventos.

900

Element properties:

TargetMicrosoft.SQLServer.2012.DBEngine
CategoryAvailabilityHealth
EnabledFalse
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
El motor de base de datos de SQL Server 2012 se ha reiniciado
El motor de base de datos de SQL Server 2012 para la instancia de SQL Server "{0}" se ha reiniciado en el equipo "{1}".

Member Modules:

ID Module Type TypeId RunAs 
ServiceRestart DataSource Microsoft.SQLServer.2012.WindowsServiceRestartDetectionProvider Microsoft.SQLServer.SQLDefaultAccount
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.SQLServer.2012.DBEngineServiceRestart" Enabled="false" Target="SQL2012Core!Microsoft.SQLServer.2012.DBEngine" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>AvailabilityHealth</Category>
<DataSources>
<DataSource ID="ServiceRestart" TypeID="Microsoft.SQLServer.2012.WindowsServiceRestartDetectionProvider" RunAs="SQL!Microsoft.SQLServer.SQLDefaultAccount">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>SQL Server ($Target/Property[Type="SQL!Microsoft.SQLServer.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.2012.DBEngineServiceRestart.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="SQL!Microsoft.SQLServer.ServerRole"]/InstanceName$</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter2>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>