{"id":2950,"date":"2022-06-15T22:16:39","date_gmt":"2022-06-16T02:16:39","guid":{"rendered":"https:\/\/dft.wiki\/?p=2950"},"modified":"2026-06-08T17:33:50","modified_gmt":"2026-06-08T21:33:50","slug":"setting-up-a-zabbix-monitoring-server-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=2950","title":{"rendered":"Setting Up a Zabbix Monitoring Server on Ubuntu"},"content":{"rendered":"<p><strong>Zabbix<\/strong> is a powerful open-source infrastructure monitoring tool capable of monitoring servers, applications, services, network devices, virtual machines, cloud services, and much more.<\/p>\n<p>It is often compared to other monitoring solutions such as <strong>Nagios<\/strong>, but with a much easier and more straightforward setup process.<\/p>\n<hr \/>\n<p><strong>SYSTEM INSTALLATION<\/strong><\/p>\n<pre>wget https:\/\/repo.zabbix.com\/zabbix\/6.0\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_<strong>6.0-1+ubuntu20.04<\/strong>_all.deb\r\nsudo dpkg -i zabbix-release_<strong>6.0-1+ubuntu20.04<\/strong>_all.deb\r\nsudo apt update &amp;&amp; sudo apt upgrade -y\r\nsudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent -y<\/pre>\n<p>Connect to the MySQL server:<\/p>\n<pre>sudo apt install mysql-server -y\r\nsudo mysql -u root<\/pre>\n<p>Create the database:<\/p>\n<pre>mysql&gt; create database <strong>zabbix_db<\/strong> character set utf8mb4 collate utf8mb4_bin;\r\nmysql&gt; create user <strong>zabbix_user<\/strong>@localhost identified by '<strong>STRONGPASSWORD<\/strong>';\r\nmysql&gt; grant all privileges on <strong>zabbix_db<\/strong>.* to <strong>zabbix_user<\/strong>@localhost;\r\nmysql&gt; flush privileges;\r\nmysql&gt; quit;<\/pre>\n<p>Import the database schema:<\/p>\n<pre>zcat \/usr\/share\/doc\/zabbix-sql-scripts\/mysql\/server.sql.gz | mysql -u<strong>zabbix_user<\/strong> -p<strong>STRONGPASSWORD<\/strong> zabbix_db<\/pre>\n<p>Restart the services and enable them on boot:<\/p>\n<pre>sudo systemctl restart zabbix-server zabbix-agent apache2\r\nsudo systemctl enable zabbix-server zabbix-agent apache2<\/pre>\n<p>Get the IP address of the server:<\/p>\n<pre>ip a<\/pre>\n<hr \/>\n<p><strong>ZABBIX INSTALLATION<\/strong><\/p>\n<p>Using the Zabbix server&#8217;s IP address, navigate to <strong>http:\/\/192.168.1.133\/zabbix<\/strong> (replace with your server&#8217;s IP).<\/p>\n<p><a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-48-18.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2999\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-48-18-300x178.png\" alt=\"\" width=\"300\" height=\"178\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-48-18-300x178.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-48-18-768x455.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-48-18.png 855w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3000\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-48-34-300x179.png\" alt=\"\" width=\"300\" height=\"179\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-48-34-300x179.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-48-34-768x457.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-48-34.png 853w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3001\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-49-16-300x178.png\" alt=\"\" width=\"300\" height=\"178\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-49-16-300x178.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-49-16-768x456.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-49-16.png 855w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3002\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-50-21-300x178.png\" alt=\"\" width=\"300\" height=\"178\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-50-21-300x178.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-50-21-768x456.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-50-21.png 853w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3003\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-50-31-300x178.png\" alt=\"\" width=\"300\" height=\"178\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-50-31-300x178.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-50-31-768x456.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-50-31.png 854w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3004\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-50-40-300x178.png\" alt=\"\" width=\"300\" height=\"178\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-50-40-300x178.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-50-40-768x456.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-50-40.png 854w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Log in with the default credentials: username <strong>Admin<\/strong> and password <strong>zabbix<\/strong>.<\/p>\n<p><a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-51-16.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3005 aligncenter\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-51-16-292x300.png\" alt=\"\" width=\"292\" height=\"300\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-51-16-292x300.png 292w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-51-16.png 370w\" sizes=\"auto, (max-width: 292px) 100vw, 292px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-52-08.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3006 size-large\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-52-08-1024x376.png\" alt=\"\" width=\"640\" height=\"235\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-52-08-1024x376.png 1024w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-52-08-300x110.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-52-08-768x282.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-52-08-1536x564.png 1536w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_21-52-08.png 1720w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<hr \/>\n<p><strong>ADDING HOSTS TO THE SERVER<\/strong><\/p>\n<p>By default, communication works as follows:<\/p>\n<ul>\n<li>Agent (port <strong>10050<\/strong>) &lt;&#8211;&gt; Server (port <strong>10051<\/strong>)<\/li>\n<li>The <strong>hostname<\/strong> identifies the host agent to the server.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_22-31-49.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3007 size-full\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_22-31-49.png\" alt=\"\" width=\"1720\" height=\"586\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_22-31-49.png 1720w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_22-31-49-300x102.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_22-31-49-1024x349.png 1024w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_22-31-49-768x262.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-14_22-31-49-1536x523.png 1536w\" sizes=\"auto, (max-width: 1720px) 100vw, 1720px\" \/><\/a><\/p>\n<p>Adding a <strong>Windows<\/strong> host to the inventory:<\/p>\n<p><a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-03-23.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3013 size-full\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-03-23.png\" alt=\"\" width=\"1047\" height=\"653\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-03-23.png 1047w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-03-23-300x187.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-03-23-1024x639.png 1024w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-03-23-768x479.png 768w\" sizes=\"auto, (max-width: 1047px) 100vw, 1047px\" \/><\/a><\/p>\n<p>Adding a <strong>Linux<\/strong> host to the inventory:<\/p>\n<p><a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-18-01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3012 size-full\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-18-01.png\" alt=\"\" width=\"1047\" height=\"655\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-18-01.png 1047w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-18-01-300x188.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-18-01-1024x641.png 1024w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-18-01-768x480.png 768w\" sizes=\"auto, (max-width: 1047px) 100vw, 1047px\" \/><\/a><\/p>\n<hr \/>\n<p><strong>INSTALLING THE AGENT ON THE HOSTS<\/strong><\/p>\n<ul>\n<li>Downloading the agent for <strong>Windows<\/strong>:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-45-54.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3024\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-45-54.png\" alt=\"\" width=\"1245\" height=\"1409\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-45-54.png 1245w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-45-54-265x300.png 265w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-45-54-905x1024.png 905w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-45-54-768x869.png 768w\" sizes=\"auto, (max-width: 1245px) 100vw, 1245px\" \/><\/a><\/p>\n<ul>\n<li>Installing the agent on <strong>Windows<\/strong>:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-10-21.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3015 size-medium\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-10-21-300x224.png\" alt=\"\" width=\"300\" height=\"224\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-10-21-300x224.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-10-21.png 414w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-11-25.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3016 size-medium\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-11-25-300x233.png\" alt=\"\" width=\"300\" height=\"233\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-11-25-300x233.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-11-25.png 499w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-11-41.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3017 size-medium\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-11-41-300x233.png\" alt=\"\" width=\"300\" height=\"233\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-11-41-300x233.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-11-41.png 499w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-12-02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3018\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-12-02-300x248.png\" alt=\"\" width=\"300\" height=\"248\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-12-02-300x248.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-12-02.png 500w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-12-29.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3019\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-12-29-300x233.png\" alt=\"\" width=\"300\" height=\"233\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-12-29-300x233.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-12-29.png 498w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-12-59.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3020\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-12-59-300x233.png\" alt=\"\" width=\"300\" height=\"233\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-12-59-300x233.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-12-59.png 499w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-13-58.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3021\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-13-58-300x232.png\" alt=\"\" width=\"300\" height=\"232\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-13-58-300x232.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-13-58.png 501w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-14-15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3022\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-14-15-300x234.png\" alt=\"\" width=\"300\" height=\"234\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-14-15-300x234.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-14-15.png 497w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-08-01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3023\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-08-01.png\" alt=\"\" width=\"1722\" height=\"627\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-08-01.png 1722w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-08-01-300x109.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-08-01-1024x373.png 1024w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-08-01-768x280.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_21-08-01-1536x559.png 1536w\" sizes=\"auto, (max-width: 1722px) 100vw, 1722px\" \/><\/a><\/p>\n<ul>\n<li>Installing the agent on <strong>Linux<\/strong>:\n<ul>\n<li><strong>CentOS 7<\/strong>\n<ul>\n<li>\n<pre>sudo yum update -y\r\nsudo rpm -Uvh https:\/\/repo.zabbix.com\/zabbix\/4.2\/rhel\/7\/x86_64\/zabbix-agent-<strong>4.2.8-1.el7<\/strong>.x86_64.rpm\r\nsudo yum clean all\r\nsudo yum install zabbix-agent nano -y\r\nsudo nano \/etc\/zabbix\/zabbix_agentd.conf<\/pre>\n<\/li>\n<li>\n<pre>...\r\nServer=<strong>192.168.1.133<\/strong>\r\nServerActive=<strong>192.168.1.133<\/strong>\r\nHostname=<strong>CentOS7<\/strong>\r\n...<\/pre>\n<\/li>\n<li>\n<pre>sudo firewall-cmd --permanent --zone=public --add-rich-rule='rule family=\"ipv4\" source address=\"<strong>192.168.1.133<\/strong>\/32\" port protocol=\"tcp\" port=\"10050\" accept'\r\nsudo firewall-cmd --reload\r\nsudo systemctl start zabbix-agent\r\nsudo systemctl enable zabbix-agent<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>Ubuntu 20.04<\/strong>\n<ul>\n<li>\n<pre>sudo apt update &amp;&amp; sudo apt upgrade -y\r\nwget https:\/\/repo.zabbix.com\/zabbix\/5.0\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_<strong>5.0-1+focal<\/strong>_all.deb\r\nsudo dpkg -i zabbix-release_<strong>5.0-1+focal<\/strong>_all.deb\r\nsudo apt update &amp;&amp; sudo apt install zabbix-agent nano -y\r\nsudo nano \/etc\/zabbix\/zabbix_agentd.conf<\/pre>\n<\/li>\n<li>\n<pre>...\r\nServer=<strong>192.168.1.133<\/strong>\r\nServerActive=<strong>192.168.1.133<\/strong>\r\nHostname=<strong>Ubuntu20<\/strong>\r\n...<\/pre>\n<\/li>\n<li>\n<pre>sudo ufw allow proto tcp from <strong>192.168.1.133<\/strong> to any 10050\/tcp\r\nsudo systemctl restart zabbix-agent\r\nsudo systemctl enable zabbix-agent<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>Ubuntu 22.04<\/strong>\n<ul>\n<li>\n<pre>sudo apt update &amp;&amp; sudo apt upgrade -y\r\nwget https:\/\/repo.zabbix.com\/zabbix\/5.0\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_<strong>5.0-2+ubuntu22.04<\/strong>_all.deb\r\nsudo dpkg -i zabbix-release_<strong>5.0-2+ubuntu22.04<\/strong>_all.deb\r\nsudo apt update &amp;&amp; sudo apt install zabbix-agent nano -y\r\nsudo nano \/etc\/zabbix\/zabbix_agentd.conf<\/pre>\n<\/li>\n<li>\n<pre>...\r\nServer=<strong>192.168.1.133<\/strong>\r\nServerActive=<strong>192.168.1.133<\/strong>\r\nHostname=<strong>Ubuntu22<\/strong>\r\n...<\/pre>\n<\/li>\n<li>\n<pre>sudo ufw allow proto tcp from <strong>192.168.1.133<\/strong> to any 10050\/tcp\r\nsudo systemctl restart zabbix-agent\r\nsudo systemctl enable zabbix-agent<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Within a few minutes, the host should appear as active:<\/p>\n<p><a href=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_22-14-27.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3027\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_22-14-27.png\" alt=\"\" width=\"1722\" height=\"631\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_22-14-27.png 1722w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_22-14-27-300x110.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_22-14-27-1024x375.png 1024w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_22-14-27-768x281.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2022\/06\/Screenshot_2022-06-15_22-14-27-1536x563.png 1536w\" sizes=\"auto, (max-width: 1722px) 100vw, 1722px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Zabbix is a powerful open-source infrastructure monitoring tool capable of monitoring servers, applications, services, network [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2950","post","type-post","status-publish","format-standard","hentry","category-ccna"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/2950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2950"}],"version-history":[{"count":12,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/2950\/revisions"}],"predecessor-version":[{"id":5671,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/2950\/revisions\/5671"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}