In the previous guide, we installed and configured Zabbix Server on Debian Buster, ready to start receiving data from clients for their monitoring. This is exactly what we have to accomplish at this session. We will install Zabbix Agent in Debian 10 and then monitor it using our cool server. Let us continue.
Step 1: Add Zabbix repository
We will use a package from the Zabbix repository to install our agent. Let’s add this repository.
sudo wget https://repo.zabbix.com/zabbix/4.4/debian/pool/main/z/zabbix-release/zabbix-release_4.4-1+buster_all.deb
Use the following command to install the repository.
sudo dpkg -i zabbix-release_4.4-1+buster_all.deb
Step 2: Install Zabbix Agent
The Zabbix server uses agents or SNMP to monitor its clients. Let’s explore how it uses proxies.
Install Zabbix Agent on Debian Linux
sudo apt update sudo apt install zabbix-agent
Start and enable Zabbix agent
sudo systemctl enable zabbix-agent sudo systemctl start zabbix-agent
Step 3: Configure Zabbix proxy
Open the Zabbix proxy file and make sure at least the following options are set.
Server=172.18.36.77 # Incoming connections will be accepted only from the hosts listed here. ListenPort=10050 # Agent will listen on this port for connections from the server ListenIP=0.0.0.0 # List of comma delimited IP addresses that the agent should listen on ServerActive=172.18.36.77 # List of comma delimited IP:port pairs of Zabbix servers and Zabbix proxies for active checks Hostname=Zabbix server2 # Optional name for the server to be monitored
Step 4: Allow listening on ports on the firewall
If you are running a ufw firewall, allow the necessary ports as shown below
sudo ufw allow 10050 sudo ufw reload
Step 5: Adding Hosts in Zabbix Server
Launch your Zabbix server on your favorite browser and follow these steps to navigate
configuration > host
Click ” Create host In the upper right corner
Fill out the form accordingly. Please note,” CPU name “Section must be with you in” CPU name The “” field in the proxy configuration file.
Click ” plus After completing the above operations, press the “” button.
Step 6: Add templates
After adding hosts, the next step is to create a template that will guide Zabbix Server about what you want to monitor in the client. We will add a template as an example.
Navigate to the Template page
After adding the host, you should see it populated in configuration > host The page is shown below
Click on the server where you want to add the template, then click “ Template “Option, as shown below.
Click ” select “Button loads a large number of templates for you to choose from.
When you’re done, just click “ Updates “To update the details of the server to be monitored.
We are done!
Now our server is monitoring the Zabbix agent. Zabbix provides many other features such as alerts, problem detection, and more. Visit Zabbix page For more details.
Other guides you may wish to digest
How to install Zabbix server on CentOS 8 / RHEL 8
Install Zabbix Server 4 on CentOS 7
How to install and configure Zabbix agent on Ubuntu 18.04
How to install and configure Zabbix Agent 4.0 on Ubuntu 18.04 and CentOS 7
10 best open source Linux monitoring tools