一、系统版本
zabbix服务端
[root@127 ~]# cat /etc/redhat-release
CentOS Linux release 8.3.2011
安装方法参考https://blog.csdn.net/qq_19731521/article/details/117220948#comments_16896991
客户端
[root@mysql ~]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
二、安装agnet2(客户端执行)
[root@mysql ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config #关闭SELINUX
[root@mysql ~]# systemctl disable --now firewalld # 关闭防火墙
[root@mysql ~]# reboot # 重启机器
配置zabbix源
[root@mysql ~]# rpm -Uvh https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm # 获取zabbix源
[root@mysql ~]# sed -i 's#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#' /etc/yum.repos.d/zabbix.repo # 更换zabbix.repo源为阿里的
安装步骤
1.安装agent2
[root@mysql ~]# yum install zabbix-age