Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Monitoring Tools»How To Install Zabbix Agent on Ubuntu 20.04

    How To Install Zabbix Agent on Ubuntu 20.04

    By RahulJuly 12, 20202 Mins Read

    Zabbix is an monitoring solutions for your IT infrastructure. You can monitor most of the devices in your network and most of the services on your servers. To monitor applications, You must have a Zabbix server installed in your network.

    Advertisement

    Zabbix Agent is required on the systems, you need to monitor through the Zabbix server. This tutorial will help you to install Zabbix Agent on Ubuntu 20.04 LTS Linux system.

    Requirements

    You must have shell access with sudo privileged account access to your Ubuntu 20.04 LTS system.

    Step 1 – Configure Zabbix Repository

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

    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

    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 update
    sudo apt install zabbix-agent
    

    The Zabbix Agent is installed on your system.

    Next, you need to configure Zabbix agent to allow connection from your Zabbix server. For example, your Zabbix server is running with 192.168.10.254 IP address. To update this, edit Zabbix agent configuration file /etc/zabbix/zabbix_agentd.conf:

    sudo nano /etc/zabbix/zabbix_agentd.conf
    

    And update below settings:

    #Server=[zabbix server ip]
    #Hostname=[Hostname of client system ]
    
    Server=192.168.10.254
    Hostname=Server2
    

    Save your file and close it.

    Step 3 – Manage Zabbix Service

    Now, restart Zabbix service to apply changes. Also enable service to auto start on system boot. Run the following commands to restart and enable Zabbix agent service.

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

    The following commands are used to stop and status of Zabbix-agent service:

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

    Conclusion

    In this tutorial, you have learned to install Zabbix Agent service on Ubuntu 20.04 system.

    Agent client monitoring zabbix
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    Bash Script to Monitor Disk Space and Notify

    Shell Script to Monitor Disk Space and Send Alert

    How to Install Nagios Client (NRPE) on Ubuntu 20.04

    Installing Nagios on Ubuntu

    How to Install Nagios Server on Ubuntu 20.04

    View 4 Comments

    4 Comments

    1. johnny on August 10, 2022 11:44 pm

      No need to add a repository, the Zabbix agent is part of the standard repository, so apt install zabbix-agent is enough.

      Reply
    2. Oshan on April 8, 2021 3:38 am

      Received empty response from Zabbix Agent at [18.220.68.181]. Assuming that agent dropped connection because of access permissions. can you help…agent is installed on AWS server ubuntu 20.04 LTS, ufw if inactive and 10050 tcp is open from aws inbound

      Reply
    3. Linux learner on January 5, 2021 8:37 pm

      Hi Rahul,

      do you happen to know if zabbix-agent2 can be installed on ubuntu 20.04?

      Reply
      • Théo on January 28, 2021 8:49 am

        Zabbix agent 2 (zabbix-agent2) is supported only on Debian 9/10 and Ubuntu 18.04

        Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Implementing a Linux Server Security Audit: Best Practices and Tools
    • cp Command in Linux (Copy Files Like a Pro)
    • 15 Practical Examples of dd Command in Linux
    • dd Command in Linux (Syntax, Options and Use Cases)
    • Iptables: Common Firewall Rules and Commands
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.