Assuming that agent dropped connection because of
阿新 • • 發佈:2018-11-02
response sql -s esp 記錄 failed docker perm because Zabbix出現了報錯
Received empty response from Zabbix Agent at [172.17.113.52]. Assuming that agent dropped connection because of access permissions.
由於我的情況和網上的其他人不一樣,因此這裏記錄下。
我在一臺機器上部署了Zabbix服務器端和Zabbix客戶端
zabbix服務器端是用的docker
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9e7a02f69be6 zabbix/zabbix-web-nginx-mysql:latest "docker-entrypoint.s About an hour ago Up About an hour 0.0.0.0:80->80/tcp, 443/tcp zabbix-web-nginx-mysql 81c0c1d4a77c zabbix/zabbix-server-mysql:latest "docker-entrypoint.s About an hour ago Up About an hour 0.0.0.0:10051->10051/tcp zabbix-server-mysql 385076d84bc5 zabbix/zabbix-java-gateway:latest "docker-entrypoint.s About an hour ago Up About an hour 10052/tcp zabbix-java-gateway 5dc95c7f93e3 mysql:5.7 "docker-entrypoint.s About an hour ago Up About an hour 3306/tcp, 33060/tcp mysql-server
客戶端是rpm包安裝的
客戶端配置內設置Server和ServerActive為本機的IP地址172.17.113.52。報了上述的錯誤。查看/var/log/zabbix/zabbix_agentd.log
10352:20181102:194441.382 failed to accept an incoming connection: connection from "10.0.0.3" rejected, allowed hosts: "172.17.113.52"
可以判斷,zabbixserver所在的docker網絡10.0.0.3和本機的172.17.113.52不一致。
##解決辦法
客戶端配置文件中Sever中加上10.0.0.3。
Assuming that agent dropped connection because of