I've set up zabbix for monitoring a couple machines in a small homelab network, and everything seems to work OK except that I keep getting alerts about agent being unavailable. This happens a couple times a day, for different machines.
But when I connect to the machine, everything seems in order. The only sign of trouble is that the agent log says this:
Which is really strange, because 192.168.1.125 is the correct IP of the zabbix.lan server, and dig agrees
Any idea what could be causing this?
I suspect it's something DNS related -maybe something about ipv4 vs. ipv6? The hostnames (in the .lan domain) are resolved by a local DNS server.
But when I connect to the machine, everything seems in order. The only sign of trouble is that the agent log says this:
Code:
2025/11/19 19:26:53.830553 failed to accept an incoming connection: connection from "192.168.1.125" rejected, allowed hosts: "zabbix.lan"
Code:
# dig zabbix.lan ; <<>> DiG 9.18.41-1~deb12u1-Debian <<>> zabbix.lan ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43218 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1232 ;; QUESTION SECTION: ;zabbix.lan. IN A ;; ANSWER SECTION: zabbix.lan. 5 IN A 192.168.1.125 ;; Query time: 0 msec ;; SERVER: 192.168.1.1#53(192.168.1.1) (UDP) ;; WHEN: Wed Nov 19 22:36:15 CET 2025 ;; MSG SIZE rcvd: 55
I suspect it's something DNS related -maybe something about ipv4 vs. ipv6? The hostnames (in the .lan domain) are resolved by a local DNS server.
Comment