I attempted to configure the Zabbix Agent functionality on VyOS, but it doesn’t seem to be working as expected. Below are the details of the current situation:
Environment:
- VyOS Version: 1.5-rolling-202501100007
- Zabbix Server Version: 7.0
- Zabbix Server Address:
192.168.11.2
VyOS Configuration:
set interfaces ethernet eth0 address '192.168.11.101/24'
set service monitoring zabbix-agent listen-address '192.168.11.101'
set service monitoring zabbix-agent port '10050'
set service monitoring zabbix-agent server '192.168.11.2'
set service monitoring zabbix-agent server-active '192.168.11.2'
Connectivity Between Zabbix Server and VyOS:
The connection between the Zabbix Server and VyOS is confirmed via ICMP.
shakapon@zabbix-server:~$ ping 192.168.11.101
PING 192.168.11.101 (192.168.11.101) 56(84) bytes of data.
64 bytes from 192.168.11.101: icmp_seq=1 ttl=64 time=6.79 ms
64 bytes from 192.168.11.101: icmp_seq=2 ttl=64 time=0.645 ms
Zabbix Agent Binding Status:
- Confirmed that the agent is bound to
192.168.11.101:10050
and is in the LISTEN state.
sudo netstat -tulnp | grep 10050
tcp 0 0 192.168.11.101:10050 0.0.0.0:* LISTEN 4012/zabbix_agent2
Zabbix Agent Status:
The Zabbix Agent 2 service appears to be running correctly.
sudo systemctl enable zabbix-agent2
(snip)
Active: active (running) since Sat 2025-01-11 20:15:53 JST; 20s ago
(snip)
Packet Capture:
Capturing packets on eth0
shows that the Zabbix Server sends traffic to 192.168.11.101:10050
, but VyOS doesn’t respond.
Firewall Settings:
No firewall rules are configured.
vyos@vyos:~$ show firewall
Rulesets Information
TCPDUMP Output:
Here is the captured packet when traffic is sent to the Zabbix Agent:
vyos@vyos:~$ sudo tcpdump -i eth0 port 10050 -vv
tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
21:00:48.035513 IP (tos 0x0, ttl 64, id 46039, offset 0, flags [DF], proto TCP (6), length 60)
192.168.11.2.35726 > 192.168.11.101.zabbix-agent: Flags [S], cksum 0x97e6 (incorrect -> 0xe74c), seq 1034714365, win 64240, options [mss 1460,sackOK,TS val 4238238705 ecr 0,nop,wscale 7], length 0
Zabbix Agent Logs:
The logs also indicate that the Zabbix Agent is starting without any issues.
vyos@vyos:~$ sudo journalctl -u zabbix-agent2
Jan 11 20:23:47 vyos systemd[1]: Started zabbix-agent2.service - Zabbix Agent 2.
Jan 11 20:23:47 vyos zabbix_agent2[6173]: Starting Zabbix Agent 2 (6.0.37)
Jan 11 20:23:48 vyos zabbix_agent2[6173]: Zabbix Agent2 hostname: [vyos]
Jan 11 20:23:48 vyos zabbix_agent2[6173]: Press Ctrl+C to exit.
Reboot:
Rebooting VyOS did not change the situation.
Assumption:
It seems that the Zabbix Agent 2 is running on VyOS, and traffic from the Zabbix Server is reaching VyOS. However, for some reason, the agent does not respond to the requests.
Are there any additional points I should check?
I would appreciate any advice or guidance.
Thank you!