{"id":6793,"date":"2022-06-11T21:53:13","date_gmt":"2022-06-11T16:23:13","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=6793"},"modified":"2022-06-11T21:55:14","modified_gmt":"2022-06-11T16:25:14","slug":"how-to-install-zabbix-agent-on-ubuntu","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-install-zabbix-agent-on-ubuntu\/","title":{"rendered":"<strong>How To Install Zabbix Agent on Ubuntu&nbsp;<\/strong>"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Zabbix is a monitoring solution for IT infrastructure. We can monitor most of the devices in the network and most of the services on the servers. To monitor applications, we must have a Zabbix server installed in the network.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Zabbix Agent is required on the systems, we need to monitor through the Zabbix server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Prerequisite&nbsp;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(i) Zabbix server\u2019s IP <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(ii) sudo privileged account access to Ubuntu 20.04 LTS system<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Implementation<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1 \u2013 Configure Zabbix Repository<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The Zabbix team provides apt repositories for the installation of Zabbix packages. Then add the repository to the system, which is required packages for the Zabbix agent<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For Ubuntu 20.04<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ wget&nbsp; &nbsp; https:\/\/repo.zabbix.com\/zabbix\/5.0\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_5.0-1+focal_all.deb<br>$ sudo dpkg -i zabbix-release_5.0-1+focal&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>For Ubuntu 18.04 (Bionic):<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ wget https:\/\/repo.zabbix.com\/zabbix\/4.0\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_4.0-3+bionic_all.deb<br>$ sudo dpkg -i zabbix-release_4.0-3+bionic_all.deb<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>For Ubuntu 16.04 (Xenial)<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ 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<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">&nbsp;<strong>Step 2 \u2013 Install Zabbix Agent on Ubuntu<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Before installing zabbix agent we need to update the system&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ sudo apt update<br>$ sudo apt install zabbix-agent<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3 &#8211; Configuration of Zabbix Agent<br><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">We need to configure Zabbix agent to allow connection from your Zabbix server. Edit Zabbix agent configuration file \/etc\/zabbix\/zabbix_agentd.conf<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ sudo nano \/etc\/zabbix\/zabbix_agentd.conf<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">And update the below settings then save and exit the file<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>#Server=[zabbix server IP]<br>#Hostname=[Hostname of client system ]<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4 \u2013 Manage Zabbix Service<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Now, restart the Zabbix service to apply changes. Also, enable service to auto-start on system boot<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ sudo systemctl restart zabbix-agent<br>$ sudo systemctl enable zabbix-agent<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Zabbix is a monitoring solution for IT infrastructure. We can monitor most of the devices in the network and most [&hellip;]<\/p>\n","protected":false},"author":495,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[956,274,955],"class_list":["post-6793","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-agent","tag-ubuntu","tag-zabbix","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1Lz","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/495"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=6793"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6793\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=6793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=6793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=6793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}