Zabbix 4.0 : Install2018/10/16 |
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 itself, Install Zabbix Agent, too. |
root@dlp:~# wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-2+bionic_all.deb root@dlp:~# dpkg -i zabbix-release_4.0-2+bionic_all.deb Selecting previously unselected package zabbix-release. (Reading database ... 69657 files and directories currently installed.) Preparing to unpack zabbix-release_4.0-2+bionic_all.deb ... Unpacking zabbix-release (1:4.0-2+bionic) ... Setting up zabbix-release (1:4.0-2+bionic) ...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 43 Server version: 10.1.34-MariaDB-0ubuntu0.18.04.1 Ubuntu 18.04 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 101: confirm DB name DBName=zabbix # line 117: confirm DB user DBUser=zabbix # line 125: 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 |