cloudcone.com Open in urlscan Pro
148.135.114.73  Public Scan

URL: https://cloudcone.com/docs/how-to-install-zabbix-agent-on-centos-7-and-ubuntu-18-04/
Submission: On April 30 via manual from DE — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

 * Home
 * Cloud Servers
 * Dedicated Servers
 * Hosted Email
 * Blog
 * Affiliates
 * About Us


HOW TO INSTALL ZABBIX AGENT ON CENTOS 7 AND UBUNTU 18.04

James May 27, 2019 3 Comments

In our previous post, we covered the installation of Zabbix on Ubuntu server
18.04. In this guide, we will go a step further and install the Zabbix agent on
both CentOS 7 and Ubuntu 18.04. Zabbix agent collects metric data such as CPU
utilization, CPU load, memory and disk utilization, and ships it to the Zabbix
server for visualization. We will tackle the installation of the Zabbix agent in
each of the Linux distributions.


PREREQUISITES

To get started, ensure that you have instances of Ubuntu 18.04 and CentOS 7 with
SSH access. You can readily deploy Managed VPS Cloud servers from CloudCone at
just $3.71 for this exercise.

 


INSTALL ZABBIX AGENT ON UBUNTU 18.04

To install Zabbix agent on Bionic beaver, (Ubuntu 18.04) follow the steps below


STEP 1: ADD ZABBIX REPOSITORY

Zabbix-agent is not present in Ubuntu 18.04’s base repository by default. To add
it, first download the Zabbix Debian file using wget command:

wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-2+bionic_all.deb



 

Append the repository using the dpkg command

dpkg -i zabbix-release_4.0-2+bionic_all.deb



Next, update the system for the changes to take effect.

sudo apt update



 


STEP 2: INSTALL ZABBIX AGENT

Upon successful installation of Zabbix repository, install Zabbix on Ubuntu
18.04 using the command

# sudo apt install zabbix-agent



 


STEP 3: CONFIGURE ZABBIX

Once Zabbix agent is successfully installed, make a few modifications in
Zabbix’s configuration file as shown

vim /etc/zabbix/zabbix_agentd.conf

Make the following modification to these attributes

Server=IP address of Zabbix Server

Hostname=Hostname of client PC

Once done, save the changes and exit the text editor.

 


STEP 4: RESTART AND ENABLE ZABBIX AGENT

To effect the changes made, restart Zabbix agent an enable it upon boot-up

systemctl restart zabbix-agent

systemctl enable zabbix-agent



Finally, verify is the zabbix-agent service is running as expected

systemctl status zabbix-agent



 


INSTALL ZABBIX AGENT ON CENTOS 7 / RHEL 7

Let’s now see how we can install Zabbix agent on CentOS 7


STEP 1: ADD ZABBIX REPOSITORY

To add Zabbix repository run

rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm



 


STEP 2: INSTALL  ZABBIX AGENT

With the successful installation of Zabbix repository, now install Zabbix-agent

yum install -y zabbix-agent



 


STEP 3: CONFIGURE ZABBIX

Once again, as in Ubuntu 18.04,  make the changes to Server and Hostname
attributes in Zabbix’s configuration file as shown

vim /etc/zabbix/zabbix_agentd.conf

Make the following modification to these attributes

Server=IP address of Zabbix Server

Hostname=Hostname of client PC

Once done, save the changes and exit the text editor.

 


STEP 4: RESTART AND ENABLE ZABBIX AGENT

Finally, To effect the changes made to the configuration files, restart Zabbix
agent an enable it upon boot-up

systemctl restart zabbix-agent

systemctl enable zabbix-agent



To verify that Zabbix agent is runnig=ng as expected, execute the command

systemctl status zabbix-agent



 

Wonderful! We have successfully installed Zabbix agent to both Ubuntu 18.04 and
CentOS 7 and verified that the Zabbix agent is running just fine. In our next
tutorial, we shall head out to the Zabbix dashboard and add the two Linux
systems for data visualization and analysis.

Zabbix agent Uncategorized

ABOUT JAMES

Hey there! This is James, a Linux administrator and a tech enthusiast. I love
experimenting with various distributions of Linux and keeping tabs on what's new
in the Linux world.
View all posts by James →



Deploy a managed hourly billed Cloud Server!
Read More

CLOUDCONE, LLC

An unmatched stack of cloud services that collaborate to provide a scalable
infrastructure for your online presence, fully managed by friendly humans.

QUICK LINKS

 * Home
 * Cloud Servers
 * Affiliates
 * API Docs
 * Support Policy
 * Terms and Policies
 * News and Announcements
 * One-Click Applications

TAGS

ansible apache centos CentOS 8 CentOS Stream check uptime deb-get deb-get
command line Debian 10 docker duf utility Go Ubuntu 20.04 install bashtop
Install Docker Ubuntu install Elasticsearch Install LAMP server Debian 10
Install Node.JS Ubuntu 22.04 install pip3 and pip2 lamp LAMP server Debian LAMP
stack LEMP LEMP CentOS 8 LEMP Ubuntu 22.04 linux Linux wget mariadb Migrate to
CentOS Stream mysql Netdata Netdata Ubuntu 20.04 Nginx NodeJS php Rocky Linux 8
ssh sudo command not found the repository is not signed ubuntu Ubuntu 18.04
ubuntu 20.04 Ubuntu 22.04 uptime wget command WordPress
CloudCone, LLC. — All rights reserved
 * Terms and Policies
 * Contact Us
 * About Us
 * API Docs
 * Affiliates