{"id":3904,"date":"2019-08-10T12:28:13","date_gmt":"2019-08-10T09:28:13","guid":{"rendered":"https:\/\/kifarunix.com\/?p=3904"},"modified":"2024-03-12T07:37:12","modified_gmt":"2024-03-12T04:37:12","slug":"install-zabbix-agent-on-debian-10-buster","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-zabbix-agent-on-debian-10-buster\/","title":{"rendered":"Install Zabbix Agent on Debian 10 Buster"},"content":{"rendered":"\n<p>In this guide, we are going to learn how to install Zabbix Agent on Debian 10 Buster for Zabbix monitoring. Before you can continue, you need to setup Zabbix server first. Follow  the links below to install and configure Zabbix server on Debian 10 Buster.<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-zabbix-4-x-from-sources-on-debian-10-buster\/\" target=\"_blank\">Install Zabbix 4.x from Sources on Debian 10 Buster<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-zabbix-server-on-debian-10-buster\/\" target=\"_blank\">Install Zabbix Server from APT on Debian 10 Buster<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing Zabbix Agent on Debian 10 Buster<\/h2>\n\n\n\n<p>Update and upgrade your system packages.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update<\/code><\/pre>\n\n\n\n<p>Download and Install Zabbix Repository<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget https:\/\/repo.zabbix.com\/zabbix\/4.2\/debian\/pool\/main\/z\/zabbix-release\/zabbix-release_4.2-1+buster_all.deb\napt install .\/zabbix-release_4.2-1+buster_all.deb<\/code><\/pre>\n\n\n\n<p>Resynchronize system packages;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update<\/code><\/pre>\n\n\n\n<p>Install Zabbix Agent<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install zabbix-agent<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Configure Zabbix Agent<\/h3>\n\n\n\n<p>Once the installation is done, proceed to configure Zabbix agent in order for it to communicate with Zabbix server for monitoring.<\/p>\n\n\n\n<p>The default zabbix agent configuration file is <strong>\/etc\/zabbix\/zabbix_agentd.conf<\/strong>.<\/p>\n\n\n\n<p>Edit the configuration file and set the Zabbix server IP for both the passive and active checks and Zabbix agent hostname.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim \/etc\/zabbix\/zabbix_agentd.conf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>...\nServer=192.168.43.62             ## IP for Zabbix Server\n...\nServerActive=192.168.43.62        \n...\nHostname=debian10.example.com<\/code><\/pre>\n\n\n\n<p>If UFW is installed and running, allow Zabbix ports for passive checks.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ufw allow 10050\/tcp<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Running Zabbix Agent<\/h3>\n\n\n\n<p>After the installation, Zabbix agent is started and enabled to run on system boot. Hence, you can restart it by running the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart zabbix-agent<\/code><\/pre>\n\n\n\n<p>To check the status;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl status zabbix-agent<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\n\u25cf zabbix-agent.service - Zabbix Agent\n   Loaded: loaded (\/lib\/systemd\/system\/zabbix-agent.service; disabled; vendor preset: enabled)\n   Active: active (running) since Sat 2019-08-10 05:05:32 EDT; 2s ago\n  Process: 3024 ExecStart=\/usr\/sbin\/zabbix_agentd -c $CONFFILE (code=exited, status=0\/SUCCESS)\n Main PID: 3026 (zabbix_agentd)\n    Tasks: 6 (limit: 2348)\n   Memory: 4.1M\n   CGroup: \/system.slice\/zabbix-agent.service\n           \u251c\u25003026 \/usr\/sbin\/zabbix_agentd -c \/etc\/zabbix\/zabbix_agentd.conf\n           \u251c\u25003027 \/usr\/sbin\/zabbix_agentd: collector [idle 1 sec]\n           \u251c\u25003028 \/usr\/sbin\/zabbix_agentd: listener #1 [waiting for connection]\n           \u251c\u25003029 \/usr\/sbin\/zabbix_agentd: listener #2 [waiting for connection]\n           \u251c\u25003030 \/usr\/sbin\/zabbix_agentd: listener #3 [waiting for connection]\n           \u2514\u25003031 \/usr\/sbin\/zabbix_agentd: active checks #1 [idle 1 sec]\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Add Debian 10 Host to Zabbix Server<\/h3>\n\n\n\n<p>The Zabbix agent is installed and running on Debian 10 Buster host. Next add it agent to the Zabbix server for monitoring.<\/p>\n\n\n\n<p>Login to Zabbix server and navigate to <strong>Configuration &gt; Hosts &gt; Create host<\/strong> to add your host.<\/p>\n\n\n\n<p>Configure the Host details like the hostname, visible (if you want), Groups (Linux Servers for example), IP address. Other details are optional.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/zabbix-agent-hosts-details.png\"><img loading=\"lazy\" decoding=\"async\" width=\"849\" height=\"641\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/add-deb10-host.png\" alt=\"Install Zabbix Agent on Debian 10 Buster\" class=\"wp-image-3917\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/add-deb10-host.png 849w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/add-deb10-host-768x580.png 768w\" sizes=\"(max-width: 849px) 100vw, 849px\" \/><\/a><\/figure><\/div>\n\n\n<p>Next, you need to configure host template. Click on <strong>Templates &gt; Link new templates<\/strong>. Click select button and choose <strong>Template OS Linux<\/strong>. Once selected, click the <strong>add<\/strong> button to add the template.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/add-templates.png\"><img loading=\"lazy\" decoding=\"async\" width=\"724\" height=\"318\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/Linux-os-host-template.png\" alt=\"Linux OS Zabbix templates\" class=\"wp-image-3918\" title=\"\"><\/a><\/figure><\/div>\n\n\n<p>When templated is added and linked to your host, it should look like;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/templates-added.png\"><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"330\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/Linux-host-template-added.png\" alt=\"Add Linux OS Zabbix templates\" class=\"wp-image-3919\" title=\"\"><\/a><\/figure><\/div>\n\n\n<p>You can learn more about Zabbix templates on <a href=\"https:\/\/www.zabbix.com\/documentation\/4.2\/manual\/config\/templates\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Zabbix Documentation page (opens in a new tab)\">Zabbix Documentation page<\/a>.<\/p>\n\n\n\n<p>Next, click <strong>Add<\/strong> to add the host to Zabbix server. The list of hosts is then displayed.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/zabbix-host-added.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1353\" height=\"523\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/debian10-host.png\" alt=\"Zabbix Adding Debian 10 Buster host\" class=\"wp-image-3920\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/debian10-host.png 1353w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/debian10-host-768x297.png 768w\" sizes=\"(max-width: 1353px) 100vw, 1353px\" \/><\/a><\/figure><\/div>\n\n\n<p>Your Debian 10 Buster is now added to Zabbix server for monitoring. To check for the data collected from the host, click <strong>Monitoring &gt; Latest data<\/strong>. Select the host and click <strong>Apply<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/host-data.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1342\" height=\"617\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/debian10-latest-data.png\" alt=\"Zabbix latest host data\" class=\"wp-image-3921\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/debian10-latest-data.png 1342w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/debian10-latest-data-768x353.png 768w\" sizes=\"(max-width: 1342px) 100vw, 1342px\" \/><\/a><\/figure><\/div>\n\n\n<p>You can also check the data graphs. Click <strong>Monitoring &gt; Graphs &gt; Group <\/strong>(Linux Servers)<strong> &gt; Graph <\/strong>(say, CPU Load)<strong> &gt; Host <\/strong>(centos7.example.com) &gt; <strong>View as<\/strong> (Graph). Select the time range, <strong>last 1 hour<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/zabbix-graphs.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1323\" height=\"571\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/debian10-graph-cpu-load.png\" alt=\"\" class=\"wp-image-3922\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/debian10-graph-cpu-load.png 1323w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/debian10-graph-cpu-load-768x331.png 768w\" sizes=\"(max-width: 1323px) 100vw, 1323px\" \/><\/a><\/figure><\/div>\n\n\n<p>You can also add the graphs to Zabbix Screens. Click on <strong>Screens<\/strong> &gt; <strong>Edit Screens<\/strong>. Click the plus (<strong>+<\/strong>) on wherever you want to add your graph and click <strong>change<\/strong>. Screen configuration wizard opens up. Choose the graph to add to your screen, for example, CPU Load.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/screen-setting.png\"><img loading=\"lazy\" decoding=\"async\" width=\"536\" height=\"425\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/screen-data-confg.png\" alt=\"\" class=\"wp-image-3923\" title=\"\"><\/a><\/figure><\/div>\n\n\n<p>You can leave other settings as default and click Add to create the graph. You can add as many resources to your screen as possible.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/screens.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1326\" height=\"646\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/zabbix-screens-1.png\" alt=\"\" class=\"wp-image-3924\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/zabbix-screens-1.png 1326w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/zabbix-screens-1-768x374.png 768w\" sizes=\"(max-width: 1326px) 100vw, 1326px\" \/><\/a><\/figure><\/div>\n\n\n<p>Well, that is just it on installing Zabbix Agent on Debian 10 Buster for Zabbix monitoring.<\/p>\n\n\n\n<p>Related Tutorials;<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-zabbix-agent-on-centos-7-for-zabbix-monitoring\/\" target=\"_blank\">Install Zabbix Agent on CentOS 7 for Zabbix Monitoring<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-zabbix-agent-on-freebsd-12\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install Zabbix Agent on FreeBSD 12<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/how-to-install-nagios-plugins-and-nrpe-agents-on-centos-7-rhel-7-fedora-29\/\" target=\"_blank\">How to Install Nagios Plugins and NRPE agents on CentOS 7\/RHEL 7\/Fedora 29<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/how-to-install-nagios-plugins-from-source-rhel-centos-oracle-linux\/\" target=\"_blank\">How to Install Nagios Plugins From Source RHEL\/CentOS\/Oracle Linux<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-elastic-stack-7-on-fedora-30-fedora-29-centos-7\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install Elastic Stack 7 on Fedora 30\/Fedora 29\/CentOS 7<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we are going to learn how to install Zabbix Agent on Debian 10 Buster for Zabbix monitoring. Before you can continue, you<\/p>\n","protected":false},"author":1,"featured_media":12698,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[72,121,261],"tags":[1039,5137,1052,1053,1062],"class_list":["post-3904","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-monitoring","category-howtos","category-zabbix","tag-debian-10-buster","tag-install-zabbix-agent-on-debian-10-buster","tag-zabbix","tag-zabbix-4-2","tag-zabbix-agent","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\/3904"}],"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=3904"}],"version-history":[{"count":4,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3904\/revisions"}],"predecessor-version":[{"id":21181,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3904\/revisions\/21181"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/12698"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=3904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=3904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=3904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}