Setting up Zabbix Monitoring

Requirements

apt install locales locales-all

Database

use a recent MariaDB version otherwise you would get

Unable to start Zabbix server due to unsupported MariaDB database server version (10.03.31)
Must be at least (10.05.00)

see /databases/mariadb

prepare the database

mysql -u root

create database zabbix character set utf8 collate utf8_bin;
create user zabbix@localhost identified by 'PASSWORD-HERE';
grant all privileges on zabbix.* to zabbix@localhost;
^D

zcat /usr/share/doc/zabbix-sql-scripts/mysql/create.sql.gz | mysql -uzabbix -p zabbix && echo ALL GOOD

Install

grab the latest release and according to your prefered setup (here buster / mariadb / nginx)

wget https://repo.zabbix.com/zabbix/5.5/debian/pool/main/z/zabbix-release/zabbix-release_5.5-1+debian10_all.deb
dpkg -i zabbix-release_5.5-1+debian10_all.deb
apt update
apt install zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-sql-scripts zabbix-agent

setup access to db

mv -i /etc/zabbix/zabbix_server.conf /etc/zabbix/zabbix_server.conf.dist
grep -vE '^#|^$' /etc/zabbix/zabbix_server.conf.dist > /etc/zabbix/zabbix_server.conf
vi /etc/zabbix/zabbix_server.conf

DBPassword=PASSWORD-HERE

ln -s /etc/zabbix/nginx.conf
vi nginx.conf

    listen          80 default_server;
    server_name     _;

rm /etc/nginx/sites-enabled/default

Operations

start

systemctl restart zabbix-server zabbix-agent nginx php7.3-fpm
systemctl enable zabbix-server zabbix-agent nginx php7.3-fpm

stop

systemctl stop zabbix-server zabbix-agent nginx php7.3-fpm

Ready to go

http://zabbix-test/setup.php

ls -lF /etc/zabbix/web/zabbix.conf.php

and when done

http://zabbix-test/index.php

Admin / zabbix

User Settings / Profile
    Rows per page: ...

Resources

Download and install Zabbix https://www.zabbix.com/download?zabbix=6.0&os_distribution=debian&os_version=10_buster&db=mysql&ws=nginx

6 Web interface installationOld revisionsBacklinksExport to PDF https://www.zabbix.com/documentation/6.0/manual/installation/frontend


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun