Bu rehber Ubuntu 22.04 üzerinde Zabbix 7.2 Server’ın MySQL veritabanı, Apache web sunucusu ve Zabbix agent ile kurulumu ve yapılandırmasını kapsar.
sudo apt update
sudo apt upgrade -y
sudo reboot
wget https://repo.zabbix.com/zabbix/7.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.2-1+ubuntu22.04_all.deb
sudo dpkg -i zabbix-release_7.2-1+ubuntu22.04_all.deb
sudo apt update
sudo apt install mysql-server -y
sudo systemctl enable mysql
sudo systemctl start mysql
sudo mysql_secure_installation
sudo mysql -u root -p
CREATE DATABASE zabbix CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
CREATE USER 'zabbix'@'localhost' IDENTIFIED BY 'GüçlüParola123!';
GRANT ALL PRIVILEGES ON zabbix.* TO 'zabbix'@'localhost';
FLUSH PRIVILEGES;
EXIT;
sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent2 -y
zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql -u zabbix -p zabbix
sudo nano /etc/zabbix/zabbix_server.conf
Satırı bulun ve düzenleyin:
DBPassword=GüçlüParola123!
PHP saat dilimini ayarlayın:
sudo nano /etc/zabbix/apache.conf
php_value date.timezone Europe/Istanbul
sudo nano /etc/zabbix/zabbix_agent2.conf
Server satırını aşağıdaki gibi düzenleyin:
Server=127.0.0.1
ServerActive=127.0.0.1
Hostname=Zabbix server
Agent’i yeniden başlatın:
sudo systemctl restart zabbix-agent2
sudo systemctl enable zabbix-agent2
sudo systemctl restart zabbix-server apache2
sudo systemctl enable zabbix-server apache2
Tarayıcı üzerinden erişim sağlayın:
http://<sunucu_ip_adresi>/zabbix
Veritabanı bilgileri:
Giriş bilgileri: