zabbix使用Percona插件监控mysql数据库

  1. 安装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

	返回值则正确
  1. 在zabbix UI界面中添加percona模板,采用Import导入;

在这里插入图片描述

  1. 在zabbix UI界面中Host中将Template连接为mysql_percona数据库模板。

在这里插入图片描述

  1. 成功如下:
    在这里插入图片描述

有问题请联系QQ:2057359164 GITHUB:https://github.com/Jenychen1996

猜你喜欢

转载自blog.csdn.net/JenyChen1996/article/details/88557915