Zabbix is a monitoring solution for IT infrastructure. We can monitor most of the devices in the network and most of the services on the servers. To monitor applications, we must have a Zabbix server installed in the network.

Zabbix Agent is required on the systems, we need to monitor through the Zabbix server.

Prerequisite 

(i) Zabbix server’s IP

(ii) sudo privileged account access to Ubuntu 20.04 LTS system

Implementation

Step 1 – Configure Zabbix Repository

The Zabbix team provides apt repositories for the installation of Zabbix packages. Then add the repository to the system, which is required packages for the Zabbix agent

For Ubuntu 20.04

$ 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 

For Ubuntu 18.04 (Bionic):

$ wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-3+bionic_all.deb
$ sudo dpkg -i zabbix-release_4.0-3+bionic_all.deb

For Ubuntu 16.04 (Xenial)

$ wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-3+xenial_all.deb$ sudo dpkg -i zabbix-release_4.0-3+xenial_all.deb

 Step 2 – Install Zabbix Agent on Ubuntu

Before installing zabbix agent we need to update the system 

$ sudo apt update
$ sudo apt install zabbix-agent

Step 3 – Configuration of Zabbix Agent

We need to configure Zabbix agent to allow connection from your Zabbix server. Edit Zabbix agent configuration file /etc/zabbix/zabbix_agentd.conf

$ sudo nano /etc/zabbix/zabbix_agentd.conf

And update the below settings then save and exit the file

#Server=[zabbix server IP]
#Hostname=[Hostname of client system ]

Step 4 – Manage Zabbix Service

Now, restart the Zabbix service to apply changes. Also, enable service to auto-start on system boot

$ sudo systemctl restart zabbix-agent
$ sudo systemctl enable zabbix-agent

Leave a Reply