Use Zabbix default templates to monitor MySQL, which is named template App MySQL.
1, in the monitoring of the MySQL host installed on the client, specifically do not repeat, you can refer to http://chinawu.blog.51cto.com/10692884/1750861.
2, in the MySQL database to give Zabbix authorization,
Mysql-uroot-p123456-e "GRANT USAGE on * * to ' zabbix ' @ ' localhost ' identified by ' Zabbix '";
3, because is Yum installs the Zabbix client, by default in etc, enters the Zabbix directory Cd/etc/zabbix, discovers only zabbix_agentd.conf and ZABBIX_AGENT.D, modifies the configuration file zabbix_ agentd.conf, where server= server ip,serveractive=0.0.0.0:10050,hostname is customized and unique.
4. Create Zabbix associated database files, Mkdir/etc/zabbix/etc,vim. MY.CNF (a point before and after my), content
[MySQL]
Host=localhost
User=zabbix
Password=zabbix
[Mysqladmin]
Host=localhost
User=zabbix
Password=zabbix
5, modify the directory Zabbix_agent.d userparameter_mysql.conf, the home value to change to/etc/zabbix/etc, that is, home=/etc/zabbix/etc/, a total of three places.
6. Open 10050 Port
7, restart the Zabbix-agent service.
This article is from the "Tea Incense" blog, please be sure to keep this source http://chinawu.blog.51cto.com/10692884/1770460
Zabbix monitoring MySQL