Motore di database di SQL Server 2008 riavviato

Microsoft.SQLServer.2008.DBEngineServiceRestart (Rule)

Rileva il riavvio del motore di database di SQL Server 2008.

Knowledge Base article:

Riepilogo

Questa regola rileva il riavvio di SQL Server.

Configurazione

Questa regola rileva che il servizio Motore di database SQL si trovava nello stato "Arrestato" durante un breve periodo di tempo ed è tornato allo stato "In esecuzione" al termine di tale periodo. Questo periodo di tempo viene definito nella proprietà "Tempo di indisponibilità" e può essere sostituito. Per impostazione predefinita, questo valore è di 900 secondi (15 minuti).

Element properties:

TargetMicrosoft.SQLServer.2008.DBEngine
CategoryAvailabilityHealth
EnabledFalse
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
Motore di database di SQL Server 2008 riavviato
Il motore di database di SQL Server 2008 per l'istanza di SQL Server "{0}" è stato riavviato sul computer "{1}".

Member Modules:

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

Source Code:

<Rule ID="Microsoft.SQLServer.2008.DBEngineServiceRestart" Enabled="false" Target="SQL2008Core!Microsoft.SQLServer.2008.DBEngine" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>AvailabilityHealth</Category>
<DataSources>
<DataSource ID="ServiceRestart" TypeID="Microsoft.SQLServer.2008.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.2008.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>