Zabbix — это ПО для мониторинга параметров сети, жизнеспособности и целостности серверов, виртуальных машин, приложений, сервисов, баз данных, веб-сайтов, облачных сред и многого другого.
Статья рассчитана на установку в таких операционных системах как Debian, Ubuntu, CentOS 7 и AlmaLinux 8.
Производить установку будем в консоли SSH, а настройку через веб-браузер.
- Description
- Ubuntu 20. 04, 18
- Centos 8, 7
- Troubleshooting
- Cannot create the configuration file
- Требования
- Установка сервера Zabbix
- Setting up a MySQL database for Zabbix
- PHP setup for Zabbix support
- Configuring Zabbix web interface parameters
- Installing and configuring the Zabbix agent
- Adding a host to the Zabbix server
- Notification settings
- Check notification settings
- Conclusion
- Default account administrator password for Zabbix server is zabbix as shown in the picture
- Alert settings
- Five, create Zabbix database, create Zabbix account
- Nine, start the apache/zabbix-server service and set it to boot
- Delete or rename the setup. php in web directory
- Sixth, import default zabbix database information
- Eleven, select Next, Check Prerequisites as shown in the picture
- Fourth, install and run mysql5. 6 and initialize the database information.
- First, disable selinux and iptables
- Seven, change the configuration file zabbix_server. conf
- Click the Next button to complete the installation. The interface after installation is completed is shown below
- Eight, edit the configuration file /etc/httpd/conf. d/zabbix. conf, change timezone to Asia/Shanghai
- Debian/Ubuntu
- Third, install zabbix-server-mysql and zabbix-web-mysql
- Nineteen, change the default administrator password for web login
- Environmental training
- Web Based Configuration
Description
Since Zabbix 5.2.0, it is no longer necessary to configure the timezone settings in the configuration files.
The commands in this video are,
Ubuntu 20. 04, 18
sudo nano /etc/zabbix/apache.conf
Centos 8, 7
sudo nano /etc/php-fpm.d/zabbix.conf
sudo nano /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
sudo nano /etc/httpd/conf.d/zabbix.conf
If you get an error that nano is not installed,
sudo apt install nano
yum install nano
dnf install nano
Scroll down and uncomment the lines
# php_value date.timezone Europe/Riga
And edit to your time zone.
My time zone is London, so my line looks like,
php_value date.timezone Europe/London
PHP timezone strings can be found here,
If you installed your Zabbix Server using the NGINX web server option then your time zone settings may be in the file /etc/php.d/99-zabbix.ini
Troubleshooting
Q. You see the error ‘Time zone for PHP is not set (configuration parameter «date.timezone»).’
A. You most likely didn’t remove the comment symbol (#) from the line containing php_value date.timezone and your time zone.
Cannot create the configuration file
Q. You get an error ‘unable to create the configuration file’ and you are then asked to download the configuration file and save it into a folder.
Download the file using the link as shown in the error screen and open it using a text editor, so you can see it.
The error screen also shows which folder to save the configuration into.
SSH onto your server, and cd into the folder.
Edit the file
sudo nano zabbix.conf.php
Paste the contents of the file that you downloaded locally into the Nano view. If using the Putty ssh client, you can right-click the mouse and the clipboard will be pasted in.
In Nano, press ctrl-X and y to save.
24 мая, 2019 11:57 дп
Zabbix – это открытое программное обеспечение для мониторинга сетей и приложений. Zabbix может в реальном времени отслеживать тысячи метрик, собранных с серверов, виртуальных машин или любого другого сетевого устройства. Это позволяет вам здраво оценить состояние машины и своевременно обнаружить проблемы. Zabbix сохраняет полезные данные в базу, что позволяет вам анализировать данные в течение долгого времени и улучшить качество предоставляемых услуг или усовершенствовать оборудование.
Zabbix использует несколько функций для сбора метрик, включая безагентный мониторинг сервисов пользователя и архитектуру «клиент-сервер». На отслеживаемую машину устанавливается агент, который собирает данные и передаёт их серверу Zabbix. Zabbix поддерживает шифрованные соединения между сервером и клиентами, что обеспечивает надёжную защиту данных.
Сервер Zabbix хранит данные в реляционной БД MySQL, PostgreSQL или Oracle. Исторические данные можно хранить в базах nosql, таких как Elasticsearch и TimescaleDB. Также Zabbix предоставляет веб-интерфейс, с помощью которого можно просматривать данные и настраивать программу.
Данный мануал поможет установить и настроить Zabbix на двух машинах, одна из которых будет использоваться как сервер, а вторая – как отслеживаемый клиент. В этом мануале используется СУБД MySQL (для хранения данных) и веб-сервер Apache (для обслуживания веб-интерфейса).
Требования
Поскольку Zabbix сервер используется для доступа к важной информации о вашей инфраструктуре, к которой не должно быть доступа у неавторизованных пользователей, важно заранее установить сертификат TLS/SSL. Это необязательно, но мы настоятельно рекомендуем сделать это. Чтобы получить бесплатный доверенный сертификат TLS/SSL, следуйте мануалу Создание сертификата Let’s Encrypt для Apache в Ubuntu 18.04.
Установка сервера Zabbix
Войдите на первый сервер, на который вы ранее установили MySQL, Apache и PHP.
По умолчанию пакеты Zabbix доступны в репозитории Ubuntu, но они устаревшие. To install the latest stable version of Zabbix, add the official project repository. Install repository config package:
wget https://repo.zabbix.com/zabbix/4.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.2-1+bionic_all.deb
sudo dpkg -i zabbix-release_4.2-1+bionic_all.deb
You will get this output:
Update package index:
sudo apt update
Install Zabbix server and frontend with MySQL support.
sudo apt install zabbix-server-mysql zabbix-frontend-php
Now you need to install the Zabbix agent, which will collect data about the state of the Zabbix server itself:
sudo apt install zabbix-agent
Setting up a MySQL database for Zabbix
Create a new MySQL database and add basic data to it. You also need to create a special user for Zabbix (the MySQL root user cannot be used for this).
Open MySQL as root user. Enter the MySQL root password when prompted.
mysql -uroot -p
Create a Zabbix database with UTF-8 character support:
create database zabbix character set utf8 collate utf8_bin;
Then create a user with which Zabbix will be able to interact with the database, and select a password for it:
Import the basic Zabbix database schema that comes with the program using the zcat command (the data in the file is compressed):
Enter zabbix user password.
After executing the command, you may get an error:
It occurs when an incorrect password is entered; maybe you entered the root password instead of the zabbix user password.
In order for the Zabbix server to interact with the database, you need to add the database user password to the Zabbix configuration file. Open this file:
sudo nano /etc/zabbix/zabbix_server.conf
Find the next section:
### Option: DBPassword
# Database password. Ignored for SQLite.
# Comment this line if no password is used.
#
# Mandatory: no
# default:
# DBPassword=
These commented parameters configure the database connection. In the DBPassword parameter, you must specify the password of the database user.
Save and close the zabbix_server.conf file.
Now you need to configure PHP to support the Zabbix web interface.
PHP setup for Zabbix support
The Zabbix web interface is written in PHP, so PHP requires additional configuration to support it. During installation, Zabbix creates an Apache configuration file, which stores all the necessary parameters. This file is located in /etc/zabbix and is automatically loaded by Apache. Open file:
The file contains PHP parameters to support the Zabbix web interface. Specify the correct time zone (by default, this setting is commented out).
Uncomment the line highlighted in red and specify your time zone in it.
Note: The list of time zones can be found here.
Save and close the file.
sudo systemctl restart apache2
Start Zabbix server:
sudo systemctl start zabbix-server
Make sure Zabbix server started successfully:
sudo systemctl status zabbix-server
The team must return:
Now enable Zabbix autostart:
sudo systemctl enable zabbix-server
So, the server is running and connected to the database.
Note: As stated in the requirements, we recommend enabling SSL/TLS on the server. You can now follow this tutorial to get a free SSL certificate for Apache on Ubuntu 18.04.
Configuring Zabbix web interface parameters
The Zabbix web interface allows you to view reports and add new hosts to monitor. It needs some initial setup. To do this, launch your browser and open the link:
The welcome page will appear on the screen. Click next step.
On the next screen, you will see a table listing all the requirements and dependencies needed to run Zabbix.
All lines in this list must be marked with a green OK in the last column. If so, then the environment is completely ready for Zabbix to work. Review the entire list and, if necessary, install the missing components. Then click Next step.
On the next page, you need to specify data for connecting to the database.
The Zabbix web interface requires database access to be able to manage hosts and read data for display. Enter your MySQL DB credentials and click Next step to continue.
On the next screen, you can leave the default values. The Name field is optional. With its help, the interface distinguishes one server from another (if there are several Zabbix servers). Since this tutorial uses only one server, you can simply click Next step.
But before opening the interface, you need to prepare the Zabbix client server.
Installing and configuring the Zabbix agent
Go to the second Ubuntu server:
As on the first server, run the following commands to install the official Zabbix repository:
sudo apt-get update
Install Zabbix agent:
sudo apt-get install zabbix-agent
Zabbix supports certificate-based encryption. Setting up a CA is beyond the scope of this guide, but you can use a pre-shared key (PSK) to secure the connection between the server and the agent.
Copy the key, you will need it when setting up the host:
The key looks something like this:
Adjust the Zabbix agent settings to ensure a secure connection to the Zabbix server. Open configuration file:
sudo nano /etc/zabbix/zabbix_agentd.conf
Then find the settings for setting up a secure connection (TSLConnect section) and enable PSK support. Find this section:
Change the value of the TLSConnect string:
Then find the TLSAccept section:
Set up incoming connections to support psk:
Locate the TLSPSKIdentity section:
Choose a unique name for the PSK key:
Now this unique key identifier can be used when adding new hosts via the web interface.
Then specify in which file the key is stored. Find the TLSPSKFile option:
To tell the Zabbix agent where the key is stored, add the line:
Start the Zabbix agent and add it to autostart:
sudo systemctl restart zabbix-agent
sudo systemctl enable zabbix-agent
Just in case, check the status and make sure Zabbix agent started successfully:
sudo systemctl status zabbix-agent
The agent listens for connections to the server on port 10050. Unblock this port in the UFW firewall.
sudo ufw allow 10050/tcp
Now the agent can send data to the Zabbix server. To get started, you need to connect to the agent through the server’s web console.
Adding a host to the Zabbix server
In order for the Zabbix server to start monitoring the installed agent, you need to add it to the list of hosts through the web interface.
Open Zabbix interface:
After adding a group, open the Templates tab.
Enter Template OS Linux in the search field and click Add to add this template.
Open the Encryption tab. Select PSK in Connections to host and Connections from host. In the PSK identity, specify the key name set in the TLSPSKIdentity setting on the Zabbix agent (in this case, PSK 001).
In the PSK field, specify the key that is stored in /etc/zabbix/zabbix_agentd.psk on the agent.
Click Add to add a host.
The new host will appear in the list. Wait a minute and reload the page to make sure there are green check marks everywhere in the list indicating that everything is working fine and the connection is encrypted.
To add new Zabbix clients, install the Zabbix agent software, create a PSK, configure the agent, and add it to the web console list.
The Zabbix server is now monitoring your second Ubuntu server. Now set up email notifications to be notified of issues.
Notification settings
Zabbix automatically supports several types of notifications, including email, Jabber, SMS, etc. You can also use alternative notification methods like Telegram or Slack. The full list of integrations can be found here.
The easiest way to receive notifications is by email, and in this tutorial we will set up exactly this means of communication.
Edit the SMTP settings according to the settings provided by your email. This tutorial uses Gmail SMTP to set up email notifications.
Note: If you are using 2-Step Verification in Gmail, you need to generate an application password for Zabbix. It does not need to be remembered, it is enough to enter this password once during installation. You can find instructions for creating such a password in the Google Help Center.
You can also select the message format — HTML or plain text. Click the Update button at the end of the form to update your email settings.
After adding the group, go to the Media tab and click on the underlined Add link. A pop-up window will appear.
Enter your email address in the Send to field. The rest of the parameters can be left with default values. Click the Add button below to accept the new settings.
Click the Add button at the bottom of the form to create a user.
Now you need to enable notifications. Go to the Configuration tab and then select Actions from the top control panel. You will see a pre-configured action that is responsible for sending notifications to all Zabbix administrators. You can view and change the settings by clicking on its name. In this tutorial, we use the default options. To enable the action, click on the red Disabled link in the Status column.
Now you will receive notifications. To test the settings, let’s try to generate a notification.
Check notification settings
In this step we will create a test alert to make sure everything is connected properly. By default, Zabbix monitors the amount of free disk space on the server. It automatically detects all disk mounts and adds appropriate checks. This check is done every hour, so you need to wait a bit for the notification to be called.
Create a temporary file large enough to trigger a Zabbix filesystem usage warning. To do this, login to the second Ubuntu server.
Then determine how much free space is on the server. To do this, you can call df.
The df command will report the disk space usage of your file system, and the -h flag will return this data in human-readable format. You will see something like this:
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 25G 1.2G 23G 5% /
In this case, the free space is 23 GB (your result may vary).
Use the fallocate command, which allows you to control the allocation of space, to create a file that takes up more than 80% of the available disk space. This will be enough to trigger a warning:
fallocate -l 20G /tmp/temp.img
After about an hour, Zabbix will send a notification about the use of free disk space and run the action you configured by sending a notification. You can check incoming messages and find a message from the Zabbix server there. It looks something like this:
Problem started at 10:37:54 on 2019.04.05
Problem name: Free disk space is less than 20% on volume /
Host: Second Ubuntu server
Severity: Warning
Original problem ID: 34
You can also go to the Monitoring and Dashboard tab to view the notification and its details.
Now that you know that alerts are coming to your email, delete the temporary file you created to free up disk space:
rm -f /tmp/temp.img
After a minute, Zabbix will send a space recovery message and the warning will disappear from the main panel.
Conclusion
More useful information about infrastructure monitoring can be found in our manuals:
Default account administrator password for Zabbix server is zabbix as shown in the picture

Alert settings
Now let’s set up such a useful thing as sending notifications to e-mail in case Zabbix detects problems on the server.
To do this, go to the section Administration — Notification methods.
If opposite Email we see the status Deactivated, then you should click on this word — the notification method will be activated. Next, click on the word Email and fill in the fields SMTP server (you can localhost), SMTP hello (greeting), SMTP email (sender’s mailbox). After settings, click Update. The screenshot below shows an example of the settings.
In the window that opens, fill in the Send to field (specify the mailbox where you want to receive notifications) and click the Add button.
You can send all notifications to the mail — to be aware of minor events. It is much more important to promptly receive notifications of accidents and critical errors. Therefore, Zabbix provides many different ways to deliver notifications. Consider a way to send them to Telegram.
Go to Administration — Notification methods. We find Telegram.
There is even a small cheat sheet at the bottom.
We write /start to it, then /newbot, then we will come up with a name for the bot from which notifications will come. The name must be unique.
Now you need to add your bot that you created earlier to the Telegram app.
If everything is set up correctly, the test should pass successfully, your Telegram bot will receive a test notification.
In my case, I decided to send only critical notifications to Telegram so as not to clog the chat and respond quickly only to emergency situations.
That’s it, after adding the notification method, events will come to the Telegram chat.
Five, create Zabbix database, create Zabbix account

It is recommended to choose a stable version with long-term official technical support (LTS) when choosing a version. It can be seen from the above figure that there is no latest and most stable is Zabbix3.0
About Zabbix LTS
LTS stands for «Long Term Support». Zabbix LTS version is released every year and a half (1.5) and offers Zabbix customers Support services for five
years:
3 years of Full support – support of general, critical and security issues fixing
2 additional years of Limited Support – support of critical and security issues only
Nine, start the apache/zabbix-server service and set it to boot
View zabbix server logs

Delete or rename the setup. php in web directory

Sixth, import default zabbix database information
If you encounter the error “You are not able to choose some of the languages, because locales for them are not installed on the web server” when trying to change the language, you must do the following:
We go to the server via SSH. Check which localizations are installed on the server using the command:
# locale -a
The output will be something like this:
Next, let’s check the available Russian localizations:
ru_RU. UTF-8 UTF-8
ru_RU. KOI8-R KOI8-R
en_EN ISO-8859-5
ru_RU. CP1251 CP1251
ru_UA. UTF-8 UTF-8
en_UA KOI8-U
Add Russian UTF-8 localization:
# locale-gen ru_RU. UTF-8
After reconfiguring the locale:
# dpkg-reconfigure locales
We are waiting, after which we restart the Apache or NGINX web server, reload the Zabbix page in the browser and select the Russian language.
Go to Settings — Hosts, we see the Zabbix server host there and the status is Deactivated — to activate, click on this inscription, after which the status should change to Activated.
Now let’s get down to the graphs — let’s create a panel of four graphs: two of them will display information about the load (CPU load and CPU utilization), the third one will display information about the use of RAM, and the fourth one about network traffic.
Go to Settings — Hosts — Graphs and see that among the existing ones there is a graph that measures network traffic. We can just add it, but we’d better try to create our own.
Before creating a graph, first create the necessary elements for it, such as Outgoing network traffic and Incoming network traffic.
Go to Settings — Hosts — Items, click on the top right button Create item.
Create an Outgoing network traffic on ens3 data element (replace ens3 with the name of the server’s network interface, for example, eth0, bge0, em0, etc., or, if it matches, leave it as it is).
We look at the screen below and fill it in the same way, replacing ens3 with the real interface if necessary.
Next, create the Incoming network traffic on ens3 data element (press the Create data element button at the top and fill in everything as in the screenshot below).
Create a Network traffic on ens3 graph.
Go to Settings — Hosts — Graphs, press the Create Graph button in the upper right.
Fill in everything as in the screenshot below, in the Data Elements field, select the elements we created above, save the chart.
Go to Monitoring — Panel, click on the desired server (in our case, Zabbix server) and select Panels in the window that appears. Next, you need to find the Network traffic on ens3 graph, make sure that the graph works.
Zabbix already has graph screen templates. You can use them. To do this, go to Monitoring — Panel, click on the server (in our case, Zabbix server), in the window that opens, click on Panels. After we see an example of the panel, in our case, the default network monitoring panel opened. In the upper right corner in the Panel line, you can select templates. Let’s see one of them. Let’s choose System performance.
In general, there is a lot of information in the template panels, and in most cases it is enough to use. However, it is often necessary to create your own dashboard with monitoring only the most necessary parameters.
Next, as planned, we create our own panel of four charts.
Go to Monitoring — Panel, in the upper right corner click on Edit Panel and Add.
Let’s select the previously configured Network traffic on ens3 graph and customize the panel for ourselves.
We see the first chart. Since we have ticked the Dynamic element, we can move, enlarge or reduce this graph, adjusting everything to our needs.
Let’s add a few more charts (we will not create new ones, we will take the ready-made ones that are already configured by Zabbix). Don’t forget to save your changes in the top right corner.
After you have selected all the charts for the complex screen, go to Monitoring — Panel and enjoy the result of your work.
Eleven, select Next, Check Prerequisites as shown in the picture

Fourth, install and run mysql5. 6 and initialize the database information.

First, disable selinux and iptables

Seven, change the configuration file zabbix_server. conf

According to the prompt, you can see that the operations of the above GUI are written to the configuration file
Click the Next button to complete the installation. The interface after installation is completed is shown below

Eight, edit the configuration file /etc/httpd/conf. d/zabbix. conf, change timezone to Asia/Shanghai
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value always_populate_raw_post_data -1
php_value date.timezone Asia/Shanghai
Debian/Ubuntu
For each version of the OS, the link for downloading the Zabbix distribution kit is different. Consider installing Zabbix 6.0, which is up-to-date at the time of writing the article.
Download and configure Zabbix 6.0 for the selected OS.
# wget https://repo.zabbix.com/zabbix/6.0/debian/pool/main/z/zabbix-release/zabbix-release_6.0-4%2Bdebian10_all.deb
# dpkg -i zabbix-release_6.0-4+debian10_all.deb
# apt update
# wget https://repo.zabbix.com/zabbix/6.0/debian/pool/main/z/zabbix-release/zabbix-release_6.0-4%2Bdebian11_all.deb
# dpkg -i zabbix-release_6.0-4+debian11_all.deb
# apt update
# wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-4%2Bubuntu20.04_all.deb
# dpkg -i zabbix-release_6.0-4+ubuntu20.04_all.deb
# apt update
Ubuntu 20.04 may have errors like:
E: The repository ‘https://repo.zabbix.com/zabbix-agent2-plugins/1/ubuntu focal Release’ does not have a Release file.
E: The repository ‘https://repo.zabbix.com/zabbix/6.0/ubuntu focal Release’ does not have a Release file.
To fix them, you need to comment out the certificate starting with DST in the /etc/ca-certificates.conf file, then delete the DST_Root_CA_X3.pem file in the /etc/ssl/certs directory and enter update-ca-certificates in the terminal — f-v.
# wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-4%2Bubuntu22.04_all.deb
# dpkg -i zabbix-release_6.0-4+ubuntu22.04_all.deb
# apt update
Further instructions for all distributions are the same.
A web server (Apache or NGINX) and a DBMS (MySQL or PostgreSQL) and PHP must be installed on the server. You can take a server with a pre-installed LAMP or LEMP recipe.
Install the server, web interface and agent.
For Apache web server and MySQL DBMS:
# apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent
For NGINX web server and MySQL DBMS:
# apt install zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-sql-scripts zabbix-agent
Next, you need to create a database (zabbix), a user (zabbix) and a password (password). Enter your database name, username and password. To do this, we may need the MySQL root password.
# mysql -uroot -p
Enter the password for the DBMS root user and press Enter, or simply press Enter if there is no password.
Next, import the data:
Enter the password of the user we created earlier (password).
Go to the MySQL DBMS terminal and turn off the log_bin_trust_function_creators option:
Next, you need to edit the /etc/zabbix/zabbix_server.conf file using any text editor that is convenient for you.
uncomment it and specify the zabbix user password:
Next, set up the web server.
For Apache, you just need to start the web server and enable its autoload:
# systemctl restart zabbix-server zabbix-agent apache2
# systemctl enable zabbix-server zabbix-agent apache2
For NGINX, you first need to edit the /etc/zabbix/nginx.conf file. Uncomment and configure the listen and server_name directives:
# listen 8080;
# server_name example.com;
Then we start the Zabbix processes and include them in autoload:
# systemctl restart zabbix-server zabbix-agent nginx php7.3-fpm
# systemctl enable zabbix-server zabbix-agent nginx php7.3-fpm
Third, install zabbix-server-mysql and zabbix-web-mysql
Unfortunately, the current version of Zabbix-server 6.0 is not supported by CentOS 7, since CentOS 7 is outdated. Only Zabbix-agent 6.0 can be installed on this OS. The latest version of Zabbix-server for CentOS 7 is Zabbix 5.0. To download, enter in the terminal:
# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
# yum clean all
# rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-4.el8.noarch.rpm
# dnf clean all
A web server (Apache) and a DBMS (MySQL or PostgreSQL) and PHP must be installed on the server. The best option is a server with a preinstalled LAMP recipe.
Install Zabbix server, web interface and agent.
# yum install zabbix-server-mysql zabbix-agent
After you need to enable Red Hat Software Collections:
# yum install centos-release-scl
And edit the /etc/yum.repos.d/zabbix.repo file, you will need to enable the zabbix-frontend repository:
Installing web interface packages:
# yum install zabbix-web-mysql-scl zabbix-apache-conf-scl
# dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent
Further instructions for both distributions are the same, with the exception of some commands, which we will designate separately.
You need to create a database (zabbix), a user (zabbix) and a password (password). Enter your database name, username and password. This may require the MySQL root password.
Enter the password for the DBMS root user and press Enter, or type # mysql if there is no password.
In CentOS 7 (Zabbix 5.0) you will additionally need to edit the file /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf. Uncomment the line
and enter your time zone.
CentOS 7 (Zabbix 5.0)
# systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm
# systemctl enable zabbix-server zabbix-agent httpd rh-php72-php-fpm
AlmaLinux 8 (Zabbix 6.0)
# systemctl restart zabbix-server zabbix-agent httpd php-fpm
# systemctl enable zabbix-server zabbix-agent httpd php-fpm
Nineteen, change the default administrator password for web login


This completes the installation part
Environmental training
Note: Requirements related to zabbix3.0, mysql5.0 or later, apache1.3 or later, php5.4 or later.
Web Based Configuration
Further instructions are the same for all operating systems, except for CentOS 7, which uses the previous version — Zabbix 5.0.
Let’s consider setting up the web interface of Zabbix 6.0, which is up-to-date on the day the article was written (in this case, the setting of Zabbix 5.0 will differ slightly).
In a web browser, follow the link http://server_name/zabbix/setup.php and perform the initial setup.
If we see red warnings with the Fail value, then open the php.ini file:
We set the recommended values, save the file, restart the web server and check (press the Retry button on the page in the browser).
On the Configure DB connection page, fill in the fields for connecting to the zabbix database (I remind you that earlier we created this database and the zabbix user for it with the password password).
Next, select the server name, the desired time zone and the color scheme for the web interface.
Press Next step.
Done. Next, click Finish.
In the meantime, we see the authorization page in the browser.
This completes the installation of Zabbix, let’s start setting up and try to create graphs that will display information about the server’s operation.

