SepehrSabzPackage Mirrors
mirror online

Zabbix / Ubuntu installation guide

Build a tailored Zabbix installation through mirror.sepehrsabz.ir/zabbix. Choose your platform and components below; the commands update immediately.

01 — CHOOSE YOUR PLATFORM

Build your Zabbix installation

Select an option in each column. Repository and package commands below are generated for your selection.

Zabbix version
OS distribution
OS version
Zabbix component
Database
Web server
Before starting: use a supported, clean operating-system release and an account with sudo access. Confirm that the chosen version exists on your SepehrSabz mirror before production deployment.
02 — REPOSITORY

Add Zabbix packages from the SepehrSabz mirror

The release package installs Zabbix's signing key and apt source definition. The final command points that source at the SepehrSabz mirror.

terminal · add Zabbix 7.4 repository
source /etc/os-release
sudo apt update && sudo apt install -y wget
wget "https://mirror.sepehrsabz.ir/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu${VERSION_ID}_all.deb"
sudo dpkg -i "zabbix-release_latest_7.4+ubuntu${VERSION_ID}_all.deb"
sudo sed -i 's|https://repo.zabbix.com|https://mirror.sepehrsabz.ir|g' /etc/apt/sources.list.d/zabbix.list
sudo apt update

Package signatures are still checked using Zabbix's repository key. The mirror changes where package bytes are downloaded, not who signs them.

03 — PACKAGES

Install server, frontend, SQL scripts, and Agent 2

terminal · full server installation
sudo apt install mariadb-server
sudo systemctl enable --now mariadb

sudo apt install zabbix-server-mysql zabbix-frontend-php \
  zabbix-apache-conf zabbix-sql-scripts zabbix-agent2

If you already operate a supported MySQL or MariaDB service, keep it and install only the Zabbix packages.

04 — DATABASE

Create and initialize the Zabbix database

Replace CHOOSE_A_STRONG_PASSWORD in both the SQL and server configuration commands.

MySQL · create database and user
sudo mysql -uroot -p

CREATE DATABASE zabbix CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
CREATE USER 'zabbix'@'localhost' IDENTIFIED BY 'CHOOSE_A_STRONG_PASSWORD';
GRANT ALL PRIVILEGES ON zabbix.* TO 'zabbix'@'localhost';
SET GLOBAL log_bin_trust_function_creators = 1;
QUIT;
terminal · import initial schema
zcat /usr/share/zabbix/sql-scripts/mysql/server.sql.gz | \
  mysql --default-character-set=utf8mb4 -uzabbix -p zabbix

sudo mysql -uroot -p -e "SET GLOBAL log_bin_trust_function_creators = 0;"
/etc/zabbix/zabbix_server.conf
DBPassword=CHOOSE_A_STRONG_PASSWORD
Security: do not paste a production password into shell history. Edit /etc/zabbix/zabbix_server.conf with a privileged editor and restrict access to the configuration file.
05 — START

Start Zabbix and open the frontend

terminal · enable services
sudo systemctl restart zabbix-server zabbix-agent2 apache2
sudo systemctl enable zabbix-server zabbix-agent2 apache2
systemctl --no-pager --full status zabbix-server zabbix-agent2
Finish in your browser: open http://YOUR_SERVER_IP/zabbix, enter the database credentials, and complete the setup wizard.

Default frontend sign-in

FieldDefaultNext action
UsernameAdminChange the password immediately after signing in.
Passwordzabbix
06 — AGENT ONLY

Install Agent 2 on another Ubuntu host

Add the mirrored repository using step 02, then install and configure only the agent:

terminal · monitored host
sudo apt install zabbix-agent2
sudoedit /etc/zabbix/zabbix_agent2.conf
# Set Server=, ServerActive=, and Hostname= for your environment.
sudo systemctl enable --now zabbix-agent2
07 — REFERENCE

Other platforms and configurations

This is a SepehrSabz mirror guide, not the Zabbix website. For PostgreSQL, Nginx, containers, proxies, upgrades, or another operating system, use the official Zabbix download selector and installation manual, replacing only the repository hostname with mirror.sepehrsabz.ir when the corresponding path exists on this mirror.