安装前首先添加对应的yum repository

rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
yum install -y zabbix-agent

修改配置文件

vim /etc/zabbix/zabbix_agentd.conf

主要修改参数为

Server=47.xxx.211.xxx
ServerActive=47.104.247.164
Hostname=${服务器hostname}

启动服务

#重启
systemctl restart zabbix-agent
#开机启动
systemctl enable zabbix-agent
#启动
systemctl start zabbix-agent

 页面手动添加主机

Zabbix 安装agent_vim

填写参数

Zabbix 安装agent_vim_02

 选择监控模板

Zabbix 安装agent_vim_03

确认就可以回到主机页面查看到添加的agent