Zabbix is een monitoring systeem.
# https://bestmonitoringtools.com/how-to-install-zabbix-on-raspberry-pi-raspbian/
#!/bin/bash
clear
# Zabbix 5.0 LTS version (supported until May 31, 2025)
# wget https://repo.zabbix.com/zabbix/5.0/raspbian/pool/main/z/zabbix-release/zabbix-release_5.0-1+$(lsb_release -sc)_all.deb
# dpkg -i zabbix-release_5.0-1+$(lsb_release -sc)_all.deb
# apt update
# apt -y install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent
# OR
# Zabbix 5.2 standard version (supported until May 31, 2021)
sudo wget https://repo.zabbix.com/zabbix/5.2/raspbian/pool/main/z/zabbix-release/zabbix-release_5.2-1+debian$(cut -d"." -f1 /etc/debian_version)_all.deb
sudo dpkg -i zabbix-release_5.2-1+debian$(cut -d"." -f1 /etc/debian_version)_all.deb
sudo apt update
sudo apt -y install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent
sudo apt -y install mariadb-server
sudo systemctl start mariadb
sudo systemctl enable mariadb
sudo mysql_secure_installation
#
## De eerste vraag met 'n' beantwoorden, de rest met 'y'.
#
# Create database
sudo mysql -uroot -p'Pa$$w0rd' -e "create database zabbix character set utf8 collate utf8_bin;"
sudo mysql -uroot -p'Pa$$w0rd' -e "grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbixDBpass';"
# Import initial schema and data
echo Even geduld...
sudo zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p'zabbixDBpass' zabbix
sudo nano /etc/zabbix/zabbix_server.conf
# Vul in: DBPassword=zabbixDBpass
sudo systemctl restart zabbix-server zabbix-agent
sudo systemctl enable zabbix-server zabbix-agent
sudo nano /etc/zabbix/apache.conf
Onderaand toevoegen: php_value date.timezone Europe/Amsterdam
sudo systemctl restart apache2
sudo systemctl enable apache2
# Basically, in this wizard you only need to enter a password for Zabbix DB user and just click “Next step” for everything else.
# Inloggen met http://server_ip/zabbix
# Admin/zabbix