一、安装yum源
rpm -ivh https://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/zabbix-release-3.4-1.el6.noarch.rpm
报错:curl: (35) SSL connect error
解决:更新nss
yum -y update nss

rpm -ivh https://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/zabbix-release-3.4-1.el6.noarch.rpm

二、安装zabbix-agent-3.4
yum -y install zabbix-agent

以下报错估计哪里有限制,多次运行即可

最终终于完成了

三、配置zabbix-agent
vi /etc/zabbix/zabbix_agentd.conf
Server=192.168.0.201
Hostname=nginxbackup
四、启动zabbix-agent
service zabbix-agent start

在zabbix-server上添加该主机及监控模板即可。
原文:https://www.cnblogs.com/sonnyBag/p/11405035.html