Service Pack 相容性

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

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

Knowledge Base article:

摘要

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

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

原因

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

解決方式

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

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

可覆寫的參數

名稱

描述

預設值

警示優先程式

定義警示優先順序。

一般

警示嚴重性

定義警示嚴重性。

MatchMonitorHealth

已啟用

啟用或停用該工作流程。

產生警示

定義工作流程是否會產生警示。

間隔 (秒)

執行工作流程的週期性時間間隔 (秒)。

43200

SQL Server 2016 的基本 Service Pack 層級

每個公司原則的基本 Service Pack 層級。其預設為 0 (整數)。

0

Element properties:

TargetMicrosoft.SQLServer.2016.DBEngine
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2016.ServicePackVersion
RemotableTrue
AccessibilityPublic
Alert Message
MSSQL 2016: Service Pack 相容性
電腦 {0} 上 SQL 執行個體 {1} 的 Service Pack 層級不是最新版本
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2016.DBEngine.Configuration.ServicePackLevel" Accessibility="Public" Enabled="true" Target="SQL2016Core!Microsoft.SQLServer.2016.DBEngine" ParentMonitorID="SystemHealth!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2016.ServicePackVersion" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2016.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="SQL2016Core!Microsoft.SQLServer.2016.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="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/ServiceName$</SQLServiceName>
<IntervalSeconds>43200</IntervalSeconds>
<GoodValue>1</GoodValue>
</Configuration>
</UnitMonitor>