dbWatch engine alert


Job details

Name: dbWatch engine alert
Platform: Sqlserver
Category: Internal
Internal
Description: Creates tables that can be used to simulate blocked sessions in the database.
Long description: This alert returns warning/alarm if there are several dbWatch engines installed on the same instance.
Version: 1
Default schedule: 90m
Requires engine install: No
Compatibility tag: .[type=‘instance’ & databasetype=‘sqlserver’]/instance[maj_version > ‘2000′ & eng_inst_priv = 0 & (engine_edition = ‘Microsoft SQL Server’ engine_edition = ‘Azure SQL Managed Instance’) ]

Parameters

Name Default value Description
ignore_databases NO List of databases (separated by comma) which will be ignored.
multi_engine_status NO Return status value (ALARM – 2, WARNING – 1, or OK – 0) when there are more than one dbWatch engine installed.
active_engine_status NO Return status value (ALARM – 2, WARNING – 1, or OK – 0) when there are more than one active dbWatch engines (tasks executed within last 30 minutes), or if the dbWatch engine is not active (tasks not executed within last 30 minutes).

Job Summary

SELECT name FROM master..sysdatabases 
WHERE CONVERT(VARCHAR(20), DATABASEPROPERTYEX(name, 'Updateability')) = 'READ_WRITE'
AND CONVERT(VARCHAR(20), DATABASEPROPERTYEX(name, 'UserAccess')) = 'MULTI_USER' 
AND name NOT IN ('tempdb', 'msdb', 'master', 'model') 
AND CONVERT(VARCHAR(20), DATABASEPROPERTYEX(name, 'Status')) = 'ONLINE'

You would then need to further explore the ‘DBW_TASKS‘ table within each relevant database to check for engine creation dates and last run details.

Job Implementation Details

The dbWatch engine alert monitors instances based on several criteria:

Key Metrics Monitored

Output Details

The alert can output in several states:

Scheduled Execution

This job runs periodically every 90 minutes with a timeout setting of 120 seconds, giving sufficient intervals to check and react to changes without causing excessive load.

Reporting

Reports Generated

Table reports provide the following insights:

Reports include visual representations such as tables to make the data clear and actionable. Updates are triggered by the default schedule ensuring data is up-to-date for operational needs.