This MySQL monitor type is capable of monitoring several key aspects of an MySQL database.
Note: Only monitor specific settings are documented here. See Standard monitor settings.
Prerequisites
The MySQL Connector/C or MySQL Workbench packages must be installed on the Network Monitor server or gateway. Download and install the 32-bit client, even if your server is 64-bit. This is because Network Monitor is a 32-bit application and requires 32-bit drivers.
After installation ensure the file path to libMysql.dll
is in the Windows system path. This is normally taken care of during installation of the administrator package, and might require a reboot of the server. The Network Monitor nmservice.exe
service must be restarted for the change to take effect. If Network Monitor cannot access this DLL file, the MySQL monitor fails with an error message specifying that it cannot find the libMysql.dll
file.
If your MySQL server normally only responds to local queries, ie. your application is on the same server as the database, you may need to follow these simple steps to allow access for KNM to monitor your MySQL database.
/etc/mysql/my.cnf
to the correct IP address of your server, or comment out the row with # before the bind_address
line for the server to listen on all IP addresses of your server.mysql –u root –p
use <database name>
GRANT ALL ON *.* to root@’<ip address of your KNM host/gateway>’ IDENTIFIED BY ‘<your root password>’;
FLUSH PRIVILEGES;
Monitor specific properties
These fields are required to connect to the database to perform configured tests.
Performance monitoring options
Leave these fields blank to not perform their tests.
long_query_value
time defined in the database configuration. Enter a numeric threshold value to make the test fail if the number of slow queries exceeds this value. SQL query option
An optional SQL statement can be executed and its output compared to a predefined value using a compare operation.