Skip to content

πŸ“˜ Zabbix Install

(Written February 2026)

Abstract

Install Zabbix and integrate Proxmox


Prerequisites


Step 1: Zabbix Install

Go to https://www.zabbix.com/download, and fill in the details.

You can find more update to date commands when going to the download link of Zabbix.

wget https://repo.zabbix.com/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu24.04_all.deb

dpkg -i zabbix-release_latest_7.4+ubuntu24.04_all.deb
apt-get update
apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent

Step 2: Zabbix database

I have selected to use MySQL To install it use:

apt install mysql-server

Run the following and add a root password:

mysql -uroot -p

Create a databose for zabbix:

create database zabbix character set utf8mb4 collate utf8mb4_bin;

Create a dedicated user for the database:

create user zabbix@localhost identified by 'Place Your Password Here';

Grant privileges to that user:

grant all privileges on zabbix.* to zabbix@localhost;

Allow creating stored functions and triggers without SUPER privileges when binary logging is enabled.

set global log_bin_trust_function_creators = 1;

FLUSH PRIVILEGES;
quit;

Decompress the Zabbix SQL file and imports it into the zabbix MySQL database:

zcat /usr/share/zabbix/sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix

Now that is done we can disable log_bin_trust_function_creators again:

mysql -uroot -p

Fill in the root password.

set global log_bin_trust_function_creators = 0;
quit;

Now we can tell Zabbix what the password is for its database. (fill in the database password that you used for the zabbix user)

nano /etc/zabbix/zabbix_server.conf

In that file you will find:

# DBPassword=

Uncomment it by removing the # and add your zabbix DB user password.

Now lets restart the Zabbix server and agent process:

systemctl restart zabbix-server zabbix-agent apache2
And enable it at boot:
systemctl enable zabbix-server zabbix-agent apache2

And to verify that it is working:

systemctl status zabbix-server 

systemctl status zabbix-agent 

Now connect to the dashboard:

http://IPofYourVM/zabbix

Step 3: Configure the dashboard

In the dashboard you can continue through the wizard and fill in the requested details.

Once at the login screen use the details:

Username: Admin
Password: zabbix

zabbix-install

Integration into Proxmox

Create a user in Proxmox for Zabbix monitoring: zabbix-install

Add the PVEAuditor role to the user:
zabbix-install

Create an API token (and be sure to disable the 'Privilege Separation' setting so that it will inherit the privileges from the user):
zabbix-install
Be sure to save that Token secret somewhere

Now for the configuration in Zabbix: Create new host
zabbix-install

Add the following macro's
zabbix-install