Ubuntu

Install Zabbix Agent on Ubuntu 20.04

Install Zabbix Agent on Ubuntu 20.04

Introduction:

The Zabbix Agent provides us with remote system monitoring services for Linux and Windows-based systems. A Zabbix Agent installed on a remote machine collects the CPU, memory, disk usage, and network bandwidth-related data from a system and sends it to the Zabbix Server. Today we will teach you the way of installing the Zabbix Agent on a Ubuntu 20.04 system.

Method of Installing Zabbix Agent on Ubuntu 20.04:

For installing the Zabbix Agent on your Ubuntu 20.04 system, you will have to perform the following steps:

Step # 1: Update your Ubuntu 20.04 System:

For updating your Ubuntu 20.04 system before installing the Zabbix Agent on it, you will have to run the command shown below in your system’s terminal:

$ sudo apt update

This command will perform a thorough analysis of all those packages and dependencies present on your system that need an update and then updates them accordingly.

Step # 2: Add the Zabbix Agent’s Repository to your Ubuntu 20.04 System:

Now, you need to the repository of the Zabbix Agent to your Ubuntu 20.04 system. This can be done with the following command:

$ wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1+focal_all.deb

The Zabbix Agent’s repository will be added to your Ubuntu 20.04 system within the blink of an eye after executing this command.

Step # 3: Enable the Zabbix Agent’s Repository on your Ubuntu 20.04 System:

After adding the Zabbix Agent’s repository to your Ubuntu 20.04 system, you need to enable it by executing the command shown below:

$ sudo dpkg –i zabbix-release_5.0-1+focal_all.deb

When this repository will be successfully enabled on your Ubuntu 20.04 system, you will be able to see the following success messages on your system’s terminal:

Step # 4: Update your Ubuntu 20.04 System Again:

When the Zabbix Agent’s repository has been added successfully to your Ubuntu 20.04 system, you need to update it again for the said changes to take effect by executing the command shown below:

$ sudo apt update

After updating your Ubuntu 20.04 system again, you will be able to install the Zabbix Agent on it by executing the step that follows.

Step # 5: Install the Zabbix Agent on your Ubuntu 20.04 System:

To install the Zabbix Agent on your Ubuntu 20.04 system, you will have to execute the command shown below:

$ sudo apt install zabbix-agent

Once this command completes its execution, the Zabbix Agent will be successfully installed on your Ubuntu 20.04 system.

Step # 6: Check the Active Status of the Zabbix Agent on your Ubuntu 20.04 System:

To verify the successful installation of the Zabbix Agent on your Ubuntu 20.04 system, you can check its status by executing the following command in your system’s terminal:

$ sudo systemctl status zabbix-agent

You can easily verify from the highlighted portion of the image shown below that the status of the Zabbix Agent is “active (running)” on our Ubuntu 20.04 system.

Method of Removing Zabbix Agent from Ubuntu 20.04:

For uninstalling the Zabbix Agent from your Ubuntu 20.04 system, you will have to execute the command shown below:

$ sudo apt-get purge zabbix-agent

The output of this purge command is shown in the following image:

Finally, you can also execute the command shown below to remove all the irrelevant packages and dependencies on your Ubuntu 20.04 system:

$ sudo apt-get autoremove

This command will render the following output on your Ubuntu 20.04 system’s terminal:

Conclusion:

By following this guide, you will be able to install the Zabbix Agent on a Ubuntu 20.04 system very conveniently. You can ensure the successful installation of the Zabbix Agent by checking its Active status on your system. However, you can also uninstall it anytime you want.

Similar Posts