Cacti MySQL increased monitoring
1. Installing the Monitoring plugin
wget http://mysql-cacti-templates.googlecode.com/files/mysql-cacti-templates-1.1.2.tar.gz
If you can not download Baidu cloud disk has Http://pan.baidu.com/s/1hqH6VwK
TAR-XZVF mysql-cacti-templates-1.1.2.tar.gz
CP mysql-cacti-templates-1.1.2/ss_get_mysql_stats.php/var/www/html/cacti/scripts/
Chown-r cacti.cacti/var/www/html/cacti/scripts
Chmod-r 755/var/www/html/cacti/scripts
Use browser access to cacti host import Mysql-cacti-templates-1.1.2/cacti_host_template_x_db_server_ht_0.8.6i.xml
http://120.132.78.213/cacti/index.php
The default CactiEZ account and password are admin admin
Console-Import Export-Template import-Browse
Select Cacti_host_template_x_db_server_ht_0.8.6i.xml
Save
- Configuring the MySQL plugin for cacti
Modify ss_get_mysql_stats.php
vi/var/www/html/scripts/ss_get_mysql_stats.php
my sq l u seR='CaCT i- ; Mysql_pass = ' cacti ';
This account and password are the accounts and passwords that are authorized by the monitored host to the cacti host.
Cacti need this account and password to connect the monitored machine query status
- Configuring MySQL on the monitored side to authorize the cacti host
Mysql-uroot-p
Grant Process,super on - cacti ' @ '% ' identified by ' cacti ';
Grant Process,super ' cacti ' @ ' 10.254.166.60 ' identified by ' cacti ';
Flush privileges;
The meaning of this command
Allow only hosts with IP 10.254.166.60 to access native data with account cacti password cacti
- Monitor MySQL on the cacti host (10.254.166.60)
4.1 Adding a MySQL module to the host
Console-Management-devices-Select the host you created earlier
Then move to the bottom of the Add graphic template select MySQL related module and save
4.2 Creating graphics for MySQL modules
Console-Create-Create graphic-Select the host-check MySQL module-Create
4.3 Plugin mysql performance data
Monitor-Check the host-check the corresponding MySQL
Complete
mysql-cacti-templates-1.1.2.tar.gz free download cacti mysql add monitor