Skip to content

Zabbix

🗓 June 9th, 2022

Official documentation zabbix

Debian installation

wget https://repo.zabbix.com/zabbix/6.0/debian/pool/main/z/zabbix-release/zabbix-release_6.0-1+debian10_all.deb
sudo dpkg -i zabbix-release_6.0-1+debian10_all.deb
sudo apt update
sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent

if your download above is having trouble, in my case I had trouble with some package which are not in the installation candidate, so first I need to download additional packages, in my case there are perl-modules-5.28 libperl5.28 libevent-2.1-6 libsnmp30

i will download for debian-amd64

wget http://ftp.us.debian.org/debian/pool/main/p/perl/perl-modules-5.28_5.28.1-6+deb10u1_all.deb
sudo dpkg -i perl-modules-5.28_5.28.1-6+deb10u1_all.deb
wget http://ftp.us.debian.org/debian/pool/main/p/perl/libperl5.28_5.28.1-6+deb10u1_amd64.deb
sudo dpkg -i libperl5.28_5.28.1-6+deb10u1_amd64.deb
wget http://kr.archive.ubuntu.com/ubuntu/pool/main/libe/libevent/libevent-2.1-6_2.1.8-stable-4build1_amd64.deb
sudo dpkg -i libevent-2.1-6_2.1.8-stable-4build1_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/n/net-snmp/libsnmp30_5.7.3+dfsg-5+deb10u2_amd64.deb
sudo dpkg -i libsnmp30_5.7.3+dfsg-5+deb10u2_amd64.deb
sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent
# mysql -uroot -p
password
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
mysql> create user zabbix@localhost identified by 'password';
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> quit; 
zcat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix
sudo systemctl restart zabbix-server zabbix-agent apache2
sudo systemctl enable zabbix-server zabbix-agent apache2

http://localhost/zabbix

you can edit php.ini if the requirement is fail (/etc/php/<version>/php.ini)

after all, login as Admin:zabbix