可用性群組為上線 (彙總)

Microsoft.SQLServer.Core.Rollup.AvailabilityGroup.AvailabilityGroupOnline (AggregateMonitor)

此監視器會查看可用性群組為連線或離線狀態。若可用性群組的叢集資源為離線,或可用性群組沒有主要複本,表示監視器狀況不良並會引發警示。若可用性群組的叢集資源為線上,且可用性群組有主要複本,則表示監視器狀況良好。此監視器是彙總監視器。

Knowledge Base article:

摘要

此監視器會查看可用性群組為線上或離線狀態。當可用性群組的叢集資源為離線,或可用性群組沒有主要複本時,監視器會是狀況不良的狀態並引發警示。當可用性群組的叢集資源為線上,且可用性群組有主要複本時,監視器便會是狀況良好的狀態。

原因

可用性群組已離線,而且無法使用。此問題可能是裝載主要複本的伺服器執行個體失敗,或 WSFC 可用性群組資源離線所致。

解決方式

可覆寫的參數

名稱

描述

預設值

警示優先順序

定義警示優先順序。

標準

警示嚴重性

定義警示嚴重性。

錯誤

已啟用

啟用或停用該工作流程。

產生警示

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

Element properties:

TargetMicrosoft.SQLServer.Core.AvailabilityGroup
Parent MonitorSystem.Health.AvailabilityState
AlgorithmWorstOf
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
RemotableTrue
AccessibilityPublic
Alert Message
MSSQL: 可用性群組已離線
可用性群組 {0} 已離線且無法使用

Source Code:

<AggregateMonitor ID="Microsoft.SQLServer.Core.Rollup.AvailabilityGroup.AvailabilityGroupOnline" Accessibility="Public" Enabled="true" Target="Microsoft.SQLServer.Core.AvailabilityGroup" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.Core.Rollup.AvailabilityGroup.AvailabilityGroupOnline.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="System!System.Entity"]/DisplayName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="Microsoft.SQLServer.Core.AvailabilityGroup"]/ClusterName$</AlertParameter2>
<AlertParameter3>$Target/Property[Type="Microsoft.SQLServer.Core.AvailabilityGroup"]/PrimaryReplicaServerName$</AlertParameter3>
</AlertParameters>
</AlertSettings>
<Algorithm>WorstOf</Algorithm>
</AggregateMonitor>