{"id":12759,"date":"2022-05-15T11:22:41","date_gmt":"2022-05-15T08:22:41","guid":{"rendered":"https:\/\/kifarunix.com\/?p=12759"},"modified":"2024-03-09T13:00:30","modified_gmt":"2024-03-09T10:00:30","slug":"add-hosts-to-zabbix-server-for-monitoring","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/add-hosts-to-zabbix-server-for-monitoring\/","title":{"rendered":"Add Hosts to Zabbix Server for Monitoring"},"content":{"rendered":"\n<p>This guide will take you through how you can be able to add hosts to Zabbix Server for monitoring. <a href=\"https:\/\/www.zabbix.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Zabbix<\/a> can be used to monitor literally anything right from cloud, network, servers, services, applications&#8230;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Zabbix Agents on Remote Hosts to Monitor<\/h2>\n\n\n\n<p>First off, install Zabbix agents on the remote hosts to be monitored.<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-zabbix-agent-on-ubuntu-debian\/\">Install Zabbix Agent on Ubuntu <\/a><a href=\"https:\/\/kifarunix.com\/install-zabbix-agent-on-ubuntu-debian\/\" target=\"_blank\" rel=\"noreferrer noopener\">22.04<\/a><a href=\"https:\/\/kifarunix.com\/install-zabbix-agent-on-ubuntu-debian\/\">\/Debian 11<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-zabbix-agent-on-windows-systems\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install Zabbix Agent on Windows Systems<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add Hosts to Zabbix Server for Monitoring<\/h2>\n\n\n\n<p>So how can you add remote host systems to Zabbix server for monitoring?<\/p>\n\n\n\n<p>In this tutorial, we will be adding Linux and Windows systems into the Zabbix server for monitoring.<\/p>\n\n\n\n<p>To add hosts to Zabbix server;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create a host group. Hosts added to Zabbix for monitoring can be organized based on the functionality into host groups. For example, Linux systems can be put together under Linux Servers group, Windows systems can be grouped into Windows systems group.\n<ul class=\"wp-block-list\">\n<li>To create Zabbix host group (<strong><em>if it doesn&#8217;t already exists<\/em><\/strong>), navigate to <strong>Configuration &gt; Host groups &gt; Create host group<\/strong>.<\/li>\n\n\n\n<li>Enter the name of the group;<\/li>\n\n\n\n<li>Click <strong>Add<\/strong> to create the group.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/create-host-group.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1166\" height=\"506\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/create-host-group.png\" alt=\"Add Hosts to Zabbix Server for Monitoring\" class=\"wp-image-12778\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/create-host-group.png?v=1652602520 1166w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/create-host-group-768x333.png?v=1652602520 768w\" sizes=\"(max-width: 1166px) 100vw, 1166px\" \/><\/figure><\/a><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Next, add the host to Zabbix Server by navigating to  <strong>Configuration &gt; Hosts &gt; Create host<\/strong>. Enter the host details.<ul><li>Hostname<\/li><li>Select <a href=\"https:\/\/www.zabbix.com\/documentation\/6.0\/en\/manual\/config\/templates\" target=\"_blank\" rel=\"noreferrer noopener\">Templates<\/a> for the hosts such as Operating System, Modules etc<ul><li>You can also be able to add templates to the Host Group to make it easy to apply it to members of the group.<\/li><li>Note the templates selected for my agents;<ul><li>Linux: Linux by Zabbix Agent, ICMP Ping, SSH Service, Zabbix Agent.<\/li><li>Windows: Windows by Zabbix Agent, ICMP Ping, Zabbix Agent<\/li><\/ul><\/li><\/ul><\/li><\/ul>\n<ul class=\"wp-block-list\">\n<li>Groups, e.g Linux servers<\/li>\n\n\n\n<li>Interfaces > Agent;\n<ul class=\"wp-block-list\">\n<li>Enter the IP address, DNS name if any<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Other details are optional<\/li>\n\n\n\n<li>Click <strong>Add<\/strong> to add the host.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Linux;<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-add-linux-host.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1671\" height=\"867\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-add-linux-host.png\" alt=\"Add Hosts to Zabbix Server for Monitoring\" class=\"wp-image-12779\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-add-linux-host.png?v=1652602557 1671w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-add-linux-host-768x398.png?v=1652602557 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-add-linux-host-1536x797.png?v=1652602557 1536w\" sizes=\"(max-width: 1671px) 100vw, 1671px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>Windows;<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-add-windows-host.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1728\" height=\"880\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-add-windows-host.png\" alt=\"Add Hosts to Zabbix Server for Monitoring\" class=\"wp-image-12780\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-add-windows-host.png?v=1652602590 1728w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-add-windows-host-768x391.png?v=1652602590 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-add-windows-host-1536x782.png?v=1652602590 1536w\" sizes=\"(max-width: 1728px) 100vw, 1728px\" \/><\/figure><\/a><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Follow the same procedure to add more hosts. Here is a summary of my hosts added to Zabbix server for monitoring.<\/li>\n<\/ul>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-hosts-summary.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1795\" height=\"780\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-hosts-summary.png\" alt=\"Add Hosts to Zabbix Server for Monitoring\" class=\"wp-image-12781\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-hosts-summary.png?v=1652602622 1795w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-hosts-summary-768x334.png?v=1652602622 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-hosts-summary-1536x667.png?v=1652602622 1536w\" sizes=\"(max-width: 1795px) 100vw, 1795px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>If the connection between the Zabbix server and Zabbix agents is fine, you should see the availability status change to green.<\/p>\n\n\n\n<p>Please note that Availability icon is only related to passive checks, hence why we selected &#8220;passive&#8221; templates above. Any template with <strong>Active<\/strong> means active checks.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote td_pull_quote td_pull_center is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Active vs Passive agent connection<\/p>\n\n\n\n<p>If you use the Zabbix agent in the passive mode, it means that the poller (internal server process) connects to the agent on&nbsp;port 10050\/TCP and polls for a certain value (e.g., host CPU load). The poller waits until the agent on the host responds with the value. Then the server gets the value back, and the connection closes.<\/p>\n\n\n\n<p>In the active mode, all data processing is performed&nbsp;on the agent, without the interference of pollers. However, the agent must know what metrics should be monitored, and that is why the agent connects to the trapper port&nbsp; 10051\/TCP of the server once every two minutes (by default). The agent requests the information about the items, and then performs the monitoring on the host and pushes the data to the server via the same TCP port.<\/p>\n<\/blockquote>\n\n\n\n<p>From the Zabbix dashboards, you can see we have four hosts available now, including server itself.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-host-status.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1888\" height=\"874\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-host-status.png\" alt=\"Add Hosts to Zabbix Server for Monitoring\" class=\"wp-image-12782\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-host-status.png?v=1652602652 1888w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-host-status-768x356.png?v=1652602652 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-host-status-1536x711.png?v=1652602652 1536w\" sizes=\"(max-width: 1888px) 100vw, 1888px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>Zabbix Hosts; Monitoring &gt; Hosts<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-hosts.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1905\" height=\"728\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-hosts.png\" alt=\"\" class=\"wp-image-12783\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-hosts.png?v=1652602684 1905w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-hosts-768x293.png?v=1652602684 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-hosts-1536x587.png?v=1652602684 1536w\" sizes=\"(max-width: 1905px) 100vw, 1905px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>You can check the Graphs and Dashboards against each host for various metrics analysis.<\/p>\n\n\n\n<p>Sample system performance dashbaord.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/sample-zabbix-agent-system-performance-dashboard.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1887\" height=\"896\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/sample-zabbix-agent-system-performance-dashboard.png\" alt=\"Add Hosts to Zabbix Server for Monitoring\" class=\"wp-image-12784\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/sample-zabbix-agent-system-performance-dashboard.png?v=1652602710 1887w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/sample-zabbix-agent-system-performance-dashboard-768x365.png?v=1652602710 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/sample-zabbix-agent-system-performance-dashboard-1536x729.png?v=1652602710 1536w\" sizes=\"(max-width: 1887px) 100vw, 1887px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>And that is how you can basically add remote hosts to Zabbix Server for Monitoring.<\/p>\n\n\n\n<p>Read more on <a href=\"https:\/\/www.zabbix.com\/documentation\/current\/en\/manual\/web_interface\/frontend_sections\/configuration\/hosts\" target=\"_blank\" rel=\"noreferrer noopener\">Zabbix Hosts documentation page<\/a>.<\/p>\n\n\n\n<p>Other Tutorials<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/enroll-osquery-hosts-on-fleet-manager\/\" target=\"_blank\" rel=\"noreferrer noopener\">Enroll Osquery Hosts on Fleet Manager<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/add-hosts-to-nagios-server-for-monitoring\/\" target=\"_blank\" rel=\"noreferrer noopener\">Add Hosts to Nagios Server For Monitoring<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide will take you through how you can be able to add hosts to Zabbix Server for monitoring. Zabbix can be used to monitor<\/p>\n","protected":false},"author":1,"featured_media":12691,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,72],"tags":[5173,5175,5176,5174,5178,5177],"class_list":["post-12759","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-monitoring","tag-add-hosts-to-zabbix-server-for-monitoring","tag-monitor-linux-hosts-using-zabbix","tag-monitor-windows-with-zabbix","tag-zabbix-add-hosts","tag-zabbix-linux-host","tag-zabbix-windows","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/12759"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=12759"}],"version-history":[{"count":5,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/12759\/revisions"}],"predecessor-version":[{"id":20509,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/12759\/revisions\/20509"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/12691"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=12759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=12759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=12759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}