Zabbix 4.0 : Install2019/08/08 |
Install Zabbix 4.0 LTS which is an enterprise open source monitoring system.
It's possible to monitor not only Linux but Windows, Solaris, IBM AIX and others. |
|
[1] | |
[2] | |
[3] | |
[4] | Add Zabbix 4.0 repository and Install Zabbix Server. To monitor Zabbix Server itself, Install Zabbix Agent, too. |
root@dlp:~# wget https://repo.zabbix.com/zabbix/4.0/debian/pool/main/z/zabbix-release/zabbix-release_4.0-3+buster_all.deb root@dlp:~# dpkg -i zabbix-release_4.0-3+buster_all.deb Selecting previously unselected package zabbix-release. (Reading database ... 32617 files and directories currently installed.) Preparing to unpack zabbix-release_4.0-3+buster_all.deb ... Unpacking zabbix-release (1:4.0-3+buster) ... Setting up zabbix-release (1:4.0-3+buster) ...root@dlp:~# apt update root@dlp:~# apt -y install zabbix-server-mysql zabbix-agent zabbix-frontend-php php-mysql php-gd php-xml-util php-bcmath php-net-socket php-gettext |
[5] | Create a database for Zabbix. |
root@dlp:~# mysql Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 55 Server version: 10.3.15-MariaDB-1 Debian 10 Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> create database zabbix; Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@'localhost' identified by 'password'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@'%' identified by 'password'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> exit Byeroot@dlp:~# cd /usr/share/doc/zabbix-server-mysql*/ root@dlp:/usr/share/doc/zabbix-server-mysql# gzip -d create.sql.gz root@dlp:/usr/share/doc/zabbix-server-mysql# mysql zabbix < create.sql |
[6] | Configure and start Zabbix Server. |
root@dlp:~#
vi /etc/zabbix/zabbix_server.conf # line 100: confirm DB name DBName=zabbix # line 116: confirm DB user DBUser=zabbix # line 124: uncomment and add DB user's password DBPassword= password
systemctl restart zabbix-server
|
[7] | Configure and start Zabbix Agent to monitor Zabbix Server itself. |
root@dlp:~#
vi /etc/zabbix/zabbix_agentd.conf # line 150: change to own hostname Hostname= dlp.srv.world
systemctl restart zabbix-agent
|
[8] | Change access permission for Zabbix Web frontend if you need to limit accesses for it. |
root@dlp:~#
vi /etc/apache2/conf-enabled/zabbix.conf # line 10: change permission if you need # Allow from allAllow from 10.0.0.10/24
systemctl restart apache2
|
Sponsored Link |
|