Zabbix Server - Install on Debian 10.3.0 Kategoria: Zabbix | Tagi: debian10, zabbix | Autor: Bartłomiej Gałęzia

1. Base packages

su
apt-get update
apt-get install aptitude vim nmap mc screen traceroute sudo
aptitude install apache2 mariadb-server
aptitude install php php-mbstring php-gd php-xml php-bcmath php-ldap php-mysql

2. Config

vim /etc/php/7.3/apache2/php.ini
[Date]
; http://php.net/date.timezone
date.timezone = 'Europe/Warsaw'

3. Install zabbix

wget https://repo.zabbix.com/zabbix/4.0/debian/pool/main/z/zabbix-release/zabbix-release_4.0-3+buster_all.deb
dpkg -i zabbix-release_4.0-3+buster_all.deb
aptitude update
aptitude install zabbix-server-mysql zabbix-frontend-php zabbix-agent

4. Database

mysql -u root -p
CREATE DATABASE zabbixdb character set utf8 collate utf8_bin;
CREATE USER 'zabbix'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON zabbixdb.* TO 'zabbix'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
cd /usr/share/doc/zabbix-server-mysql

Próba załadowania bazy z pliku "create.sql.gz" zakończy się błędem

ERROR 1118 (42000) at line 1278: Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.

dlatego należy dodać dodatkowe polecenie "SET SESSION innodb_strict_mode=OFF;" na początku pliku

{ echo -n 'SET SESSION innodb_strict_mode=OFF; '; zcat create.sql.gz; } > create.sql
mysql -u zabbix -ppassword zabbixdb < create.sql

5. Zabbix config

vim /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbixdb
DBUser=zabbix
DBPassword=password

6. Restart services

service apache2 restart
service zabbix-server restart
service zabbix-agent restart

7. Web installer

http://192.168.0.1/zabbix

Username:  Admin
Password:  zabbix

Źródło: https://tecadmin.net/install-zabbix-on-debian/

Dodaj komentarz

Brak komentarzy, bądź pierwszy i dodaj swój komentarz