如果zabbix-agent所在的linux主机启用了iptables防火墙,则需要在iptables中添加一条规则,运行10050端口访问,下面是配置方法:
首先运行service iptables status查看在filter的什么位置插入,将下面的35替换为实际的位置编号
iptables -I INPUT 35 -p tcp -m tcp --dport 10050 -m comment --comment "zabbix_agentd listen " -j ACCEPT
保存iptables:
service iptables save
转载于:https://blog.51cto.com/yuweibing/1656422