【发布时间】: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 浏览器:
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo apt install ./google-chrome-stable_current_amd64.deb
和 Zabbix Web 服务
- wget https://repo.zabbix.com/zabbix/5.4/debian/pool/main/z/zabbix-release/zabbix-release_5.4-1+debian10_all.deb
- dpkg -i zabbix-release_5.4-1+debian10_all.deb
- apt install zabbix-web-service
我编辑了 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