rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-1.el8.noarch.rpm
dnf clean all
wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup
chmod +x mariadb_repo_setup
./mariadb_repo_setup
- Instalasi dan enable MariaDB
dnf install mariadb-server
systemctl enable mariadb
systemctl start mariadb
- Lakukan secure instalation MariaDB
/usr/bin/mariadb-secure-installation
- Pilih (Y) dan lakukan konfigurasi root password
- Install MySQL support untuk zabbix
dnf install zabbix-server-mysql zabbix-sql-scripts
- Masukkan password yang digunakan saat melakukan secure installation MariaDB dan buat Zabbix database dengan command berikut. Silahkan replace 'password' dengan password yang Anda inginkan
create database zabbix character set utf8mb4 collate utf8mb4_bin;
create user zabbix@localhost identified by 'password';
grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
flush privileges;
quit
- Import Zabbix database scheme ke Zabbix database yang baru dibuat
zcat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -u zabbix -p zabbix
- Konfigurasi Zabbix Server
vim /etc/zabbix/zabbix_server.conf
- Pastikan setiap variable sesuai dengan database name, database user username dan database user password:
DBName=zabbix
DBUser=zabbix
DBPassword=password
systemctl enable zabbix-server
systemctl start zabbix-server
- Pastikan Zabbix Server telah running
systemctl status zabbix-server