【问题标题】:Zabbix scheduled reports configuration - Cannot connect to web service: couldn't connect to serverZabbix 计划报告配置 - 无法连接到 Web 服务:无法连接到服务器
【发布时间】:2021-08-06 13:21:11
【问题描述】:

我最近将 Zabbix 升级到 5.4.1,我想开始使用计划报告,但我在配置方面遇到了一些问题(错误 Cannot connect to web service: couldn't connect to server)。

我的 Zabbix 在 Debian Buster 上的 Docker 中运行。一切都基于官方容器: Zabbix Server (PostgreSQL)、Zabbix Frontend (Apache, PostreSQL) 和 PostgreSQL12。

根据文档 (https://www.zabbix.com/documentation/current/manual/appendix/install/web_service) 我安装了 Google Chrome 浏览器:

和 Zabbix Web 服务

我编辑了 zabbix_web_service.conf:
AllowedIP=127.0.0.1,::1,0.0.0.0/0,zabbix

我编辑了 zabbix_server.conf:
StartReportWriters=1
WebServiceURL=http://localhost:10053/report

我在 Zabbix Frontend - Administration -> General -> Other
Frontend URL: http://localhost:8085 中编辑了设置(前端在端口 8085 可用)

但是当我尝试测试生成报告时出现错误:
Cannot connect to web service: couldn't connect to server

我已经尝试过使用其他前端 URL,但似乎没有任何效果。我试过: http://localhost:10053/report http://192.168.10.18:8085/ http://192.168.10.18:10053/report

我已确认我收到了来自 http://192.168.10.18:10053/report 的答复: {"detail":"Method is not supported."}

我还能检查/尝试什么?

【问题讨论】:

    标签: zabbix


    【解决方案1】:

    我发现了问题。在服务器配置中,我使用了地址 http://localhost:10053/report 这是错误的,因为在我的情况下,Zabbix 服务器在 docker 中运行,而 Zabbix Web 服务没有在 docker 中运行。 Zabbix 服务器无法连接到 web servcie,因为它在另一个网络中。我更改了配置,现在一切正常。正在生成并发送报告

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-24
      • 2020-02-09
      相关资源
      最近更新 更多