关闭selinux
sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/selinux/config setenforce 0
防火墙设置
允许zabbix-agent的10050端口通过
firewall-cmd --permanent --add-port=10050/tcpfirewall-cmd --reload
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm
yum install zabbix-sender zabbix-agent zabbix
sed -i "s/Server=127.0.0.1/Server=10.0.0.101/" /etc/zabbix/zabbix_agentd.conf sed -i "s/ServerActive=127.0.0.1/ServerActive=10.0.0.101/" /etc/zabbix/zabbix_agentd.conf (主动模式) sed -i "s/Hostname=Zabbix server/Hostname=10.0.0.105/" /etc/zabbix/zabbix_agentd.conf
启动并设置开机自启
systemctl restart zabbix-agent.servicesystemctl enable zabbix-agent.service
原文地址:http://jasonhow.blog.51cto.com/937806/1791735