被监控节点需要配置zabbix-agent
添加 Zabbix YUM 仓库
rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
替换 zabbix.repo 中安装源为清华源
sed -i 's#http://repo.zabbix.com#https://mirrors.tuna.tsinghua.edu.cn/zabbix#g' /etc/yum.repos.d/zabbix.repo
sed -i 's#gpgcheck=1#gpgcheck=0#g' /etc/yum.repos.d/zabbix.repo
安装 Zabbix agent
yum -y install zabbix-agent
配置 Zabbix agent
vim /etc/zabbix/zabbix_agentd.conf
Server=192.168.1.213 #配置为 Zabbix Server 的IP
启动 Zabbix agent
systemctl start zabbix-agent && systemctl enable zabbix-agent
在 Zabbix web 上添加监控节点
到这里,就添加完成了。