Updated: 28 September 2026 · Applies to: Zabbix agent 2 (7.0 LTS) on Debian 12, Ubuntu 24.04 and AlmaLinux 9
Debian 8/9 are end of life. The Zabbix agent runs on each monitored server and sends data to your Zabbix server. Use the agent version that matches your server (7.0 LTS in these examples); Zabbix agent 2 is the recommended agent.
Add the Zabbix repository
# Debian 12 wget https://repo.zabbix.com/zabbix/7.0/debian/pool/main/z/zabbix-release/zabbix-release_latest_7.0+debian12_all.deb dpkg -i zabbix-release_latest_7.0+debian12_all.deb && apt update # Ubuntu 24.04: .../zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.0+ubuntu24.04_all.deb # AlmaLinux 9: dnf install https://repo.zabbix.com/zabbix/7.0/alma/9/x86_64/zabbix-release-latest-7.0.el9.noarch.rpm
Install and configure
apt install zabbix-agent2 # or: dnf install zabbix-agent2
In /etc/zabbix/zabbix_agent2.conf set:
Server=192.0.2.50 # Zabbix server allowed to query (passive checks) ServerActive=192.0.2.50 # Zabbix server for active checks Hostname=web1.example.com # must match the host name in the Zabbix frontend
systemctl enable --now zabbix-agent2 ufw allow from 192.0.2.50 to any port 10050 proto tcp
Add the host in Zabbix
In the Zabbix frontend, Data collection › Hosts › Create host, enter the same host name, add an agent interface with the server's IP, and link the template Linux by Zabbix agent.