Rozwiązanie:
visudo
zabbix ALL=(root) NOPASSWD: /usr/bin/nmap
https://ixnfo.com/en/solution-of-error-with-detect-operating-system-in-zabbix.html
Dodaj repozytoria non-free do sources.list
vim /etc/apt/sources.list
deb http://deb.debian.org/debian buster main contrib non-free deb-src http://deb.debian.org/debian buster main contrib non-free deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free deb http://deb.debian.org/debian buster-updates main contrib non-free deb-src http://deb.debian.org/debian buster-updates main contrib non-free
Zainstaluj na serwerze paczki snmp i snmp-base
aptitude update aptitude install snmp snmp-mibs-downloader
Zobacz całość
Dodaj repozytoria non-free do sources.list
vim /etc/apt/sources.list
deb http://deb.debian.org/debian buster main contrib non-free deb-src http://deb.debian.org/debian buster main contrib non-free deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free deb http://deb.debian.org/debian buster-updates main contrib non-free deb-src http://deb.debian.org/debian buster-updates main contrib non-free
Zainstaluj na serwerze paczki snmp i snmp-base
aptitude update aptitude install snmp snmp-mibs-downloader
Zobacz całość
Wybieramy w menu:
Configuration -> Host -> Create Host
Uzupełniamy formularz:
Host name = computer_hostname Visible name = Hostname PC Groups = Linux servers Agent interfaces = 192.168.1.10
W zakładce Templates wybieramy szablon:
Select -> Template OS Linux
i potwierdzamy małym przyciskiem Add i dużym przyciskiem Add.
#wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-3+bionic_all.deb #sudo dpkg -i zabbix-release_4.0-3+bionic_all.deb
sudo aptitude update sudo aptitude install zabbix-agent
sudo vim /etc/zabbix/zabbix_agentd.conf
Server=192.168.1.10 Hostname=computer_hostname
sudo systemctl enable zabbix-agent sudo systemctl start zabbix-agent
https://tecadmin.net/install-zabbix-agent-on-ubuntu-and-debian/
Po wejściu w menu
Administration -> Queue
pokazuje się błąd
Cannot display item queue.
Rozwiązanie:
vim /usr/share/zabbix/include/defines.inc.php
define('ZBX_SOCKET_TIMEOUT', 10); // socket timeout limit
service zabbix-server restart service zabbix-agent restart
Po zalogowaniu przechodzimy do Menu:
Administration -> Media types -> Email
i uzupełniamy formularz.
Po uzupełnieniu klikamy w Update.
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
Zobacz całość
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.
W pliku:
/usr/share/doc/zabbix-server-mysql/create.sql.gz
trzeba dodać na początku:
SET SESSION innodb_strict_mode=OFF;