Kurulum için aşağıdaki komutları ve önerilere göz gezdirin;
İşlemlerden önce sunucunun güncel olması unutmayın. Dökümanda gereksinimleri inceleyin;
https://www.zabbix.com/documentation/current/en/manual/installation/requirements
Gereksinimler;

Mariadb için önerilen versiyon 10.5

Kurulum;
[epel]
...
excludepkgs=zabbix*
# rpm -Uvh https://repo.zabbix.com/zabbix/7.0/rocky/9/x86_64/zabbix-release-7.0-5.el9.noarch.rpm
# dnf clean all
# dnf install nginx zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent

dnf install mariadb

versiyonları kontrol etmeyi unutmayın.
Mariadb servisini açıyoruz.

Mysql secure installiation başlatıyoruz.

Db oluşturuyoruz;
# mysql -uroot -p
password
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
mysql> create user zabbix@localhost identified by 'password';
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> set global log_bin_trust_function_creators = 1;
mysql> quit;
Şemayı import ediyoruz;
zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix
Disable log_bin_trust_function_creators option after importing database schema.
# mysql -uroot -p
password
mysql> set global log_bin_trust_function_creators = 0;
mysql> quit;

Configure the database for Zabbix server
Edit file /etc/zabbix/zabbix_server.conf
DBPassword=password
Configure PHP for Zabbix frontend
Edit file /etc/nginx/conf.d/zabbix.conf uncomment and set ‘listen’ and ‘server_name’ directives.
# listen 8080;
# server_name example.com;
Start Zabbix server and agent processes
Start Zabbix server and agent processes and make it start at system boot
# systemctl restart zabbix-server zabbix-agent nginx php-fpm
# systemctl enable zabbix-server zabbix-agent nginx php-fpm
Open Zabbix UI web page
The URL for Zabbix UI when using Nginx depends on the configuration changes you should have made.

