To monitor the system resources, applications, Services, Databases you might have installed a Zabbix server. Zabbix Agent is required to monitor through the Zabbix server. Zabbix agent is installed on the remote host. In this article, I am going to install Zabbix agent on Ubuntu 20.04 LTS server. So, let’s get started.
- Ubuntu 20.04 Server with SSH access.
- Root access or user with sudo access.
Step 1: Download and Add Zabbix Repo
You can add a repository to the system by downloading from the Zabbix repository. Run the following command to enable the Zabbix repository.
$ wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1+focal_all.deb
$ sudo dpkg -i zabbix-release_5.0-1+focal_all.deb
Step 2: Install Zabbix Agent on Ubuntu
After adding the Zabbix repository, first update the Ubuntu package manager and install Zabbix agent by running following commands.
$ sudo apt update
$ sudo apt install zabbix-agent
You have successfully installed the Zabbix agent on the host. Now, you have to modify the zabbix agent to allow connection from the Zabbix server.
Now update the Zabbix configuration file
/etc/zabbix/zabbix_agentd.conf and add the zabbix server IP and zabbix server host. Add below settings.
Hostname=server host name
After updating the values save the file and exit.
Step 3 – Manage Zabbix Services
To start, stop,restart and auto enable Zabbix run following commands.
|To enable Zabbix on startup
|sudo systemctl enable zabbix-agent
|To restart Zabbix
|sudo systemctl restart zabbix-agent
|To stop the Zabbix
|sudo systemctl stop zabbix-agent
|To check the status of Zabbix
|sudo systemctl status zabbix-agent
In this tutorial, you have learned to install Zabbix agent on Ubuntu 20.04 LTS server. If you have any doubts feel free to contact me, I will definitely try to help you. Also, you can join our elite Facebook group to get direct help from me. If you like this tutorial, please share this article on your social media handle.