docker 部署zabbix问题
问题1、zabbix proxy 与 server不能正常发送数据
zabbix-server容器报错如下:
158:20200302:075118.359 cannot accept connection from proxy "log1" at "172.17.0.1", allowed address: "x.x.x.x": connection is not allowed 159:20200302:075119.360 cannot accept connection from proxy "log1" at "172.17.0.1", allowed address: "x.x.x.x": connection is not allowed
zabbix-proxy-server容器报错如下:
143:20200302:155110.352 cannot send proxy data to server at "x.x.x.x": connection is not allowed 143:20200302:155111.353 cannot send proxy data to server at "x.x.x.x": connection is not allowed
原因分析:
出现上述的原因是由于zabbix代理在与server端进行通信的时候,需要通过docker0(ip为:172.17.0.1),在web界面配置代理的时候,并没有在代理服务器的ip地址栏填上docker0这个地址,导致proxy与server不能正常发数据。
解决:
在代理地址这里同时吧docker0的地址填写上去
记录学习和生活的酸甜苦辣.....哈哈哈