How to Install Zabbix Agent on Ubuntu 20.04 Easily

0
install Zabbix agent on Ubuntu

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.

Prerequisites

  • 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.

Server=3.142.208.148
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.

ServicesCommand
To enable Zabbix on startupsudo systemctl enable zabbix-agent
To restart Zabbixsudo systemctl restart zabbix-agent
To stop the Zabbixsudo systemctl stop zabbix-agent
To check the status of Zabbixsudo systemctl status zabbix-agent

Conclusion

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.

LEAVE A REPLY

Please enter your comment!
Please enter your name here