Follow these steps to set up your MySQL server to allow Zenoss to read performance data from the system tables.
Connect to the MySQL database by using the MySQL client:
mysql -u root
Alternatively, if there is a MySQL root password:
mysql -u root -p
Create a user for Zenoss to use. The username "zenoss" is recommended.
mysql> CREATE USER zenoss IDENTIFIED BY '
zenossPassword
'; Query OK, 0 rows affected (0.00 sec)
Navigate to the device in the Zenoss interface.
From the page menu, select
→ .Edit the zMySqlRootPassword zProperty for the device or devices in Zenoss on which you want to monitor MySQL.
Click Save to save your changes.
From the page menu, select
→ .From the table menu, select Bind Performance Templates dialog.
to display theTo add the MySQL template and retain other performance templates, hold down the control key while clicking on the MySQL entry.
Click OK.
The MySQL template should now be displayed under the Performance Templates for
Device
. You will now be able to start collecting the MySQL server metrics from this device.Navigate to the Perf tab and you should see some placeholders for graphs. After approximately fifteen minutes you should see the graphs start to become populated with information.
Note
Pay particular attention to the MySQL Version 5+ setting in the data source. If you are monitoring pre-v5 installations of MySQL, then you must set this value to False. If you are monitoring pre-v5 and v5+ installations, then create two templates: one for MySQL installations earlier than v5 and another for those after.