MySQL Backup Status Test

Database backups are very important in an environment as these backups will help administrators recover the data at a faster pace in case of failures such database failures, system crashes, hardware failures or if users delete data accidentally. Backups are also essential as a safeguard before upgrading a MySQL installation, and they can be used to transfer a MySQL installation to another system or to set up replica servers. Frequent backup failures can cause data non-sync and increase the risk of data loss when disaster strikes. Therefore, it is essential for the administrators to closely monitor how well backups are performed in a MySQL installation. The MySQL Backup Status test helps in this regard!

This test helps administrators figure out the count of backups that failed and the count of backups that were completed successfully. In addition, this test reveals the count of backups that are currently running in the target environment. This test also helps administrators figure out the maximum time duration for a backup to be completed. Using the detailed diagnostics offered by this test, administrators can identify the backup type that is responsible for more backup failures.

Target of the test : A MySQL server

Agent deploying the test : An internal/remote agent

Outputs of the test : One set of results for the target database server instance being monitored

Configurable parameters for the test
Parameter Description

Test Period

How often should the test be executed.

Host

The IP address of the MySQL server.

Port

The port at which the specified host listens.

Database

Specify the name of a database on the target MySQL database server being monitored

Username and Password

The eG agent has to be configured with the credentials of a user who has server-wide Process and Select privileges on the monitored MySQL server. To know how to create such a user, refer to Pre-requisites for Monitoring the MySQL Server topic.

Confirm Password

Confirm the password by retyping it here.

Maximum Duration

In some environments, backups in the target MySQL database server may often take a few minutes and sometimes, take a few hours to complete. By default, a value of 0 is specified against this parameter indicating that the test will consider all backups executing on the target MySQL database server. However, if you wish to ignore a few regular backups that are completed within a specified time limit from the scope of monitoring, then, you can specify a value in minutes against this parameter. By doing so, this test will not collect information pertaining to the backups that are completed within the duration specified against this parameter.

SSL

Set this flag to Yes if the target MySQL database server that is to be monitored is SSL-enabled. By default, this flag is set to No.

Detailed Diagnosis

To make diagnosis more efficient and accurate, the eG Enterprise embeds an optional detailed diagnostic capability. With this capability, the eG agents can be configured to run detailed, more elaborate tests as and when specific problems are detected. To enable the detailed diagnosis capability of this test for a particular server, choose the On option. To disable the capability, click on the Off option.

The option to selectively enable/disable the detailed diagnosis capability will be available only if the following conditions are fulfilled:

  • The eG manager license should allow the detailed diagnosis capability
  • Both the normal and abnormal frequencies configured for the detailed diagnosis measures should not be 0.
Measurements made by the test
Measurement Description Measurement Unit Interpretation

Successful backups

Indicates the total number of backups that were successful.

Number

 

Failed backups

Indicates the number of backups that failed.

Number

Use the detailed diagnosis of this measure to figure out the backup type that is failing more frequently.

Running backups

Indicates the number of backups that are currently running.

Number

The detailed diagnosis of this measure lists the Backup ID, Start time, End time, Duration(minutes), Binary log file, Backup type, Lock time, Backup state, Error message, Current backup time, Current Backup state and Backup state details.

Maximum duration of successful backup

Indicates the maximum time taken for a backup to complete successfully.

Minutes

The detailed diagnosis of this measure lists the Backup ID, Start time, End time, Duration(minutes), Binary log file, Backup type, Lock time, Backup state, Error message, Current backup time, Current Backup state and Backup state details.

Total number of backups

Indicates the total number of backups.

Number

If the number of backups are very high, administrators need to analyze and ensure the unused backups are deleted and disk space is reclaimed.

The detailed diagnosis of the Failed backups measure lists the Backup ID, Start time, End time, Duration(minutes), Binary log file, Backup type, Lock time, Backup state, Error message, Current backup time, Current Backup state and Backup state details. Use the detailed diagnosis of this measure to figure out the backup type that is failing more frequently.

Figure 1 : The detailed diagnosis of the Failed backups measure

The detailed diagnosis of the Running backups measure lists the Backup ID, Start time, End time, Duration(minutes), Binary log file, Backup type, Lock time, Backup state, Error message, Current backup time, Current Backup state and Backup state details. Use the detailed diagnosis of this measure to figure out the exact name of the backups that are currently running.

Figure 2 : The detailed diagnosis of the Running backups measure

The detailed diagnosis of the Maximum duration of successful backup measure lists the Backup ID, Start time, End time, Duration(minutes), Binary log file, Backup type, Lock time, Backup state, Error message, Current backup time, Current Backup state and Backup state details. This helps administrators figure out the exact time taken by a backup to complete successfully.

Figure 3 : The detailed diagnosis of the Maximum duration of successful backup measure