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
調整以下參數
ServerActive=zabbix server的ip
#Hostname=Zabbix server
HostMetadataItem=system.uname #用於自動註冊
4.啓動zabbix agent
systemctl enable zabbix-agent #開機自啓 systemctl start zabbix-agent #啓動