{"id":11751,"date":"2020-10-16T14:53:52","date_gmt":"2020-10-16T17:53:52","guid":{"rendered":"https:\/\/made4it.com.br\/zabbix-installation-guide\/"},"modified":"2023-03-08T15:45:36","modified_gmt":"2023-03-08T18:45:36","slug":"zabbix-installation-guide","status":"publish","type":"post","link":"https:\/\/made4it.com.br\/en\/zabbix-installation-guide\/","title":{"rendered":"zabbix Installation Guide"},"content":{"rendered":"\n<p>If you have an infrastructure, whether large or small, it is extremely important to have a monitoring system that can raise alarms when something goes wrong.  <br\/>zabbix today can be considered one of the best tools for this activity.<\/p>\n\n<p>Today we will explain how you can install this tool.<\/p>\n\n<p>To start with, you need an OS. Linux OS is required to install this, in our scenario we are using Debian 10.<\/p>\n\n<p>-Obs. When creating the database we must be aware that MYSQL is no longer used, but MARIADB.<\/p>\n\n<p>-Link with Zabbix repertoire for installation: https:\/\/www.zabbix.com\/br\/download<\/p>\n\n<p><strong>Step 01<\/strong> &#8211; Choose your platform<\/p>\n\n<ul class=\"wp-block-list\"><li>We must choose the Zabbix version that we will use, in this case we use 5.0 LTS.<\/li><li>Soon after, you must choose the OS Distribution and Version, in this case we use Debian, version 10.<\/li><li>Finally, we will choose the Database and Web Server, which in this case was chosen MySQL as the Database and for Web Server, Apache.<\/li><\/ul>\n\n<p><strong>Step 02<\/strong> &#8211; Install and configure the Zabbix server for your platform<\/p>\n\n<p>a. Install the Zabbix repository<\/p>\n\n<p><\/p>\n\n<p>  # wget <a href=\"https:\/\/repo.zabbix.com\/zabbix\/5.0\/debian\/pool\/main\/z\/zabbix-\">https:\/\/repo.zabbix.com\/zabbix\/5.0\/debian\/pool\/main\/z\/zabbix-<\/a> release\/zabbix-release_5.0-1+buster_all.deb<\/p>\n\n<p>  # dpkg -i zabbix-release_5.0-1+buster_all.deb<\/p>\n\n<p>  # apt update<\/p>\n\n<p>b. Install the Zabbix server, frontend and agent<\/p>\n\n<p><\/p>\n\n<p>  # apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache- conf zabbix-agent<\/p>\n\n<p>c. Create initial database<\/p>\n\n<p><\/p>\n\n<p>  Perform the following steps on your database host.<\/p>\n\n<p>  # mysql -uroot -p<\/p>\n\n<p>  password<\/p>\n\n<p>  mysql&gt; create database zabbix character set utf8 collate utf8_bin;<\/p>\n\n<p>  mysql&gt; create user zabbix@localhost identified by &#8216;password&#8217;;<\/p>\n\n<p>  mysql&gt; grant all privileges on zabbix.* to zabbix@localhost;<\/p>\n\n<p>  mysql&gt; quit;<\/p>\n\n<p>  On the Zabbix server, import the initial schema and data. You will be prompted to enter the password you created earlier.<\/p>\n\n<p>  # zcat \/usr\/share\/doc\/zabbix-server-mysql*\/create.sql.gz | mysql -uzabbix -p zabbix<\/p>\n\n<p>d. Configure the database for the Zabbix server<\/p>\n\n<p>  Edit \/etc\/zabbix\/zabbix_server.conf<\/p>\n\n<p>  DBPassword=password<\/p>\n\n<p>e. Configure PHP for the Zabbix frontend<\/p>\n\n<p>  Edit \/etc\/zabbix\/apache.conf, uncomment and set the correct time zone.<\/p>\n\n<p>  # php_value date.timezone Europe\/Riga<\/p>\n\n<p>f. Start the Zabbix server and agent processes<\/p>\n\n<p>  Start the Zabbix server and agent processes and configure them to start during system boot.<\/p>\n\n<p>  # systemctl restart zabbix-server zabbix-agent apache2<\/p>\n\n<p>  # systemctl enable zabbix-server zabbix-agent apache2<\/p>\n\n<p>g. Configure the Zabbix frontend<\/p>\n\n<p>  Connect to the installed Zabbix frontend: http:\/\/server_ip_or_name\/zabbix<br\/><br\/><\/p>\n\n<p><strong>Step 03<\/strong> &#8211; Installing the frontend<\/p>\n\n<p><u>Step 1:<\/u><\/p>\n\n<p>In your browser, open the URL for the server hosting the Zabbix web interface: http:\/\/<server_ip_or_name>\/zabbix<\/server_ip_or_name><\/p>\n\n<p>You should now see the first screen of the web interface configuration wizard.<\/p>\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img fetchpriority=\"high\" decoding=\"async\" width=\"550\" height=\"331\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/10\/zabixx1.png\" alt=\"\" class=\"wp-image-1426\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabixx1.png 550w, https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabixx1-300x181.png 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/figure><\/div>\n\n<p><u>Step 2:<\/u><\/p>\n\n<p>Make sure that all prerequisites are met.<\/p>\n\n<p>Optional prerequisites may be present in the list. An optional prerequisite will be shown in orange and have the status of Alert. Failure of this type of parameter does not block the setup wizard.<\/p>\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"550\" height=\"331\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/10\/zabixx2.png\" alt=\"\" class=\"wp-image-1428\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabixx2.png 550w, https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabixx2-300x181.png 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/figure><\/div>\n\n<p><u>Step 3<\/u>:<\/p>\n\n<p>Enter the connection details to the Zabbix database. The bank should have already been created.<\/p>\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"550\" height=\"331\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix3.png\" alt=\"\" class=\"wp-image-1429\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix3.png 550w, https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix3-300x181.png 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/figure><\/div>\n\n<p><u>Step 4<\/u>:<\/p>\n\n<p>Enter the Zabbix Server data.<\/p>\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"331\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/10\/zabixx4.png\" alt=\"\" class=\"wp-image-1430\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabixx4.png 550w, https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabixx4-300x181.png 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/figure><\/div>\n\n<p><u>Step 5<\/u>:<\/p>\n\n<p>Review of settings.<\/p>\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"331\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix5.png\" alt=\"\" class=\"wp-image-1431\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix5.png 550w, https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix5-300x181.png 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/figure>\n\n<p><u>Step 6<\/u>:<\/p>\n\n<p>Download the generated configuration file and install it into the conf\/ directory that exists where you copied your Zabbix PHP files to.<\/p>\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"333\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix6.png\" alt=\"\" class=\"wp-image-1432\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix6.png 550w, https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix6-300x182.png 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"350\" height=\"238\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix6.1.png\" alt=\"\" class=\"wp-image-1433\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix6.1.png 350w, https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix6.1-300x204.png 300w\" sizes=\"(max-width: 350px) 100vw, 350px\" \/><\/figure><\/div>\n\n<p><u>Step 7<\/u>:<\/p>\n\n<p>Finish the installation.<\/p>\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"331\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix7.png\" alt=\"\" class=\"wp-image-1434\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix7.png 550w, https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix7-300x181.png 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/figure>\n\n<p><u>Step 8<\/u>:<\/p>\n\n<p>The Zabbix web interface is ready for use! The default user and password are: Admin \/ zabbix.<\/p>\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"350\" height=\"390\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix8.png\" alt=\"\" class=\"wp-image-1435\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix8.png 350w, https:\/\/made4it.com.br\/wp-content\/uploads\/2020\/10\/zabbix8-269x300.png 269w\" sizes=\"(max-width: 350px) 100vw, 350px\" \/><\/figure><\/div>\n\n<p>We hope you have managed to install it. If you have any problems or questions, please contact us.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have an infrastructure, whether large or small, it is extremely important to have a monitoring system that can sound alarms when something goes wrong.<\/p>\n","protected":false},"author":13,"featured_media":8678,"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-11751","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\/11751","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=11751"}],"version-history":[{"count":0,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts\/11751\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/media\/8678"}],"wp:attachment":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/media?parent=11751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/categories?post=11751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/tags?post=11751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}