Service Pack 相容性

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

監視資料庫引擎的 Service Pack 層級是否符合相容設定

Knowledge Base article:

摘要

此監視器會檢查此 SQL 執行個體的 Service Pack 版本。如果它不符合必要的設定,則將出現警告或錯誤警示。

根據預設,此監視器是設定成要在 Service Pack 層級不是 1 時發出警示。您可在必要時使用覆寫來變更它。

原因

由於 Service Pack 等級不是所需等級 (預設為 1),而導致狀況不良狀態

解決方式

可套用最新的 Service Pack 至 SQL Server 以解決此問題

或者,如果目前設定在您的環境中有效:

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
Service Pack 相容性
電腦 {0} 上 SQL 執行個體 {1} 的 Service Pack 層級不是最新版本
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>