DBMS uptime


Job details

Name: DBMS uptime
Platform: Mysql
Category: Availability
Description: Collects uptime statistics for the MySQL instance.
Long description: Collects uptime statistics for the MySQL instance.
Version: 2.4
Default schedule: * * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & is_mysql_branch=‘1′]/.[hasengine=‘YES’ & use_global_variables_information_schema = ‘1′ & maj_version > ‘5.5′]

Parameters

Name Default value Description

Job Summary

Dependencies

Several dependencies are present, including:

In the event of failure, the job will clean up all dependencies.

Procedures & Views

The job creates tables, procedures and views in the implementation section, using SQL commands. It creates tables for data and history, a procedure to collect and update uptime data, and several views to extract and calculate uptime information.

Report

The job generates a report titled “DBMS Uptime”, providing uptime statistics and indicating periods when the database was up. The presentations in the report include:

Post-Implementation

After the main implementation, the job alters the initially created views with updated queries in the post-implementation section, leading to more precise views in relation with uptime history, monitored days, stopped days, up days and availability.

Upgrade

An upgrade path is included for version “1.0″ and version “2.3″ to the current version of the job. During the upgrade, the job will drop the existing “dbw_dbms_uptime” procedure and create a new one.

Installation & Other Info

The job has been designed for easy, automatic installation, signified by the “express-install” and “force-install” elements. It specifically targets instances which are MySQL branch, has an engine available, can use global variables information schema, and has a major version greater than ‘5.5′. Its metadata places it in the “Availability” category.