最近,我将Zabbix升级到5.4.1,我想开始使用计划报告,但我在合并(错误Cannot connect to web service: couldn't connect to server
)方面遇到了一些问题。
我的Zabbix正在Debian的Docker上运行。所有东西都是基于官方容器的: Zabbix (PostgreSQL)、Zabbix前端(Apache,PostreSQL)和PostgreSQL12。
根据do文档(https://www.zabbix.com/documentation/current/manual/appendix/install/web_service),我安装了Google:
https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
和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前端- 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."}
那里得到了睡衣
我还能查到什么?
发布于 2022-01-03 16:49:32
我发现了问题。在服务器配置中,我使用了address http://localhost:10053/report,这是错误的,因为在我的示例中,Zabbix服务器在docker中运行,而Zabbix服务没有在docker中运行。Zabbix服务器无法连接到web servcie,因为它位于另一个网络中。我改变了配置,现在一切都很好。报告正在生成和发送。
https://stackoverflow.com/questions/68682294
复制相似问题