Install Zabbix Agent or Zabbix Agent2 Version 5.5 on Debian 10/11

Get the package for 10:

# wget
# dpkg -i zabbix-release_5.5-1%2Bdebian10_all.deb

Get the package for 11

# wget
# dpkg -i zabbix-release_5.5-1+debian11_all.deb
# sudo apt update
# sudo apt install zabbix-agent

For Agent 2

# sudo apt install zabbix-agent2

We now need to edit the configuration file to tell the agent where to find the server. Open /etc/zabbix/zabbix_agentd.conf or /etc/zabbix/zabbix_agentd2.confin your preferred text editor and make the following changes to tell the agent which Zabbix servers are allowed to talk to it:

Server=[IP or hostname of your Zabbix server]
ServerActive=[IP or hostname of your Zabbix server]

We also need to tell Zabbix the hostname of the system. This doesn’t have to be the actual hostname, it is the display name we will use within Zabbix for the system. Comment out the default value of Hostname=Zabbix server and replace it with the following:


This will tell the agent to automatically populate the hostname value with the system hostname. You could just set the hostname within the configuration file. However, automatically populating it allows you to reuse the same configuration file across all your hosts, simplifying automation if you have a lot of hosts to monitor.

# systemctl enable zabbix-agent
# sudo systemctl start zabbix-agent

Start Agent 2

# sudo systemctl enable zabbix-agent2
# sudo systemctl start zabbix-agent2

Add FW rule:

# ufw allow from [Zabbix server IP] to any port 10050 proto tcp