
How to Install Zabbix Server 7.0 LTS on Ubuntu 24.04 (ARM64)
Zabbix is one of the most popular and robust monitoring tools available. The 7.0 LTS (Long Term Support) version brings new features and significant improvements. This detailed guide will help you install Zabbix 7.0 LTS on an Ubuntu 24.04 ARM64 system with Nginx and MySQL.
Prerequisites
Before starting, make sure you have:
- An Ubuntu 24.04 ARM64 server.
- Root access or a user with sudo privileges.
- An internet connection to download the necessary packages.
Step 1: Update the System
First, update your system to ensure all packages are up to date:
sudo apt update && sudo apt upgrade -y
Step 2: Install the Database Server
Zabbix requires a database to store data. In this example, we will use MySQL/MariaDB.
Install MariaDB:
sudo apt install mariadb-server -y
Start and enable the MariaDB service:
sudo systemctl start mariadb
sudo systemctl enable mariadb
Secure the MariaDB installation:
sudo mysql_secure_installation
Step 3: Create the Zabbix Database
Connect to MySQL/MariaDB and create the database and user for Zabbix:
sudo mysql -u root -p
# Inside the MySQL console:
CREATE DATABASE zabbix CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
CREATE USER 'zabbix'@'localhost' IDENTIFIED BY 'strong_password';
GRANT ALL PRIVILEGES ON zabbix.* TO 'zabbix'@'localhost';
SET GLOBAL log_bin_trust_function_creators = 1;
FLUSH PRIVILEGES;
EXIT;
Step 4: Install the Zabbix Repository
Add the Zabbix repository:
wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-1%2Bubuntu24.04_all.deb
sudo dpkg -i zabbix-release_7.0-1+ubuntu24.04_all.deb
sudo apt update
Step 5: Install Zabbix Server, Frontend, and Agent
Install the necessary packages:
sudo apt install zabbix-server-mysql zabbix-sql-scripts zabbix-frontend-php zabbix-nginx-conf zabbix-agent
Step 6: Configure the Zabbix Database
Import the initial database schema:
zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix --database=zabbix
Edit the Zabbix Server configuration file:
sudo nano /etc/zabbix/zabbix_server.conf
Adjust the following lines with your database information:
Adjust the following lines with your database information:
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=strong_password
Step 7: Configure the Zabbix Frontend
Edit the Nginx configuration file for Zabbix:
sudo nano /etc/zabbix/nginx.conf
Uncomment and adjust the following lines as necessary:
server {
listen 80;
server_name example.com;
root /usr/share/zabbix;
index index.php;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
Ensure PHP is configured correctly:
sudo nano /etc/php/7.4/fpm/php.ini
Adjust the following settings:
post_max_size = 16M
upload_max_filesize = 2M
max_execution_time = 300
max_input_time = 300
date.timezone = "America/Sao_Paulo"
Restart the PHP-FPM and Nginx services:
sudo systemctl restart php7.4-fpm
sudo systemctl restart nginx
Step 8: Start and Enable Zabbix Services
Start and enable the Zabbix services:
sudo systemctl start zabbix-server zabbix-agent
sudo systemctl enable zabbix-server zabbix-agent
Step 9: Complete the Installation via Web Interface
Open your browser and access your server’s address to complete the setup:
http://your_server/zabbix
Follow the on-screen instructions to finalize the installation.
Conclusion
You now have Zabbix 7.0 LTS installed and running on your Ubuntu 24.04 ARM64 server. This powerful monitoring tool is ready to help you effectively monitor your IT infrastructure. Be sure to consult the official Zabbix documentation for more advanced configurations and customizations.