Download: http://www.percona.com/redir/downloads/percona-monitoring-plugins/1.1.1/percona-zabbix-templates-1.1.1-1.noarch.rpm
Installation: Rpm-ivh percona-zabbix-templates-1.1.1-1.noarch.rpm
Install PHP Php-mysql
Copy the sub-configuration of the definition key to/usr/local/zabbix/zabbix_agentd.conf.d/
cp/var/lib/zabbix/percona/templates/luserparameter_percona_mysql.conf/usr/local/zabbix/zabbix_agentd.conf.d/
Restart Zabbix_agentd
Service Zabbix_agentd Restart
To modify a user name and password in a script
vi/var/lib/zabbix/percona/scripts/ss_get_mysql_stats.php
Modify Mysql_user and Mysql_pass (users present in MySQL)
Give permission
Grant Process,super,select on * * to [email protected] identified by ' Zabbix ';
Flush privileges;
To debug a script
/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh GG
Import the XML from the/var/lib/zabbix/percona/templates directory into the template (config-template-load)
Apply a template to a host
Monitoring-graphs, view the graphic.
Monitor MySQL with Percona monitoring plugins