Agents Administration - Tests
 

Default Parameters for MySQLErrLogTest

The error log contains a record of mysqld startup and shutdown times. It also contains diagnostic messages such as errors, warnings, and notes that occur during server startup and shutdown, and while the server is running. For example, if mysqld notices that a table needs to be automatically checked or repaired, it writes a message to the error log. Depending on error log configuration, error messages may also populate the Performance Schema error_log table, to provide an SQL interface to the log and enable its contents to be queried. If the error log grows abnormally or if the administrators notice a sudden/abnormal increase in the count of errors/warnings logged in the error log, the performance of the target database server instance may go in for a toss. To ensure smooth functioning of the database server, administrators need to periodically check for the errors/warnings logged in the error log and initiate pre-emptive measures to fix them. For this purpose, administrators can use the MySQLErrLogTesttest.

This test periodically monitors the error log of the target database server and reports the count of errors and warnings logged in the error log. This test also reports the total file size of the error log and the growth rate of the log file. Use the detailed diagnostics of this test to figure out when exactly were the errors/warnings noticed and what was the cause of such errors/warnings.

This page depicts the default parameters that need to be configured for the MySQLWorkLdTest.

  • The TEST PERIOD list box helps the user to choose how often should the test be executed.

  • In the DATABASE text box specify the name of a database on the target MySQL database server being monitored.

  • 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. Specify the credentials of such a user in the USERNAME and PASSWORD text boxes. To know how to create such a user, refer to Pre-requisites for Monitoring the MySQL Server topic in the Monitoring MySQL Server document.

  • Confirm the password by retyping it in the CONFIRM PASSWORD text box.

  • In the FILEPATH text box specify the full path to the error log file in the target MySQL database server instance in the FILEPATH text box. For example, in environments where the database server is installed on Linux, it can be: /var/log/mysql/error.log and in environments where the database server is installed on Microsoft Windows, it can be: C:/log/MySQL/error.log.

  • If UTF-16 encoding is to be used for reading the specified log file, then, set the IsUTF16 flag to true. By default, this flag is set to false.

  • Once the above values are provided, click on the UPDATE button to register the changes made.

When changing default configurations of tests, the values with “$” indicate variables that will be replaced by the eG system according to the specific server being managed - for instance, $hostName is the host/nickname of the target host, $port is the port number of the server being monitored. E.g., for a server xyz:80, $hostName will be changed automatically by the eG manager to “xyz*” and $port will be changed to “80” when configuring a test.