之前其实分享过Zabbix监控指标的需求,所以后面主要介绍一下怎么去实现,这里先介绍一下部署zabbix的教程~
环境:
1、配置yum源
不配置repel源直接装zabbix-server会提示libmysqlclient.so.18()(64bit) 被 zabbix-server-mysql-4.2.6-1.el7.x86_64 需要
libmysqlclient.so.18(libmysqlclient_18)(64bit) 被 zabbix-server-mysql-4.2.6-1.el7.x86_64 需要
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/Centos-7.repo >/dev/null 2>&1 rpm -Uvh --force https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh --force https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-2.el7.noarch.rpm yum clean all && yum makecache
2、安装zabbix Server/proxy/frontend
--install Zabbix server yum -y install zabbix-server-mysql zabbix-web zabbix-web-mysql
常见报错:错误:软件包:zabbix-server-mysql-4.2.8-1.el7.x86_64 (zabbix需要libmysqlclient.so.18()
解决:
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-libs-compat-5.7.24-1.el7.x86_64.rpm rpm -ivh mysql-community-libs-compat-5.7.24-1.el7.x86_64.rpm