####添加zabbix yum仓库
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
####安装zabbix-agent
yum install zabbix-agent -y
####修改zabbix-agent内信息
vim /etc/zabbix/zabbix_agentd.conf
Server=192.168.10.11
ServerActive=192.168.10.11
Hostname=web1
####启动zabbix-agent
service zabbix-agent start
####放通iptables防火墙
iptables -I INPUT -s zabbix主机IP -p tcp --dport 10050 -j ACCEPT
iptables -I INPUT -s zabbix主机IP -p udp --dport 10050 -j ACCEPT
评论区