zabbix最新版本7.2设置自动发现一直报错,我觉得我配置的没有问题,为什么日志反复报错呢?
```bash
108546:20250515:152439.790 cannot send list of active checks to "192.168.25.153": host [zabbix-agent02] not found
zabbix-server 的配置 可以确定可以ping通153服务器和153的agent
```bash
[root@localhost ~]# telnet 192.168.25.153 10050
Trying 192.168.25.153...
Connected to 192.168.25.153.
Escape character is '^]'.
^CConnection closed by foreign host.
[root@localhost ~]# ping zabbix-agent02
PING zabbix-agent02 (192.168.25.153) 56(84) bytes of data.
64 bytes from zabbix-agent02 (192.168.25.153): icmp_seq=1 ttl=64 time=0.353 ms
64 bytes from zabbix-agent02 (192.168.25.153): icmp_seq=2 ttl=64 time=0.355 ms
^C
--- zabbix-agent02 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1030ms
rtt min/avg/max/mdev = 0.353/0.354/0.355/0.001 ms
[root@localhost ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.25.151 zabbix-server
192.168.25.152 zabbix-agent01
192.168.25.153 zabbix-agent02
[root@localhost ~]#
zabbix-agent的配置
[root@localhost ~]# grep -E '^[a-Z]' /etc/zabbix/zabbix_agentd.conf
PidFile=/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=192.168.25.151
ServerActive=192.168.25.151
Hostname=zabbix-agent02
Include=/etc/zabbix/zabbix_agentd.d/*.conf
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.25.151 zabbix-server
192.168.25.152 zabbix-agent01
192.168.25.153 zabbix-agent02
[root@localhost ~]# telnet 192.168.25.151 10051
Trying 192.168.25.151...
Connected to 192.168.25.151.
Escape character is '^]'.
^CConnection closed by foreign host.
[root@localhost ~]# ping zabbix-server
PING zabbix-server (192.168.25.151) 56(84) bytes of data.
64 bytes from zabbix-server (192.168.25.151): icmp_seq=1 ttl=64 time=0.453 ms
^C
--- zabbix-server ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.453/0.453/0.453/0.000 ms
[root@localhost ~]# hostname
zabbix-agent02
[root@localhost ~]#
自动发现配置 截图