AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1073748
Accepted
Paweł Zimny
Paweł Zimny
Asked: 2021-08-07 05:10:10 +0800 CST2021-08-07 05:10:10 +0800 CST 2021-08-07 05:10:10 +0800 CST

Zabbix 计划报告配置 - 无法连接到 Web 服务:无法连接到服务器

  • 772

我最近将 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
  • 1 1 个回答
  • 1447 Views

1 个回答

  • Voted
  1. Best Answer
    Paweł Zimny
    2022-01-04T08:45:03+08:002022-01-04T08:45:03+08:00

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

    • 1

相关问题

  • 是否可以使用 Zabbix 监控进程?

  • zabbix 的 LAMP 监控

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve