Instance status


Job details

Name: Instance status
Platform: Sqlserver
Category: Availability
Description: This alert checks if the instance has been restarted since the last check
Long description:
Version: 1.3
Default schedule: * * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘sqlserver’]/instance[maj_version > ‘2000′ & hasengine=‘YES’ & (engine_edition = ‘Microsoft SQL Server’ engine_edition = ‘Azure SQL Managed Instance’)]

Parameters

Name Default value Description
instance time down threshold 0 A warning/alarm is triggered if the number of seconds the instance was stopped is greater than this parameter value.
return status 2 Return status value (ALARM – 2, WARNING – 1, or OK – 0) when the instance is restarted.

Job Summary

SELECT @@servername AS "Server name", MIN(login_time) AS "Started" FROM master.dbo.sysprocesses

Job Implementation

The job uses a set of SQL procedures and tables to track and report the status of instances:

Dependencies

This job has dependencies which include:

Upgrade Path

The job includes an upgrade path from versions 1.1 and 1.2, where:

Alert Configuration

The alerts generated by this job are configurable:

Reporting

The default report for this job includes:

This information provides quick insights into the instance start time directly related to any noticed resets or reboots.

Job Frequency

The default scheduling for the job is:

This frequent checking ensures almost real-time monitoring and alerting on the status of the database instances.