• Management Pack:  SQL Server 2008
  • MP Version:  7.0.0.0
  • Released:  11/13/2017
  • Publisher:  Microsoft

Database Mirror Status Monitor

  • ID:  Microsoft.SQLServer.2008.Mirroring.DatabaseStateMonitor
  • Description:  This monitor checks if database mirror is synchronized.
  • Target:  SQL 2008 Mirrored DB
  • Enabled:  Yes

Operational States

Name State Description
Synchronized Success  
Unsynchronized/Suspended Warning  
Disconnected Error  

Overridable Parameters

Parameter Name Default Value Description Override
Interval (seconds) 900 The recurring interval of time in seconds in which to run the workflow.
Synchronization Time   The synchronization time specified by using a 24-hour format. May be omitted.
Timeout (seconds) 300 Specifies the time the workflow is allowed to run before being closed and marked as failed.

Alert Details

Monitor State Message Priority Severity Auto Resolution
Unsynchronized/Suspended (Warning) Database Mirror is not Synchronized Medium Match Monitor Health Yes

Run As Profiles

Name
SQL Server Monitoring Account

Monitor Knowledgebase

Summary

This monitor checks the status of the database mirror as reported by Microsoft® SQL Server™. This is performed by running a query against the master database of the SQL Server instance and returning the state of the database mirror. If you receive an alert from this monitor, an action is required in order to bring the database mirroring back to an operational state.

Causes

Unhealthy state indicates that the SQL Server™ database mirror is currently unavailable. All states except the SYNCHRONIZED state will cause Unhealthy state. The possible states are detailed below:

SQL Database Mirror State

Description

MOM Health State

SYNCHRONIZED

When the mirror server becomes sufficiently caught up to the principal server, the mirroring state changes to SYNCHRONIZED. The database remains in this state as long as the principal server continues to send changes to the mirror server and the mirror server continues to apply changes to the mirror database.

If transaction safety is set to FULL, automatic failover and manual failover are both supported in the SYNCHRONIZED state, there is no data loss after a failover.

If transaction safety is off, some data loss is always possible, even in the SYNCHRONIZED state.

HEALTHY

SYNCHRONIZING

The contents of the mirror database are lagging behind the contents of the principal database. The principal server is sending log records to the mirror server, which is applying the changes to the mirror database to roll it forward.

At the start of a database mirroring session, the database is in the SYNCHRONIZING state. The principal server is serving the database, and the mirror is trying to catch up.

WARNING

SUSPENDED

The mirror copy of the database is not available. The principal database is running without sending any logs to the mirror server, a condition known as running exposed. This is the state after a failover.

A session can also become SUSPENDED as a result of redo errors or if the administrator pauses the session.

SUSPENDED is a persistent state that survives partner shutdowns and startups.

WARNING

PENDING_FAILOVER

This state is found only on the principal server after a failover has begun, but the server has not transitioned into the mirror role.

When the failover is initiated, the principal database goes into the PENDING_FAILOVER state, quickly terminates any user connections, and takes over the mirror role soon thereafter.

WARNING

DISCONNECTED

The partner has lost communication with the other partner.

CRITICAL

To find the exact state that was reported for the database, examine the context of the state change or alert.

Resolutions

To resolve the issue try the following:

  • Make sure mirroring configuration is complete and mirroring process is up and running.

  • Check physical link between the servers.

  • Configure firewall rules on both principal and mirror servers according to endpoints configuration.

External References
This monitor does not contain any external references.

See Also for SQL Server 2008 Management Pack


Downloads for SQL Server 2008 Management Pack

AZURE OPTIMIZATION ASSESSMENT GET STARTED
MIGRATION TO AZURE GET STARTED
SYSTEM CENTER MIGRATION TO AZURE GET STARTED
MIGRATION TO AZURE FOR SQL AND WINDOWS 2008 GET STARTED