1、官方下載zabbix-agent.rpm包
zabbix-agent
[root@agent ~]# rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpm
[root@agent ~]# yum install zabbix-agent -y
[root@agent ~]# systemctl enable zabbix-agent.service
PS:在使用yum安裝zabbix-agent時可能會提示無法安裝,重新使用yum安裝,一致安裝至進度條到達100%即可
2、zabbix-agent端配置
[root@agent ~]# vim /etc/zabbix/zabbix_agentd.conf
Server=192.168.1.129 #zabbix server地址
ServerActive=192.168.1.129 #zabbix server地址
Hostname=192.168.1.130 #本機主機名,在zabbix-web端配置主機時需要填寫
3、重啓agent服務
[root@agent ~]# systemctl restart zabbix-agent.service