{"id":2113,"date":"2025-12-09T19:04:02","date_gmt":"2025-12-09T18:04:02","guid":{"rendered":"https:\/\/eonea.pl\/?p=2113"},"modified":"2025-12-09T19:31:24","modified_gmt":"2025-12-09T18:31:24","slug":"zabbix-instalacja-i-konfiguracja","status":"publish","type":"post","link":"https:\/\/eonea.pl\/en\/zabbix-instalacja-i-konfiguracja\/","title":{"rendered":"Zabbix \u2013 Installation and configuration"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"2113\" class=\"elementor elementor-2113\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6933d86 e-flex e-con-boxed e-con e-parent\" data-id=\"6933d86\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-23232fb elementor-widget elementor-widget-video\" data-id=\"23232fb\" data-element_type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/youtu.be\\\/LpwaxN2mrVY&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5878265 elementor-widget elementor-widget-heading\" data-id=\"5878265\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Monitoring IT infrastructure with Zabbix \u2013 step-by-step installation and initial configuration<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b274da9 elementor-widget elementor-widget-text-editor\" data-id=\"b274da9\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Every IT infrastructure\u2014whether it consists of a few servers or an extensive server room with switches, arrays, and multiple services\u2014requires constant monitoring. Monitoring is not only used to respond to failures, but above all to prevent problems before users notice them. One of the most comprehensive and free tools for monitoring IT environments is Zabbix. In this article, we show you what Zabbix is, what its architecture looks like, and how to launch a monitoring system using containers and add the first hosts to it in practice.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-18e9f7f elementor-widget elementor-widget-text-editor\" data-id=\"18e9f7f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Zabbix is enterprise-class software for monitoring IT infrastructure, which allows you to collect data from servers, network devices, operating systems, and applications. All parameters that can be represented numerically can be monitored: CPU load, RAM usage, free disk space, network traffic, temperatures, and even humidity in the server room. The collected data is stored in a database and can be presented in graphs, dashboards, and used to generate alerts.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-4d41c17 e-flex e-con-boxed e-con e-parent\" data-id=\"4d41c17\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-48a51ab elementor-widget elementor-widget-text-editor\" data-id=\"48a51ab\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The Zabbix architecture consists of several main components. The user interface is Zabbix Web, a web application accessible via a browser. Zabbix Server runs in the background, responsible for data processing, performing checks, and triggering alarms. A database is required to store information, most often MySQL or PostgreSQL. In distributed environments, Zabbix Proxy can also be used to collect data locally and send it to a central server. A Zabbix agent is installed on monitored machines, or the SNMP protocol is used for network devices.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1e8f404 elementor-widget elementor-widget-text-editor\" data-id=\"1e8f404\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>It is best to start the installation by running Zabbix in Docker. Using Docker Compose allows you to quickly set up the entire infrastructure without manually installing the server, database, and web frontend. Just download the official \"zabbix-docker\" repository, select the appropriate version (in this case 7.4), and run the containers using a single compose file. The configuration in YAML files allows you to select the database, system image (e.g., Alpine Linux, Ubuntu), server version, and how to run the services. After starting the containers, the system will automatically create a directory structure in which the database data and configuration are stored \u2013 these directories must be included in backups, as they contain the entire measurement history and server settings.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1433cfa elementor-widget elementor-widget-text-editor\" data-id=\"1433cfa\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>An important issue when starting up for the first time is to change the default database and administrator account passwords. Leaving the factory settings in place poses a serious security risk, especially if the interface is accessible from the network. In Docker environment files, you can set your own passwords and usernames before starting the containers, which significantly increases the level of security.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7a2dcaf elementor-widget elementor-widget-text-editor\" data-id=\"7a2dcaf\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>After starting the server, the next step is to install agents on the monitored systems. On Windows, the process is very simple \u2013 just download the installer, enter the IP address of the Zabbix server, and complete the installation. During installation, an entry is also created in the system firewall, which allows communication with the agent. It is worth noting that by default this rule is sometimes too broad and it is a good idea to restrict it to the IP address of the monitoring server. On Linux systems, the agent is installed via the package repository. After installation, set the server address in the configuration file, start the service, and set it to start automatically with the system.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7fb035b elementor-widget elementor-widget-text-editor\" data-id=\"7fb035b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>On the server side, hosts are configured via the administration panel. Adding a new machine involves creating a host, assigning an IP address, and applying the appropriate template. Templates are at the heart of Zabbix. They contain a set of rules, metrics, graphs, and alarm thresholds that are automatically assigned to a new host. This means that after adding a system to monitoring, the first graphs of CPU, memory, disk space, and network load usage appear within minutes.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1577df0 elementor-widget elementor-widget-text-editor\" data-id=\"1577df0\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Zabbix automatically generates dashboards that clearly display the most important information about the status of your systems. You can view the current server load, detected problems, and trends over time. In addition, a detailed list of recent measurements is available, allowing you to analyze system behavior in detail when troubleshooting failures.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-afe3685 elementor-widget elementor-widget-text-editor\" data-id=\"afe3685\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The system also offers a mechanism for automatic detection of resources such as network interfaces and disk partitions. If a new disk or network card appears on the monitored server, Zabbix can add them to monitoring, generate graphs, and configure alerts on its own. This saves a lot of time in larger environments where manual configuration would be inefficient.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-59e3a36 elementor-widget elementor-widget-text-editor\" data-id=\"59e3a36\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>It is worth remembering that Zabbix, despite its enormous capabilities, can be a \"heavy\" tool for the system if configured unwisely. Too many monitored parameters, too frequent checks, and an excess of discovery rules can significantly burden the database and server. Therefore, it is good practice to limit monitoring to metrics that are actually needed and to consciously manage the frequency of data collection.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-932b239 elementor-widget elementor-widget-text-editor\" data-id=\"932b239\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In summary, Zabbix is a powerful, free, and flexible tool that works well in both small and large IT environments. Thanks to containers, it can be launched in a matter of minutes, and its extensive template library allows key systems to be monitored very quickly. When properly configured, Zabbix not only allows you to respond to failures, but above all to prevent them by providing administrators with a complete picture of the infrastructure's status in real time.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8bd22bd elementor-widget elementor-widget-text-editor\" data-id=\"8bd22bd\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Zabbix Infrastructure<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5acaf26 elementor-widget elementor-widget-image\" data-id=\"5acaf26\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"951\" height=\"711\" src=\"https:\/\/eonea.pl\/wp-content\/uploads\/zabbix.drawi_.png\" class=\"attachment-large size-large wp-image-2114\" alt=\"\" srcset=\"https:\/\/eonea.pl\/wp-content\/uploads\/zabbix.drawi_.png 951w, https:\/\/eonea.pl\/wp-content\/uploads\/zabbix.drawi_-768x574.png 768w, https:\/\/eonea.pl\/wp-content\/uploads\/zabbix.drawi_-16x12.png 16w, https:\/\/eonea.pl\/wp-content\/uploads\/zabbix.drawi_-200x150.png 200w\" sizes=\"(max-width: 951px) 100vw, 951px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3b25c10 elementor-widget elementor-widget-text-editor\" data-id=\"3b25c10\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Zabbix server installation<\/strong><\/p><p><a href=\"https:\/\/www.zabbix.com\/documentation\/current\/en\/manual\/installation\/containers\">https:\/\/www.zabbix.com\/documentation\/current\/en\/manual\/installation\/containers<\/a><\/p><p><strong>Download the Zabbix-docekr repository<\/strong><\/p><p>git clone <a href=\"https:\/\/github.com\/zabbix\/zabbix-docker.git\">https:\/\/github.com\/zabbix\/zabbix-docker.git<\/a><\/p><p>\u00a0<\/p><p><strong>Switching versions<\/strong><\/p><p>git checkout 7.4<\/p><p>\u00a0<\/p><p><strong>Start Zabbix server<\/strong><\/p><p>docker compose -f .\/docker-compose_v3_alpine_mysql_latest.yaml up<\/p><p>\u00a0<\/p><p><strong>Download the zabbix-agent repository<\/strong><\/p><p>wget <a href=\"https:\/\/repo.zabbix.com\/zabbix\/7.0\/debian-arm64\/pool\/main\/z\/zabbix-release\/zabbix-release_latest_7.0+debian13_all.deb\">https:\/\/repo.zabbix.com\/zabbix\/7.0\/debian-arm64\/pool\/main\/z\/zabbix-release\/zabbix-release_latest_7.0+debian13_all.deb<\/a><\/p><p>\u00a0<\/p><p><strong>Install the Zabbix agent repository<\/strong><\/p><p>dpkg -i zabbix-release_latest_7.0+debian13_all.deb<\/p><p><strong>\u00a0<\/strong><\/p><p><strong>We are updating the local repository.\u00a0 <\/strong><\/p><p>apt update<\/p><p>\u00a0<\/p><p><strong>We install Zabbix agent 2<\/strong><\/p><p>apt install zabbix-agent2<\/p><p>\u00a0<\/p><p><strong>We are launching the Zabbix service<\/strong><\/p><p>systemctl restart zabbix-agent2<\/p><p>systemctl enable zabbix-agent2<\/p><p>\u00a0<\/p><p><strong>Folders<\/strong><\/p><p>zabbix-docker\/<\/p><p>\u251c\u2500\u2500 env_vars \u2013 warto\u015bci zmiennych i has\u0142a<\/p><p>\u251c\u2500\u2500 zbx_env \u2013 dane aplikacji I bazy danych<\/p><p>\u2514\u2500\u2500 .env \u2013 zmienne ca\u0142o\u015bci instalacji<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Zabbix is one of the most powerful IT infrastructure monitoring tools that you can implement completely free of charge. In this article, we show you how to run it in Docker and how to add your first Windows and Linux servers to monitoring. We explain how templates, automatic resource detection, and the alert system work. You will also learn what to watch out for so that monitoring does not become a burden on your system.<\/p>","protected":false},"author":3,"featured_media":2122,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7,8,10],"tags":[364,276,256,261,384,382,383,385,263],"class_list":["post-2113","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-it-dla-kazdego","category-truenas","category-wirtualizacja","tag-data-loss-protection","tag-dlp","tag-docker","tag-docker-compose","tag-infratsructure-monitoring","tag-install-zabbix","tag-monitroing","tag-network-monitoring","tag-zabbix"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/posts\/2113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/comments?post=2113"}],"version-history":[{"count":7,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/posts\/2113\/revisions"}],"predecessor-version":[{"id":2123,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/posts\/2113\/revisions\/2123"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/media\/2122"}],"wp:attachment":[{"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/media?parent=2113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/categories?post=2113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/tags?post=2113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}