Hey everyone,
Just getting started with Zabbix and really love the potential. The basic setup of the server side was straightforward and adding an agent was easy enough for a host I want to monitor.
My issue, and hopefully I can get this to work, is my Zabbix server and the host that I want to monitor are access by cloudflare tunnels.
The server is hosted on my home Proxmox server on a Debian 11 VM. I have this setup at zabbix.mylan.com for example and it routes via Cloudflared which is hosted on a container on the proxmox. The Cloudflared container handles routing all internet traffic to my interal lan. For example, proxmox.mylan.com goes to my proxmox server login page, zabbix.mylan.com goes to my zabbix server login page on a proxmox vm, webserver.mylan.com goes to a web server vpm on my proxmox domain. Etc etc.
For those that need extra security, I setup cloudflare access rules so that only I can access them through [email protected] email address.
For monitoring, I have setup monitor.mylan.com and I have not setup any access restrictions. I have monitor.mylan.com set to forward to 192.168.1.251:10051 which is the ip address of zabbix.mylan.com.
zabbix_server.conf is left untouched except for updating the mysql password.
For my host, I have monitor.myhost.com setup. It forwards to 127.0.0.1:10050 on the host server.
The host zabbix_agent2.conf has the following:
Server=monitor.mylan.com
ServerActive=monitor.mylan.com
Hostname=monitor.myhost.com
/etc/hosts on host machine:
ipv4address monitor.myhost.com myhost.com
ipv6address monitor.myhost.com myhost.com
Unfortunately, this is not working. The host machines agent reports:
Code:
2023/03/11 16:51:38.008676 [101] cannot connect to [monitor.mylan.com:10051]: dial tcp :0->[ipv6address]:10051: i/o timeout 2023/03/11 16:51:38.008759 [101] active check configuration update from host [monitor] started to fail 2023/03/11 16:51:59.999804 [101] cannot connect to [monitor.mylan.com:10051]: dial tcp :0->[ipv6address]:10051: i/o timeout 2023/03/11 16:51:59.999863 [101] sending of heartbeat message for [monitor] started to fail zz0.0zwcbnv3n0kfzz
Comment