{"id":9396,"date":"2020-10-29T16:33:32","date_gmt":"2020-10-29T13:33:32","guid":{"rendered":"https:\/\/unihost.com\/help\/?p=9396"},"modified":"2023-02-23T21:45:19","modified_gmt":"2023-02-23T18:45:19","slug":"how-to-install-zabbix-agent","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/","title":{"rendered":"How to install Zabbix Agent"},"content":{"rendered":"<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">In this guide, I will show you how to install Zabbix Agent on Linux.<!--more--><\/span><\/p>\n<h3 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Ubuntu<\/span><\/h3>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">wget https:\/\/repo.zabbix.com\/zabbix\/5.0\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_5.0-1+$(lsb_release -sc)_all.deb<\/span><br><br><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">dpkg -i zabbix-release_5.0-1+$(lsb_release -sc)_all.deb<\/span><br><br><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">apt update<\/span><br><br><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">apt install zabbix-agent<\/span><\/pre>\n<h3 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">RHEL &amp; Centos<\/span><\/h3>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">rpm -Uvh https:\/\/repo.zabbix.com\/zabbix\/5.0\/rhel\/$(rpm -E %{rhel})\/x86_64\/zabbix-release-5.0-1.el$(rpm -E %{rhel}).noarch.rpm<\/span><br><br><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">yum&nbsp; install zabbix-agent<\/span><\/pre>\n<h3 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Debian<\/span><\/h3>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">wget https:\/\/repo.zabbix.com\/zabbix\/5.0\/debian\/pool\/main\/z\/zabbix-release\/zabbix-release_5.0-1+$(lsb_release -sc)_all.deb<\/span><br><br><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">dpkg -i zabbix-release_5.0-1+$(lsb_release -sc)_all.deb<\/span><br><br><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">apt update<\/span><br><br><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">apt install zabbix-agent<\/span><\/pre>\n<h3 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Configure Zabbix agent<\/span><\/h3>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Now we just need to configure the Zabbix agent by adding Zabbix server IP to the configuration file <span style=\"color: #ff0000;\">\/etc\/zabbix\/zabbix_agentd.conf<\/span><\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Server=zabbix.unihost.com<\/span><br><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Hostname=server.hostname<\/span><\/pre>\n<h3 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Configure firewall<\/span><\/h3>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Zabbix agent, that is running in passive mode, must be able to respond to the Zabbix server inquiries over TCP port 10050.<\/span><\/p>\n<h3 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Iptables<\/span><\/h3>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">iptables -I INPUT -p tcp --dport 10050 -j ACCEPT<\/span><\/pre>\n<h3 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">RedHat \/ Centos<\/span><\/h3>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">firewall-cmd --permanent --zone=public --add-port=10050\/tcp<\/span><br><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">firewall-cmd --reload<\/span><\/pre>\n<h3 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Ubuntu \/ Debian <\/span><\/h3>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">ufw allow 10050\/tcp<\/span><\/pre>\n<h3 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Start Zabbix agent<\/span><\/h3>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">systemctl enable --now zabbix-agent<\/span><\/pre>\n\n\n<p> <p>\u00a0<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, I will show you how to install Zabbix Agent on Linux.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[158],"tags":[654,655],"class_list":["post-9396","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers","tag-zabbix","tag-zabbix-agent"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install Zabbix Agent - Unihost.FAQ<\/title>\n<meta name=\"description\" content=\"In this guide, I will show you how to install Zabbix Agent on Linux. Configure Zabbix agent it&#039;s easy. - Unihost.FAQ\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install Zabbix Agent - Unihost.FAQ\" \/>\n<meta property=\"og:description\" content=\"In this guide, I will show you how to install Zabbix Agent on Linux. Configure Zabbix agent it&#039;s easy. - Unihost.FAQ\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-29T13:33:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-23T18:45:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png\" \/>\n\t<meta property=\"og:image:width\" content=\"250\" \/>\n\t<meta property=\"og:image:height\" content=\"141\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"How to install Zabbix Agent\",\"datePublished\":\"2020-10-29T13:33:32+00:00\",\"dateModified\":\"2023-02-23T18:45:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/\"},\"wordCount\":81,\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"keywords\":[\"zabbix\",\"zabbix-agent\"],\"articleSection\":[\"02. Dedicated servers\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/\",\"url\":\"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/\",\"name\":\"How to install Zabbix Agent - Unihost.FAQ\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/#website\"},\"datePublished\":\"2020-10-29T13:33:32+00:00\",\"dateModified\":\"2023-02-23T18:45:19+00:00\",\"description\":\"In this guide, I will show you how to install Zabbix Agent on Linux. Configure Zabbix agent it's easy. - Unihost.FAQ\",\"breadcrumb\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\/\/unihost.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\/\/unihost.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to install Zabbix Agent\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unihost.com\/help\/#website\",\"url\":\"https:\/\/unihost.com\/help\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unihost.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/unihost.com\/help\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\/\/unihost.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/unihost\/\",\"https:\/\/x.com\/unihost\",\"https:\/\/www.instagram.com\/unihost\/?hl=en\",\"https:\/\/www.linkedin.com\/company\/unihost-com\",\"https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\/\/unihost.com\/\"],\"url\":\"https:\/\/unihost.com\/help\/author\/support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install Zabbix Agent - Unihost.FAQ","description":"In this guide, I will show you how to install Zabbix Agent on Linux. Configure Zabbix agent it's easy. - Unihost.FAQ","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/","og_locale":"en_US","og_type":"article","og_title":"How to install Zabbix Agent - Unihost.FAQ","og_description":"In this guide, I will show you how to install Zabbix Agent on Linux. Configure Zabbix agent it's easy. - Unihost.FAQ","og_url":"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2020-10-29T13:33:32+00:00","article_modified_time":"2023-02-23T18:45:19+00:00","og_image":[{"width":250,"height":141,"url":"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png","type":"image\/png"}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"How to install Zabbix Agent","datePublished":"2020-10-29T13:33:32+00:00","dateModified":"2023-02-23T18:45:19+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/"},"wordCount":81,"publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"keywords":["zabbix","zabbix-agent"],"articleSection":["02. Dedicated servers"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/","url":"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/","name":"How to install Zabbix Agent - Unihost.FAQ","isPartOf":{"@id":"https:\/\/unihost.com\/help\/#website"},"datePublished":"2020-10-29T13:33:32+00:00","dateModified":"2023-02-23T18:45:19+00:00","description":"In this guide, I will show you how to install Zabbix Agent on Linux. Configure Zabbix agent it's easy. - Unihost.FAQ","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/how-to-install-zabbix-agent\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/"},{"@type":"ListItem","position":3,"name":"How to install Zabbix Agent"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/#website","url":"https:\/\/unihost.com\/help\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/9396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/comments?post=9396"}],"version-history":[{"count":4,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/9396\/revisions"}],"predecessor-version":[{"id":10546,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/9396\/revisions\/10546"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/media?parent=9396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/categories?post=9396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/tags?post=9396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}