Installation (Debian, PostgreSQL, Apache)
Installing Zabbix itself:
sudo wget https://repo.zabbix.com/zabbix/7.0/debian/pool/main/z/zabbix-release/zabbix-release_latest_7.0+debian13_all.deb
sudo dpkg -i zabbix-release_latest_7.0+debian13_all.deb
sudo apt update
sudo apt install zabbix-server-pgsql zabbix-frontend-php php8.4-pgsql zabbix-apache-conf zabbix-sql-scripts zabbix-agentMake sure the database is installed:
sudo apt update
sudo apt install postgresql -y
sudo systemctl start postgresql
sudo systemctl enable postgresqlCreate the zabbix user:
sudo -u postgres createuser --pwprompt zabbixCreate the database:
sudo -u postgres createdb -O zabbix zabbixImport initial data:
zcat /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbixOpen file for editing:
sudo nano /etc/zabbix/zabbix_server.confFind the line, uncomment it and enter the password:
DBPassword=passwordStart:
sudo systemctl restart zabbix-server zabbix-agent apache2
sudo systemctl enable zabbix-server zabbix-agent apache2Go to the page in a browser:
http://ipaddress/zabbix
Setup Wizard 🧙♂️
You’ll see the welcome window “Welcome to Zabbix”. Click Next step.
- Check of pre-requisites: Everything should be OK (green). Click Next.
- Configure DB connection (Important!):
- Database type: Select PostgreSQL (that’s what you installed).
- Database host:
localhost - Database name:
zabbix - User:
zabbix - Password: Enter the password you set when creating the database (we agreed on
password). - Click Next.
- Settings: Nothing to change here. Click Next.
- Summary: Just click Next, then Finish.
Logging In 🔑
After configuration you’ll be redirected to the login window. Default credentials (case-sensitive!):
- Username:
Admin(Mandatory with capital A) - Password:
zabbix(All lowercase) Enter them and click Sign in.