[root@master ~]# yum -y install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
[root@master ~]# yum -y install percona-zabbix-templates
[root@master ~]# rpm -ql percona-zabbix-templates
[root@master ~]# cd /var/lib/zabbix/percona/templates
[root@master templates]# ls
userparameter_percona_mysql.conf
zabbix_agent_template_percona_mysql_server_ht_2.0.9-sver1.1.8.xml
[root@master templates]# cp userparameter_percona_mysql.conf /etc/zabbix/zabbix_agentd.d/
[root@master templates]# cd /var/lib/zabbix/percona/scripts/
[root@master scripts]# ls
get_mysql_stats_wrapper.sh ss_get_mysql_stats.php
[root@master scripts]# vim ss_get_mysql_stats.php //下面两个参数改成数据库账户密码
导入数据库监控模板
各个监控项参数介绍
https://blog.csdn.net/Adley_zk/article/details/107027968