Received empty response from Zabbix Agent at [agent]. Assuming that agent dropped connection because

Received empty response from Zabbix Agent at [agent]. Assuming that agent dropped connection because of access permissions

查看 /var/log/zabbix/zabbix_agentd.log

4143:20211123:235750.944 using configuration file: /etc/zabbix/zabbix_agentd.conf
  4143:20211123:235750.945 agent #0 started [main process]
  4146:20211123:235750.953 agent #3 started [listener #2]
  4147:20211123:235750.962 agent #4 started [listener #3]
  4144:20211123:235750.964 agent #1 started [collector]
  4148:20211123:235750.966 agent #5 started [active checks #1]
  4145:20211123:235750.969 agent #2 started [listener #1]
  4148:20211123:235753.969 active check configuration update from [172.17.0.3:10051] started to fail (cannot connect to [[172.17.0.3]:10051]: [4] Interrupted system call)
  4145:20211123:235831.302 failed to accept an incoming connection: connection from "192.168.1.20" rejected, allowed hosts: "172.17.0.3"
  4145:20211123:235931.366 failed to accept an incoming connection: connection from "192.168.1.20" rejected, allowed hosts: "172.17.0.3"
  4145:20211124:000031.422 failed to accept an incoming connection: connection from "192.168.1.20" rejected, allowed hosts: "172.17.0.3"
  4145:20211124:000130.483 failed to accept an incoming connection: connection from "192.168.1.20" rejected, allowed hosts: "172.17.0.3"
  4145:20211124:000230.543 failed to accept an incoming connection: connection from "192.168.1.20" rejected, allowed hosts: "172.17.0.3"
  4145:20211124:000330.605 failed to accept an incoming connection: connection from "192.168.1.20" rejected, allowed hosts: "172.17.0.3"
  4145:20211124:000430.659 failed to accept an incoming connection: connection from "192.168.1.20" rejected, allowed hosts: "172.17.0.3"
  4145:20211124:000530.719 failed to accept an incoming connection: connection from "192.168.1.20" rejected, allowed hosts: "172.17.0.3"
  4145:20211124:000630.779 failed to accept an incoming connection: connection from "192.168.1.20" rejected, allowed hosts: "172.17.0.3"
  4145:20211124:000730.834 failed to accept an incoming connection: connection from "192.168.1.20" rejected, allowed hosts: "172.17.0.3"

我的zabbix-server端是安装在docker里,所以我的zabbix-server在docker里有一个内网地址,docker所在的宿主机是个外网地址;
在被监控主机上安装zabbix-agent,配置文件

#这里应该写zabbix-server所在的ip,因为zabbix-server在docker里的ip为内网,
但是日志报错。显示192.168.1.20拒绝,我们将192.168.1.20也加上
Server=192.168.1.20,172.17.0.3
ServerActive=192.168.1.20,172.17.0.3

web页填写的为zabbix-agent所在服务器的ip地址;
在这里插入图片描述

然后刷新就正常了;
在这里插入图片描述

  • 4
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值