我想将 zabbix 监视器与单独的 docker 容器一起使用, 所以,实际上我有 4 个容器:
zabbix-server-mysql using 10051 port
zabbix-web-nginx-mysql using 8080 port (that's work)
zabbix-java-gateway using 10052 port
mysql-server using 3306 port
zabbix-server 可在 zabbix 接口上使用,并使用服务器(vps)地址和 10050 端口
例如193.71.58.25:10050
这是我使用 PSK 的 zabbix-agent2.conf 配置
Server=172.17.0.4 --> zabbix-server-mysql IPAddress
ServerActive=172.17.0.4
Hostname=cb6b283d07ce --> Hostname of zabbix-server-mysql container
TLSConnect=psk
TLSAccept=psk
TLSPSKIdentity=PSK 100
TLSPSKFile=/etc/zabbix/zabbix_agentd2.psk
现在我在 zabbix-agent2.log 上出现此错误:
13:38:16.009644 [101] no active checks on server [172.17.0.4:10051]: host [cb6b283d07ce] not found
看着
docker logs zabbix-server-mysql
我发现了这条消息
autoregistration from "172.17.0.1" denied (host:"cb6b283d07ce" ip:"172.17.0.1" port:10050): connection type "TLS with PSK" is not allowed for autoregistration
209:20230308:134017.006 cannot send list of active checks to "172.17.0.1": host [cb6b283d07ce] not found
有什么想法可以解决这个问题吗?
谢谢你