Compatibilité de Service Pack

Microsoft.SQLServer.2008.DBEngine.Configuration.ServicePackLevel (UnitMonitor)

Analyse le niveau du Service Pack du moteur de la base de données d'après le paramètre conforme

Knowledge Base article:

Résumé

Cette analyse vérifie la version du Service Pack pour cette instance de SQL. Une alerte d'avertissement ou d'erreur sera déclenchée si la version ne correspond pas au paramètre requis.

Cette analyse immédiatement utilisable permet d'envoyer une alerte lorsque le niveau du Service Pack n'est pas 1. Il est possible de changer ce paramètre en le remplaçant, si nécessaire.

Causes

Un fonctionnement anormal est dû à un niveau de Service Pack qui n'est pas au niveau requis (1 est le niveau par défaut).

Solutions

Ce problème peut être résolu en appliquant le Service Pack le plus récent à SQL Server

Sinon, si le paramètre actuel est valide dans votre environnement :

Element properties:

TargetMicrosoft.SQLServer.2008.DBEngine
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2008.ServicePackVersion
RemotableTrue
AccessibilityPublic
Alert Message
Compatibilité de Service Pack
Le niveau du Service Pack de l'instance SQL {1} de l'ordinateur {0} n'est pas à jour
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2008.DBEngine.Configuration.ServicePackLevel" Accessibility="Public" Enabled="true" Target="SQL2008Core!Microsoft.SQLServer.2008.DBEngine" ParentMonitorID="SystemHealth!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2008.ServicePackVersion" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2008.DBEngine.Configuration.ServicePackLevel.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="SQL!Microsoft.SQLServer.ServerRole"]/InstanceName$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="SPCompliant" MonitorTypeStateID="ValueGood" HealthState="Success"/>
<OperationalState ID="SPNotCompliant" MonitorTypeStateID="ValueBad" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<SQLServiceName>$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$</SQLServiceName>
<IntervalSeconds>43200</IntervalSeconds>
<GoodValue>1</GoodValue>
<GoodValueR2>0</GoodValueR2>
</Configuration>
</UnitMonitor>