{"id":10100,"date":"2022-03-29T13:58:46","date_gmt":"2022-03-29T16:58:46","guid":{"rendered":"http:\/\/made4it.com.br\/how-to-configure-zabbix-6-0-lts\/"},"modified":"2023-02-13T12:10:42","modified_gmt":"2023-02-13T15:10:42","slug":"how-to-configure-zabbix-6-0-lts","status":"publish","type":"post","link":"https:\/\/made4it.com.br\/en\/how-to-configure-zabbix-6-0-lts\/","title":{"rendered":"How to configure Zabbix 6.0 LTS"},"content":{"rendered":"\n<p>Hey guys, how are you? My name is Henrique, I&#8217;m a Made4IT consultant and I&#8217;m part of the infrastructure and servers team. Today we&#8217;re going to learn a little about Zabbix and I&#8217;m going to give you an overview of what Zabbix is, how the tool works and also teach you how to install and configure a Zabbix server.<\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"968\" height=\"463\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image.png\" alt=\"\" class=\"wp-image-2062\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image.png 968w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-300x143.png 300w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-768x367.png 768w\" sizes=\"(max-width: 968px) 100vw, 968px\" \/><\/a><\/figure>\n\n<p>For those who don&#8217;t know, Zabbix is \u200b\u200ba totally open source monitoring solution for companies of any size.<\/p>\n\n<p class=\"has-text-align-center\">\n          <strong>What does the Zabbix tool do?<\/strong>\n        <\/p>\n\n<p>\u2192 Provides health monitoring of servers, networks, applications and services through parameters and metrics.<\/p>\n\n<p>\u2192 It also provides a flexible mechanism for sending customized notifications about detected alerts and events and we can send these notifications via email, Telegram, SMS and even opening a ticket in HelpDesk systems.<\/p>\n\n<p>\u2192 Reporting and data visualization based on stored data for analysis and decision making.<\/p>\n\n<p>\u2192 Supports polling and trapping<\/p>\n\n<p>\u21d2 Polling: Zabbix sends requests through configured metrics<\/p>\n\n<p>\u21d2 Trapping: Zabbix receives information from configured metrics<\/p>\n\n<p>\u2192 It has a graphical interface for viewing and configuring the monitoring (devices to be monitored \u2192 applications, servers and services)<\/p>\n\n<p>\u2192 Support provided by Zabbix SIA and also by official partners, where Made4IT recently became an official Zabbix partner.<\/p>\n\n<p class=\"has-text-align-center\">\n          <strong>Zabbix version 6.0 LTS<\/strong>\n        <\/p>\n\n<p>Recently, Zabbix was updated to version 6.0 LTS, which has several new features such as: Kubernets Monitoring, Business Service at a completely different level, High Availability Cluster (HA Cluster) native, Advanced Service SLA Calculation Logic , Machine Learning.<\/p>\n\n<p>Follow the link for a deeper reading about the 6.0 LTS update: <a class=\"rank-math-link\" href=\"https:\/\/www.zabbix.com\/br\/whats_new_6_0#business_service_monitoring\">https:\/\/www.zabbix.com\/br\/whats_new_6_0#business_service_monitoring<\/a><\/p>\n\n<p class=\"has-text-align-center\">\n          <strong>Requirements for installing Zabbix 6.0 LTS <\/strong>\n        <\/p>\n\n<p>In this tutorial, we use a virtual machine with Debian 11 with the resources: 4GB of RAM, 2 vCPU and 50GB of Disk, which is more than necessary for a simple installation for case studies. Our installation will be all-in-one, that is, everything on the same server (Database, Zabbix Server and Zabbix Frontend).<\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-1.png\"><img decoding=\"async\" width=\"805\" height=\"575\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-1.png\" alt=\"\" class=\"wp-image-2063\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-1.png 805w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-1-300x214.png 300w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-1-768x549.png 768w\" sizes=\"(max-width: 805px) 100vw, 805px\" \/><\/a><\/figure>\n\n<p class=\"has-text-align-center\">\n          <strong>Installation<\/strong>\n        <\/p>\n\n<p>Here are the commands we used in the installation video: <\/p>\n\n<ul class=\"wp-block-list\"><li>Installation of utilities and zabbix-release package.<\/li><\/ul>\n\n<pre class=\"wp-block-code\"><code>  #Instala\u00e7\u00e3o dos utilit\u00e1rios\napt install vim sudo curl -y\n#Acesso ao diret\u00f3rio \/tmp\ncd \/tmp\/\n#Baixar o reposit\u00f3rio zabbix-releas\n\nwget https:\/\/repo.zabbix.com\/zabbix\/6.0\/debian\/pool\/main\/z\/zabbix-release\/zabbix-rele\nase_6.0-1+debian11_all.deb\n#Instalando o reposit\u00f3rio zabbix-release\napt install .\/zabbix-release_6.0-1+debian11_all.deb\n#Update e upgrade no sistema\napt update; apt upgrade -y<\/code><\/pre>\n\n<ul class=\"wp-block-list\"><li>Postgres database installation<\/li><\/ul>\n\n<pre class=\"wp-block-code\"><code>#Instale os pacotes necess\u00e1rios para o banco de dados apt install postgresql postgresql-contrib -y\n\n#Acessamos o usu\u00e1rio do postgres e entramos no banco e dados su - postgres\npsql\n\n#Definindo a senha do Postgres postgres=# \\password postgres\nDigite nova senha para postgres: &lt;SENHA POSTGRES&gt; Digite-a novamente: &lt;SENHA POSTGRES&gt;\npostgres=# \\q\n$ exit\n<\/code><\/pre>\n\n<p>Now we&#8217;ve adjusted the Postgres ph_hba.conf file so that any change in the database will require the password that we just defined.<\/p>\n\n<pre class=\"wp-block-code\"><code>#Edite o arquivo pg_hba.conf\nvim \/etc\/postgresql\/13\/main\/pg_hba.conf\n\n#Localize as seguintes linhas:\nlocal all postgres peer\nlocal all all peer\n\n#Altere \"peer\" para \"md5\"\nlocal all postgres md5\nlocal all all md5\n<\/code><\/pre>\n\n<p>Restart postgres<\/p>\n\n<pre class=\"wp-block-code\"><code>#Restart no postgres\nsystemctl restart postgresql<\/code><\/pre>\n\n<p>Installation of Zabbix Server<\/p>\n\n<pre class=\"wp-block-code\"><code>#Instala\u00e7\u00e3o dos pacotes para o zabbix server\napt install zabbix-server-pgsql php-pgsql zabbix-sql-scripts zabbix-agent -y\n\n#Criar o usu\u00e1rio\/senha do Zabbix no Postgres su - postgres\ncreateuser --pwprompt zabbix\nDigite a senha para a nova role: &lt;SENHA ZABBIX&gt; Digite-a novamente: &lt;SENHA ZABBIX&gt;\nSenha: &lt;SENHA POSTGRES&gt;\n\n#Criar o banco de dados do Zabbix. Ir\u00e1 solicitar a senha do Postgres. createdb -O zabbix zabbix\nSenha: &lt;SENHA POSTGRES&gt;\n\n#Importamos o schema inicial e os dados.\nzcat \/usr\/share\/doc\/zabbix-sql-scripts\/postgresql\/server.sql.gz | psql -U zabbix -d z abbix &amp;&gt;\/dev\/null\nSenha para usu\u00e1rio zabbix: : &lt;SENHA ZABBIX&gt;\nexit\n<\/code><\/pre>\n\n<p>After that, we add our Zabbix user password in the configuration file. Search for #DBPassword= uncomment and add your password<\/p>\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/zabbix\/zabbix_server.conf\n#...\nDBPassword=&lt;SENHA ZABBIX&gt;\n#...\n<\/code><\/pre>\n\n<p>Installation of Zabbix Frontend<\/p>\n\n<pre class=\"wp-block-code\"><code>#Instala\u00e7\u00e3o dos pacotes necess\u00e1rios para o Zabbix Frontend\napt install nginx zabbix-frontend-php zabbix-nginx-conf php-fpm -y\n<\/code><\/pre>\n\n<p>Now, we tweak the Zabbix web config file<\/p>\n\n<pre class=\"wp-block-code\"><code>#Editando o arquivo de configura\u00e7\u00e3o WEB do Zabbix vim \/etc\/nginx\/conf.d\/zabbix.conf\n\n#Descomente a linha \"listen\" para caso queira alterar a porta de acesso WEB do Zabbi x, por padr\u00e3o \u00e9 a porta 80.\n# Descomente a linha \"server_name\" e adicione o IP do seu servidor.\nserver {\nlisten 80; server_name X.X.X.X;\n<\/code><\/pre>\n\n<p>Now we restart our services<\/p>\n\n<pre class=\"wp-block-code\"><code>#Habilite os servi\u00e7os para que eles iniciem em caso de reboot systemctl enable postgresql nginx zabbix-server.service\n\n#Reinicie os servi\u00e7os\nsystemctl restart postgresql nginx zabbix-server.service\n<\/code><\/pre>\n\n<p>\n          <em>\n            <strong>Done! Now all you have to do is access it via the WEB and finish the configuration.<\/strong>\n          <\/em>\n        <\/p>\n\n<p class=\"has-text-align-center\">\n          <strong>Installation and configuration via WEB<\/strong>\n        <\/p>\n\n<p>\u2192 Go to http:\/\/IP_SERVIDOR\/zabbix in your browser<\/p>\n\n<p>\u2192 Select the language you want, in this case, I selected &#8220;Portuguese (pt_BR)\u201d<\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-2.png\"><img decoding=\"async\" width=\"937\" height=\"490\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-2.png\" alt=\"\" class=\"wp-image-2064\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-2.png 937w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-2-300x157.png 300w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-2-768x402.png 768w\" sizes=\"(max-width: 937px) 100vw, 937px\" \/><\/a><\/figure>\n\n<p>\u2192 Checking the prerequisites, if everything is OK, proceed.<\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"491\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-3.png\" alt=\"\" class=\"wp-image-2065\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-3.png 934w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-3-300x158.png 300w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-3-768x404.png 768w\" sizes=\"(max-width: 934px) 100vw, 934px\" \/><\/a><\/figure>\n\n<p>\u2192 On the next screen, add:<\/p>\n\n<ol class=\"wp-block-list\"><li>The database name<\/li><li>Zabbix user<\/li><li>Zabbix user password<\/li><\/ol>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"931\" height=\"490\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-4.png\" alt=\"\" class=\"wp-image-2066\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-4.png 931w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-4-300x158.png 300w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-4-768x404.png 768w\" sizes=\"(max-width: 931px) 100vw, 931px\" \/><\/a><\/figure>\n\n<p>\u2192 Define a name for the server<\/p>\n\n<p>\u2192 Also select a &#8220;timezone&#8221;, in this case, we add America\/Sao_Paulo<\/p>\n\n<p>\u2192 Choose a theme (we leave it as default)<\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"493\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-5.png\" alt=\"\" class=\"wp-image-2067\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-5.png 934w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-5-300x158.png 300w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-5-768x405.png 768w\" sizes=\"(max-width: 934px) 100vw, 934px\" \/><\/a><\/figure>\n\n<p>\u2192 Summary\/check of settings from previous screens.<\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"933\" height=\"490\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-6.png\" alt=\"\" class=\"wp-image-2068\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-6.png 933w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-6-300x158.png 300w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-6-768x403.png 768w\" sizes=\"(max-width: 933px) 100vw, 933px\" \/><\/a><\/figure>\n\n<p>\u2192 Installation completed!<\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"928\" height=\"647\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-7.png\" alt=\"\" class=\"wp-image-2069\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-7.png 928w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-7-300x209.png 300w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-7-768x535.png 768w\" sizes=\"(max-width: 928px) 100vw, 928px\" \/><\/a><\/figure>\n\n<p>After the above steps, you will be redirected to the login screen. By default, credentials are:<\/p>\n\n<ul class=\"wp-block-list\"><li>User: admin<\/li><li>Password: zabbix<\/li><\/ul>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-8.png\"><img loading=\"lazy\" decoding=\"async\" width=\"928\" height=\"487\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-8.png\" alt=\"\" class=\"wp-image-2070\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-8.png 928w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-8-300x157.png 300w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-8-768x403.png 768w\" sizes=\"(max-width: 928px) 100vw, 928px\" \/><\/a><\/figure>\n\n<p>\n          <strong>\n            <em>\u2192 Completed installation and 100% functional Zabbix.<\/em>\n          <\/strong>\n        <\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-9.png\"><img loading=\"lazy\" decoding=\"async\" width=\"914\" height=\"479\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2022\/03\/image-9.png\" alt=\"\" class=\"wp-image-2071\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-9.png 914w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-9-300x157.png 300w, https:\/\/made4it.com.br\/wp-content\/uploads\/2022\/03\/image-9-768x402.png 768w\" sizes=\"(max-width: 914px) 100vw, 914px\" \/><\/a><\/figure>\n\n<p>You can follow the configuration video on our youtube channel and if you still have questions about the configuration or the tool, please contact our team.<\/p>\n\n          \n\n          <figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\">\n            <div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Como configurar Zabbix 6.0 - Tutorial f\u00e1cil - Made4it\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/Ed2I9CVggyc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n<\/div>\n          <\/figure>\n          \n\n        \n","protected":false},"excerpt":{"rendered":"<p>Hey guys, how are you? My name is Henrique, I&#8217;m a Made4IT consultant and I&#8217;m part of the infrastructure and servers team. Today we&#8217;re going to learn a little about Zabbix and I&#8217;m going to give you an overview of what Zabbix is, how the tool works and also teach you how to install and [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":8974,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"postBodyCss":"","postBodyMargin":[],"postBodyPadding":[],"postBodyBackground":{"backgroundType":"classic","gradient":""},"footnotes":""},"categories":[352],"tags":[],"class_list":["post-10100","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized-en"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts\/10100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/comments?post=10100"}],"version-history":[{"count":0,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts\/10100\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/media\/8974"}],"wp:attachment":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/media?parent=10100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/categories?post=10100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/tags?post=10100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}