Score:0

Zabbix scheduled reports configuration - Cannot connect to web service: couldn't connect to server

in flag

I recently upgraded Zabbix to 5.4.1 and I wanted to start using scheduled report, but I've got some problems with conifguration (error Cannot connect to web service: couldn't connect to server).

My Zabbix is running in Docker on Debian Buster. Everything is based on official containers: Zabbix Server (PostgreSQL), Zabbix Frontend (Apache, PostreSQL) and PostgreSQL12.

According do documentation (https://www.zabbix.com/documentation/current/manual/appendix/install/web_service) I installed Google Chrome browser:

and Zabbix Web Service

I eddited zabbix_web_service.conf:
AllowedIP=127.0.0.1,::1,0.0.0.0/0,zabbix

I edited zabbix_server.conf:
StartReportWriters=1
WebServiceURL=http://localhost:10053/report

I eddited settings in Zabbix Frontend - Administration -> General -> Other
Frontend URL: http://localhost:8085 (frontend is available at port 8085)

But when I try to test report generating i get error:
Cannot connect to web service: couldn't connect to server

I've already tried with other Frontend URLs, but nothings seems to work. I tried with: http://localhost:10053/report http://192.168.10.18:8085/ http://192.168.10.18:10053/report

I've verified that I get answear from http://192.168.10.18:10053/report : {"detail":"Method is not supported."}

What else can I check/try?

Score:1
in flag

I found the problem. In server configuration I was usinng address http://localhost:10053/report it was wrong because in my case Zabbix server is running in docker and Zabbix web service is not running in docker. Zabbix server wasn't albe to connect to web servcie because it was in the other network. I changed the configuration and now everything works fine. Reports are beeing generated and send

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.