{"id":5619,"date":"2021-04-12T18:30:46","date_gmt":"2021-04-12T18:30:46","guid":{"rendered":"https:\/\/linuxways.net\/?p=5619"},"modified":"2021-04-12T18:30:46","modified_gmt":"2021-04-12T18:30:46","slug":"install-zabbix-agent-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/install-zabbix-agent-on-ubuntu-20-04\/","title":{"rendered":"Install Zabbix Agent on Ubuntu 20.04"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>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.<\/p>\n<h2>Method of Installing Zabbix Agent on Ubuntu 20.04:<\/h2>\n<p>For installing the Zabbix Agent on your Ubuntu 20.04 system, you will have to perform the following steps:<\/p>\n<h3>Step # 1: Update your Ubuntu 20.04 System:<\/h3>\n<p>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\u2019s terminal:<\/p>\n<pre><strong>$ sudo apt update<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"416\" height=\"29\" class=\"wp-image-5620\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-32.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-32.png 416w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-32-300x21.png 300w\" sizes=\"auto, (max-width: 416px) 100vw, 416px\" \/><\/strong><\/p>\n<p>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.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"716\" height=\"527\" class=\"wp-image-5621\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-33.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-33.png 716w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-33-300x221.png 300w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><\/p>\n<h3>Step # 2: Add the Zabbix Agent\u2019s Repository to your Ubuntu 20.04 System:<\/h3>\n<p>Now, you need to the repository of the Zabbix Agent to your Ubuntu 20.04 system. This can be done with the following command:<\/p>\n<pre><strong>$ wget https:\/\/repo.zabbix.com\/zabbix\/5.0\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_5.0-1+focal_all.deb<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"716\" height=\"45\" class=\"wp-image-5622\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-34.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-34.png 716w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-34-300x19.png 300w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><\/strong><\/p>\n<p>The Zabbix Agent\u2019s repository will be added to your Ubuntu 20.04 system within the blink of an eye after executing this command.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"337\" class=\"wp-image-5623\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-35.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-35.png 719w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-35-300x141.png 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/p>\n<h3>Step # 3: Enable the Zabbix Agent\u2019s Repository on your Ubuntu 20.04 System:<\/h3>\n<p>After adding the Zabbix Agent\u2019s repository to your Ubuntu 20.04 system, you need to enable it by executing the command shown below:<\/p>\n<pre><strong>$ sudo dpkg \u2013i zabbix-release_5.0-1+focal_all.deb<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"701\" height=\"30\" class=\"wp-image-5624\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-36.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-36.png 701w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-36-300x13.png 300w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/strong><\/p>\n<p>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\u2019s terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"703\" height=\"137\" class=\"wp-image-5625\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-37.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-37.png 703w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-37-300x58.png 300w\" sizes=\"auto, (max-width: 703px) 100vw, 703px\" \/><\/p>\n<h3>Step # 4: Update your Ubuntu 20.04 System Again:<\/h3>\n<p>When the Zabbix Agent\u2019s 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:<\/p>\n<pre><strong>$ sudo apt update<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"415\" height=\"30\" class=\"wp-image-5626\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-38.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-38.png 415w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-38-300x22.png 300w\" sizes=\"auto, (max-width: 415px) 100vw, 415px\" \/><\/strong><\/p>\n<p>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.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"717\" height=\"528\" class=\"wp-image-5627\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-39.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-39.png 717w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-39-300x221.png 300w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" \/><\/p>\n<h3>Step # 5: Install the Zabbix Agent on your Ubuntu 20.04 System:<\/h3>\n<p>To install the Zabbix Agent on your Ubuntu 20.04 system, you will have to execute the command shown below:<\/p>\n<pre><strong>$ sudo apt install zabbix-agent<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"538\" height=\"29\" class=\"wp-image-5628\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-40.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-40.png 538w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-40-300x16.png 300w\" sizes=\"auto, (max-width: 538px) 100vw, 538px\" \/><\/strong><\/p>\n<p>Once this command completes its execution, the Zabbix Agent will be successfully installed on your Ubuntu 20.04 system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"718\" height=\"405\" class=\"wp-image-5629\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-41.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-41.png 718w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-41-300x169.png 300w\" sizes=\"auto, (max-width: 718px) 100vw, 718px\" \/><\/p>\n<h3>Step # 6: Check the Active Status of the Zabbix Agent on your Ubuntu 20.04 System:<\/h3>\n<p>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\u2019s terminal:<\/p>\n<pre><strong>$ sudo systemctl status zabbix-agent<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"29\" class=\"wp-image-5630\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-42.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-42.png 586w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-42-300x15.png 300w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/strong><\/p>\n<p>You can easily verify from the highlighted portion of the image shown below that the status of the Zabbix Agent is \u201cactive (running)\u201d on our Ubuntu 20.04 system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"718\" height=\"346\" class=\"wp-image-5631\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-43.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-43.png 718w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-43-300x145.png 300w\" sizes=\"auto, (max-width: 718px) 100vw, 718px\" \/><\/p>\n<h2>Method of Removing Zabbix Agent from Ubuntu 20.04:<\/h2>\n<p>For uninstalling the Zabbix Agent from your Ubuntu 20.04 system, you will have to execute the command shown below:<\/p>\n<pre><strong>$ sudo apt-get purge zabbix-agent<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"558\" height=\"28\" class=\"wp-image-5632\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-44.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-44.png 558w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-44-300x15.png 300w\" sizes=\"auto, (max-width: 558px) 100vw, 558px\" \/><\/strong><\/p>\n<p>The output of this purge command is shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"301\" class=\"wp-image-5633\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-45.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-45.png 681w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-45-300x133.png 300w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/p>\n<p>Finally, you can also execute the command shown below to remove all the irrelevant packages and dependencies on your Ubuntu 20.04 system:<\/p>\n<pre><strong>$ sudo apt-get autoremove<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"483\" height=\"30\" class=\"wp-image-5634\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-46.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-46.png 483w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-46-300x19.png 300w\" sizes=\"auto, (max-width: 483px) 100vw, 483px\" \/><\/strong><\/p>\n<p>This command will render the following output on your Ubuntu 20.04 system\u2019s terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"113\" class=\"wp-image-5635\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-47.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-47.png 580w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-47-300x58.png 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/p>\n<h2>Conclusion:<\/h2>\n<p>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.<\/p>","protected":false},"excerpt":{"rendered":"<p>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,&hellip;<\/p>","protected":false},"author":1,"featured_media":5690,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[100,263],"class_list":["post-5619","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-ubuntu-20-04","tag-zabbix-agent"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/5619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=5619"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/5619\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/5690"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=5619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=5619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=5619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}