Centos7.5 Zabbix创建主机ZBX爆红
原因:/etc/zabbix/zabbix_agentd.conf配置文件的Server写错了
解决方法:
[root@db01 ~]# vim /etc/zabbix/zabbix_agentd.conf # Incoming connections will be accepted only from the hosts listed here. # If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally and '::/0' will allow any IPv4 or IPv6 address. # '0.0.0.0/0' can be used to allow any IPv4 address. # Example: Server=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.domain # # Mandatory: yes, if StartAgents is not explicitly set to 0 # Default: Server=172.16.1.71 #Server=127.0.0.1 ### Option: ListenPort # Agent will listen on this port for connections from the server. # # Mandatory: no # Range: 1024-32767 # Default: "/etc/zabbix/zabbix_agentd.conf" 396L, 10642C written [root@db01 ~]# systemctl restart zabbix-agent.service