How to Install Zabbix Agent on Ubuntu 20.04/18.04/16.04 LTS

In this article, We are going to Perform How to Install Zabbix agent on Ubuntu 20.04/18.04/16.04 LTS

Introduction

Zabbix is free and open source monitoring tools which is used to monitor the System resources, applications, Services, Databases,etc.,

To monitor resources using Zabbix , you have to install zabbix agent on client system and have to add zabbix server details into it, so you can monitor your resources using Zabbix server Dashboard

Prerequisites 

1. Download and Add Zabbix Repository 

Enter below command to download and add Zabbix repository as per your Ubuntu Version

Ubuntu 20.04 LTS

Run below commands to add Zabbix Repository on Ubuntu 20.04 LTS

sudo https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1%2Bfocal_all.deb 
sudo apt update 
sudo dpkg -i zabbix-release_5.0-1+focal_all.deb 

Ubuntu 18.04 LTS

Run below commands to add Zabbix Repository on Ubuntu 18.04 LTS

wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1%2Bbionic_all.deb 
sudo apt update 
sudo dpkg -i zabbix-release_5.0-1+bionic_all.deb

Ubuntu 16.04 LTS 

Run below commands to add Zabbix Repository on Ubuntu 16.04 LTS

wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1%2Bxenial_all.deb 
sudo apt update 
sudo dpkg -i zabbix-release_5.0-1+xenial_all.deb 

2. How to Install Zabbix Agent on Ubuntu

Install Zabbix agent on Ubuntu 20.04/18.04/16.04 LTS using below command

sudo apt update
sudo apt install zabbix-agent

3. Configure Zabbix Agent

Edit the zabbix configuration file and add sever details into it

sudo nano /etc/zabbix/zabbix_agentd.conf

Add below settings into it

Server=192.168.100.51

Hostname=zabbix.fosstechnix.local

save the file and close

Restart and enable zabbix agent service

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

start/stop/check status of zabbix agent service

sudo systemctl start zabbix-agent

sudo systemctl stop zabbix-agent 

sudo systemctl status zabbix-agent

Conclusion

In this article, We have covered How to Install Zabbix agent on Ubuntu 20.04/18.04/16.04 LTS, Configure zabbix agent and controlling zabbix agent service

Related Articles:

How to Install Zabbix on Ubuntu 20.04/18.04/16.04 LTS

How to Install Netdata on Ubuntu 20.04 LTS

How to Install Netdata on CentOS 7

How to download and Install Nagios on Ubuntu 18.04/16.04 LTS

How to Install Netdata using Ansible Playbook on Ubuntu 18.04/16.04 LTS.

How to Install ELK Stack on Ubuntu

How to Install Splunk on Ubuntu 18.04/16.04 LTS

How to Install Splunk Enterprise on CentOS 7

Reference

Zabbix official Guide

Sivasai Sagar

I am working as DevOps Engineer and having 5 years of Experience. Likes to share knowledge.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Share via
Copy link