This monitor checks the connection state between availability replicas. The monitor is unhealthy when the availability replica’s connection state is DISCONNECTED. The monitor is healthy otherwise.
This monitor checks the connection state between availability replicas. The monitor is unhealthy when the availability replica’s connection state is DISCONNECTED. The monitor is healthy otherwise.
This secondary replica is not connected to the primary replica. The connected state is DISCONNECTED.
Connection port might be conflict with other application.
Encryption type or algorithm is mismatching.
Connection endpoint is deleted or not started.
Transport is disconnected.
Check the database mirroring endpoint configuration of primary replica and secondary replica instances and updated the mismatching configuration.
Check if the port is conflicting and change the port number.
Name | Description | Default Value |
Enabled |
| Yes |
Generates Alerts |
| No |
Interval (seconds) | The recurring interval of time in seconds in which to run the workflow. | 900 |
Timeout (seconds) | Specifies the time the workflow is allowed to run before being closed and marked as failed. | 300 |
Target | Microsoft.SQLServer.2014.AlwaysOn.AvailabilityReplica |
Parent Monitor | System.Health.AvailabilityState |
Category | AvailabilityHealth |
Enabled | True |
Alert Generate | False |
Alert Auto Resolve | False |
Monitor Type | Microsoft.SQLServer.2014.AlwaysOn.SystemPolicyScriptMonitorType |
Remotable | True |
Accessibility | Public |
RunAs | Microsoft.SQLServer.2014.AlwaysOn.MonitoringAccount |
<UnitMonitor ID="Microsoft.SQLServer.2014.AlwaysOn.AvailabilityReplicaIsConnected" RunAs="Microsoft.SQLServer.2014.AlwaysOn.MonitoringAccount" TypeID="Microsoft.SQLServer.2014.AlwaysOn.SystemPolicyScriptMonitorType" Accessibility="Public" Enabled="true" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Target="AlwaysOnDisc!Microsoft.SQLServer.2014.AlwaysOn.AvailabilityReplica" Priority="Normal">
<Category>AvailabilityHealth</Category>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="HealthState" HealthState="Success"/>
<OperationalState ID="Critical" MonitorTypeStateID="ErrorState" HealthState="Error"/>
</OperationalStates>
<Configuration>
<Interval>900</Interval>
<TimeoutSeconds>300</TimeoutSeconds>
<PolicyName>$Target/Property[Type="AlwaysOnDisc!Microsoft.SQLServer.2014.AlwaysOn.AvailabilityReplica"]/AvailabilityGroupName$-$Target/Property[Type="System!System.Entity"]/DisplayName$-AlwaysOnArConnectionHealthPolicy</PolicyName>
<InstanceName>$Target/Property[Type="System!System.Entity"]/DisplayName$</InstanceName>
</Configuration>
</UnitMonitor>