• Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

How To Install Zabbix Agent on Ubuntu 18.04 & 16.04 LTS

Written by Rahul, Updated on September 10, 2019

Zabbix Agent is required to install on all remote systems needs to monitor through Zabbix server. The Zabbix Agent collects resource utilization and applications data on the client system and provides such information to the Zabbix server on their requests.

There are two types of checks can be configured between Zabbix Server and Client.

  • Passive check – Zabbix Agent only sent data to server on their request.
  • Active check – Zabbix Agent sends data periodically to Server.

After installing zabbix server on your server, this article will help you to install zabbix agent on Ubuntu 18.04 LTS, 16.04 LTS systems. After completing this below steps go to next article add host in zabbix server.

Step 1 – Enable Apt Repository

Zabbix apt repositories are available on Zabbix official website. Add the repository to install required packages for Zabbix agent using the following command. For the older version of Ubuntu 12.04 LTS can download and install Zabbix agent version 2.2.

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

As you have successfully added Zabbix apt repositories in your system let’s use the following command to install Zabbix agent using the following command

sudo apt-get update
sudo apt-get install zabbix-agent

Step 3 – Configure Zabbix Agent

After installation of Zabbix agent. Edit Zabbix agent configuration file /etc/zabbix/zabbix_agentd.conf and update Zabbix server IP.

sudo vi /etc/zabbix/zabbix_agentd.conf
#Server=[zabbix server ip]
#Hostname=[Hostname of client system ]

Server=192.168.1.10
Hostname=Server2

Here 192.168.1.10 is the IP of Zabbix server to allow for connection with this Zabbix client.

Step 4 – Restart Zabbix Agent

After adding Zabbix server IP in the configuration file, now restart agent service using below command.

sudo systemctl enable zabbix-agent 
sudo systemctl start zabbix-agent 

To start and stop zabbix-agent service anytime use following commands.

sudo systemctl stop zabbix-agent 
sudo systemctl status zabbix-agent

Congratulation’s! You have successfully installed Zabbix Agent. Lets Add Host in Zabbix Server to be monitor.

Share it!
Share on Facebook
Share on Twitter
Share on LinkedIn
Share on Reddit
Share on Tumblr
Share on Whatsapp
Rahul
Rahul
Connect on Facebook Connect on Twitter

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

14 Comments

  1. Avatar Zabby Reply
    December 19, 2020 at 9:24 am

    You really should work on making your english a lot more clear. I had a hard time understanding the guide(Had to go back and read threw to understand the steps properly)

    Other then that this is a great tutorial for noobs 🙂

  2. Avatar fabfc Reply
    April 19, 2019 at 8:46 pm

    Thanks
    To change zabbix version, choose it here: http://repo.zabbix.com/zabbix/
    Then, follow the path: … #distro-name/pool/main/z/zabbix-release/

  3. Avatar greavette Reply
    November 5, 2018 at 11:53 am

    Thank you for this post. What would be the repo to use to install Zabbix Agent v4 on Debian 9 and Ubuntu?

    Thank you.

  4. Avatar Thanh Ho Reply
    August 30, 2018 at 8:05 am

    I got a problems zabbix agent unreachable 5 minutes,disabled firewall,ping ok, try increase timeout in server conf,not work.
    Check log zabbix server: first error network,wait for 15 seconds.
    Plz help me.

  5. Avatar Joey Reply
    March 17, 2018 at 10:22 pm

    Good article, i have followed these steps on ubuntu 14.04 but for some reason apt still wants to install version 1.3

  6. Avatar MageNative Reply
    March 4, 2018 at 7:50 am

    Great and useful article. Thankyou

  7. Avatar Roman Reply
    October 30, 2017 at 11:55 pm

    Don’t forget to use following commands for Ubuntu 16.04

    $ sudo systemctl enable zabbix-agent #for automatically start after reboot
    $sudo systemctl start zabbix-agent

  8. Avatar bhuvan Reply
    September 21, 2017 at 4:23 am

    my task was to install zabbix in amazon EC2 machine and test some server is up or down or some basic testing for that do i need an zabbix agent?

  9. Avatar Nitin Reply
    September 11, 2016 at 3:42 am

    In case on configuration page you are getting an error of ” The frontend does not match Zabbix database.” and you are using Ubuntu 14.04 and trying to do a new install of Zabbix 3.0 then you should first populate the database with the sql file provided in /usr/share/doc/zabbix-server-mysql/create.sql. After that it should work. I wasted full 60min figuring this out. Hopefully someone else will save time. http://www.KnowBand.com

  10. Avatar Abner A Ortiz Reply
    July 8, 2016 at 3:15 pm

    It did not work. I tried adding a rule to the iptables with the port 10050 still cannot get communication with the zabbix server. idk what else to do.

    • Avatar Anonymous Reply
      June 8, 2017 at 6:03 am

      disable the firewall

  11. Avatar Giles Reply
    March 23, 2016 at 1:20 pm

    How to configure active or passive check?

  12. Avatar Esso Reply
    September 2, 2015 at 6:48 am

    Thx mate!

  13. Avatar Dmitry Reply
    June 10, 2015 at 2:46 pm

    Thanks a lot, great guide!

Leave a Reply Cancel reply

Popular Posts

  • How To Install Python 3.9 on Ubuntu 20.04 5
  • How to Install Python 3.9 on CentOS/RHEL 7 & Fedora 32/31 0
  • How To Install VNC Server on Ubuntu 20.04 1
  • How To Install NVM on macOS with Homebrew 0
  • How to Install .NET Core on Debian 10 0
© 2013-2020 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy