Zabbix 3.0 : Install2018/06/29 |
Install Zabbix 3.0 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] | Install Zabbix server. To monitor Zabbix itself, Install Zabbix Agent, too. |
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 39 Server version: 10.1.29-MariaDB-6 Ubuntu 18.04 Copyright (c) 2000, 2017, 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/zabbix-server-mysql root@dlp:/usr/share/zabbix-server-mysql# gunzip *.sql.gz root@dlp:/usr/share/zabbix-server-mysql# mysql zabbix < schema.sql root@dlp:/usr/share/zabbix-server-mysql# mysql zabbix < images.sql root@dlp:/usr/share/zabbix-server-mysql# mysql zabbix < data.sql |
[6] | Configure and start Zabbix Server. |
root@dlp:~#
vi /etc/zabbix/zabbix_server.conf # line 91: make sure DB name DBName=zabbix # line 107: make sure DB user DBUser=zabbix # line 115: uncomment and change DB password for Zabbix 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 147: change to your own hostname Hostname= dlp.srv.world
systemctl restart zabbix-agent
|
[8] | Change some settings for PHP and Apache2. |
root@dlp:~#
vi /etc/php/7.2/apache2/php.ini # line 383: change to Zabbix requiements max_execution_time = 300
# line 393: change to Zabbix requiements max_input_time = 300
# line 672: change to Zabbix requiements post_max_size = 16M
root@dlp:~#
vi /etc/apache2/conf-available/zabbix-frontend-php.conf # line 10: add access permittion for Zabbix Web frontend site # Require all grantedRequire ip 127.0.0.1 10.0.0.0/24
a2enconf zabbix-frontend-php Enabling conf zabbix-frontend-php. To activate the new configuration, you need to run: systemctl reload apache2root@dlp:~# systemctl restart apache2
|
Sponsored Link |
|