Zabbix通过percona监控MySQL
yum install https://www.percona.com/downloads/percona-monitoring-plugins/1.1.6/percona-zabbix-templates-1.1.6-1.noarch.rpm
- cp /var/lib/zabbix/percona/templates/userparameter_percona_mysql.conf /opt/local/zabbix/etc/zabbix_agentd.conf.d/
- vim /opt/local/zabbix/etc/zabbix_agentd.conf #添加 Include=/opt/local/zabbix/etc/zabbix_agentd.conf.d/*.conf
- vim /var/lib/zabbix/percona/scripts/ss_get_mysql_stats.php.cnf#修改$mysql_user和$mysql_pass的值
- 导入percona模板、
- http://www.cnblogs.com/caoxiaojian/p/5706992.html