-
安装Percona插件
下载地址:https://www.percona.com/doc/percona-monitoring-plugins/LATEST/zabbix/index.html
yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm yum install percona-zabbix-templates Tips:It will place files under /var/lib/zabbix/percona/. Alternatively, you can grab the tarball and copy folders zabbix/scripts/ and zabbix/templates/ into /var/lib/zabbix/percona/ cd percona/ cp userparameter_percona_mysql.conf /etc/zabbix/zabbix_agentd.d/ vi /var/lib/zabbix/percona/scripts/ss_get_mysql_stats.php*
Tips:修改文件中数据库信息
·Test the scripts
/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh gg
返回值则正确
- 在zabbix UI界面中添加percona模板,采用Import导入;
- 在zabbix UI界面中Host中将Template连接为mysql_percona数据库模板。
- 成功如下:
有问题请联系QQ:2057359164 GITHUB:https://github.com/Jenychen1996