1.添加zabbix安装源
rpm -i http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
2.安装zabbix agent
yum -y install zabbix-agent
3.调整zabbix agent配置文件
cd /etc/zabbix cp zabbix-agent.conf zabbix-agent.conf.bak
vim zabbix-agent.conf
调整以下参数
Server=zabbix server的ip
ServerActive=zabbix server的ip
#Hostname=Zabbix server
HostMetadataItem=system.uname #用于自动注册
4.启动zabbix agent
systemctl enable zabbix-agent #开机自启
systemctl start zabbix-agent #启动