AlwaysOn database backup alert


Job details

Name: AlwaysOn database backup alert
Platform: Sqlserver
Category: Cluster and Replication
Description: Checks the status of each member node of the current WSFC cluster based on Dynamic Management Views sys.dm_hadr_cluster_members.
Long description:
Version: 3.5
Default schedule: 5 6 * *
Requires engine install: No
Compatibility tag: instance[databasetype=‘sqlserver’]/.[alwayson_active=‘YES’]/.[maj_version > ‘2008′ & engine_edition = ‘Microsoft SQL Server’ & eng_inst_priv = 0]

Parameters

Name Default value Description
backup_alarm_threshold 48 Alarm threshold (in hours).
backup_warning_threshold 24 Warning threshold (in hours).
missing_backup_status 2 Return status value (ALARM – 2, WARNING – 1, or OK – 0) when missing backup of a database.
exclude_groups The list of AlwaysON Groups to be ignored (separated by comma).
exclude_databases master, msdb, model The list of databases to be ignored (separated by comma).
check_all_databases NO Includes databases not in AlwaysOn Groups (YES/NO).
check_differential_instead NO If set to YES the procedure checks differential backup instead of full databases backup and
differential_and_full_warning_threshold 168 Warning threshold (in hours) for last full backup although differential backup
differential_and_full_alarm_threshold 336 Alarm threshold (in hours) for last full backup although differential backup
use_uppercase NO Change all database names to uppercase when checking backup statistics. Should not be used for instances that are case sensitive.

Job Summary

SELECT d.name AS 'DatabaseName', MAX(b.backup_finish_date) AS 'LastBackupDate' FROM sys.databases d LEFT JOIN msdb.dbo.backupset b ON d.name = b.database_name WHERE b.type = 'D' GROUP BY d.name ORDER BY LastBackupDate DESC;

Key Alerts and Metrics Tracked

Tables and Reports

Alerts Configuration

Extended Functionality and Details

Database Backup Monitoring Engine

Deployment and Compatibility