1. 下载rpm包
# wget https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-agent-4.4.4-1.el7.x86_64.rpm
2. 安装
# rpm -ivh zabbix-agent-4.4.4-1.el7.x86_64.rpm
3. 修改配置文件
# vim /etc/zabbix/zabbix_agentd.conf
Server=192.168.80.131 #修改为服务器ip(被动)
ServerActive=192.168.80.131 #修改为服务器ip(主动)
Hostname=192.168.80.132 #修改为客户机ip
4. 启动agent
# systemctl start zabbix-agent
# systemctl enable zabbix-agent
5. 开放端口
# firewall-cmd --zone=public --add-port=10050/tcp
# firewall-cmd --zone=public --add-port=10050/tcp --permanent
6. 添加主机
先添加主机组
![](https://img2018.cnblogs.com/i-beta/1816298/201912/1816298-20191227161902222-1761936044.png)
![](https://img2018.cnblogs.com/i-beta/1816298/201912/1816298-20191227162020799-1231081387.png)
添加主机
![](https://img2018.cnblogs.com/i-beta/1816298/201912/1816298-20191227162233722-1961889750.png)
![](https://img2018.cnblogs.com/i-beta/1816298/201912/1816298-20191227162652765-1973965016.png)
![](https://img2018.cnblogs.com/i-beta/1816298/201912/1816298-20191227162830138-897118182.png)