可用性複本連線 (彙總)

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

此監視器會彙總所有可用性複本的連線狀態,並檢查是否有任何可用性複本為「已中斷連線」。若可用性複本的狀態為「已中斷連線」,表示監視器狀況不良,反之則表示狀況良好。此監視器是彙總監視器。

Knowledge Base article:

摘要

此監視器會彙總所有可用性複本的連線狀態,並檢查有無任何可用性複本為「已中斷連線」。如有任何可用性複本為「已中斷連線」,監視器就會呈現狀況不良的狀態,否則監視器會呈現狀況良好的狀態。

原因

在此可用性群組中,至少有一個次要複本未連線到主要複本。連線狀態為「已中斷連線」。

解決方式

使用可用性複本監視器狀態,尋找狀態為「已中斷連線」的可用性複本,並解決可用性複本的問題。

可覆寫的參數

名稱

描述

預設值

已啟用

啟用或停用該工作流程。

產生警示

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

Element properties:

TargetMicrosoft.SQLServer.Core.AvailabilityGroup
Parent MonitorSystem.Health.AvailabilityState
AlgorithmWorstOf
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
RemotableTrue
AccessibilityPublic
Alert MessageMicrosoft.SQLServer.Core.Rollup.AvailabilityGroup.AllAvailabilityReplicasAreConnected.AlertMessage

Source Code:

<AggregateMonitor ID="Microsoft.SQLServer.Core.Rollup.AvailabilityGroup.AllAvailabilityReplicasAreConnected" 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.AllAvailabilityReplicasAreConnected.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</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>