1. ​yum install https://www.percona.com/downloads/percona-monitoring-plugins/1.1.6/percona-zabbix-templates-1.1.6-1.noarch.rpm​
  2. cp /var/lib/zabbix/percona/templates/userparameter_percona_mysql.conf /opt/local/zabbix/etc/zabbix_agentd.conf.d/
  3. vim /opt/local/zabbix/etc/zabbix_agentd.conf #添加 Include=/opt/local/zabbix/etc/zabbix_agentd.conf.d/*.conf
  4. vim /var/lib/zabbix/percona/scripts/ss_get_mysql_stats.php.cnf#修改$mysql_user和$mysql_pass的值
  5. 导入percona模板、