Log shipping monitor (secondary)


Job details

Name: Log shipping monitor (secondary)
Platform: Sqlserver
Category: Cluster and Replication
Description: Monitor the secondary database in each log shipping configuration.
Long description: Monitor the secondary database in each log shipping configuration.
Version: 1.2
Default schedule: 7,17,27,37,47,57 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘sqlserver’]/instance[maj_version > ‘2005′ & hasengine=‘YES’ & engine_edition = ‘Microsoft SQL Server’ & eng_inst_priv = 0]

Parameters

Name Default value Description
ignore databases model List over the databases (separated by comma) which will be ignored from being checked.

Job Summary

SELECT secondary_server, secondary_database, restore_threshold, last_restored_date FROM msdb..log_shipping_monitor_secondary;

Implementation Details

Dependencies

Output Description

Reporting Configuration

Field Description
Server The secondary server where the log shipping destination resides.
Database The name of the secondary database.
Last Restore Timestamp of the last successful log restore operation.
Copied File Info Information about the last log file copied to the secondary server.
Warning Threshold (minutes) Indicates the critical time frame in minutes to alert if exceeded without a restore.

The monitor uses a default schedule that triggers checks every 10 minutes, ensuring frequent and regular validations of log shipping status across all monitored SQL Server instances.