How to install Zabbix agent on Debian 10/11 Bullseye – Guide

Zabbix server can be installed on any Linux distribution, but on this tutorial I will show you how to update the latest version of Zabbix 5.0 LTS or 5.4 Standard for Debian 11 (Bullseye) / Debian 10 (Buster) / Debian 9 (Stretch) to install. Zabbix is ​​100% free, open source enterprise-grade software designed to monitor the availability and performance of IT infrastructure components. In this article, you can read a case study on the popularity of Zabbix and learn more about the open source movement. Enough talking, let’s get to work! First we install and configure the Zabbix server, then a database and finally the front end – check the image below for a better understanding of the Zabbix architecture.

Zabbix is a free, open source, popular and feature-rich IT infrastructure monitoring software. It is used to monitor networks, servers, applications, services and cloud resources. It also supports monitoring of storage devices, databases, virtual machines, telephony and more. This article assumes you have a basic working knowledge of Linux and how to use the Shell. ..

Installation of the Zabbix open source monitoring tool is very simple and assumes you are running under the root account. Otherwise, you may need to add ‘sudo’ to the commands to gain root privileges. I will show you step by step the installation of the Zabbix open source monitoring tool on Debian 11 (Bullseye).

Add Zabbix repository to Debian system

We will use packages in the Zabbix repository to install our agent. Let’s add this repository.

Add the Zabbix repository on Debian 11:

sudo dpkg -i zabbix-release_5.0-2_amd64.deb sudo dpkg -i zabbix-release_5.0-2_i386.deb The Debian package for Zabbix is now available for installation on your system. ..

Add the Zabbix repository in Debian 10:

sudo dpkg -i zabbix-release_5.0-1_all.deb sudo dpkg -i zabbix-release_5.0-1_amd64.deb sudo dpkg -i zabbix-release_5.0-1_i386.deb sudo dpkg -i zabbix-release_5.0-1~bpo8+1_amd64.deb sudo dpkg -i zabbix-release_5.0~bpo8+1_i386.deb ..

Install Zabbix Agent on Debian 11 / Debian 10

Zabbix Server uses an agent or SNMP to monitor its clients. Agent usage can be a little confusing, so let’s explore how he uses the agent. ..

Install Zabbix Agent on Debian Linux

sudo apt install zabbix-agent

To start and enable the Zabbix agent, you will need to:

  1. Download and install the Zabbix agent.
  2. Start the Zabbix agent by running the following command: zabbix_agent start. ..

This command enables the Zabbix agent. ..

To start the Zabbix agent, use the following command: sudo systemctl start zabbix-agent. ..

Configure Zabbix Agenton Debian 11 / Debian 10

-Zabbix agent name: zabbix -Zabbix agent version: 2.4.5 -Zabbix agent pid file: /var/run/zabbix/zabbix.pid -Zabbix agent user: zabbix -Zabbix agent group: zabbix

In order to restrict incoming connections from hosts other than 172.18.36.77, you can use the Server directive to list only those hosts.

ListenPort = 10050 # The agent will listen on this port for all server connections

The agent should listen to all IP addresses in the comma delimited list. ..

Zabbix server port pairs and Zabbix proxies for active checks

Hostname = Zabbix server2 # Optional name for the server to be monitored

Allow listening ports on firewall

If you do not have the ufw firewall running, then you should allow the required ports as shown below: If you have the ufw firewall running and do not allow the required ports, then your computer may be vulnerable to attack.

sudo ufw allow 10050

Add host on Zabbix server

To start your Zabbix server in your favorite browser, navigate to the following URL: https://<server_ip>:8081/zabbix/server.php?hostname=<Zabbix_server_name>&login=<Zabbix_user>&password=<Zabbix_password> ..

Please enter your hostname.

Final note

This guide will show you how to install the Zabbix agent on Debian 10/11 Bullseye. If you have any questions about this article, please feel free to ask us in the comments below. Additionally, please share this article with your friends if you enjoyed it! ..