notes:zabbix4-ubuntu16-install
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
notes:zabbix4-ubuntu16-install [2018/09/03 14:23] – created admin | notes:zabbix4-ubuntu16-install [2018/09/07 10:13] (current) – [Install Zabbix 4 Local Agent] admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Tested with **Ubuntu 16.04 (Xenial) LTS** and **Zabbix Server 4.0 beta 1** on **September 2018** | ||
- | |||
====== Install Zabbix 4.0 Server on Ubuntu 16.04 (Xenial) LTS ====== | ====== Install Zabbix 4.0 Server on Ubuntu 16.04 (Xenial) LTS ====== | ||
+ | -- //Tested with **Ubuntu 16.04 (Xenial) LTS** and **Zabbix Server 4.0 beta 1** on **September 2018**// -- | ||
- | Edit ''/ | + | ==== Add Zabbix 4 Repository ===== |
- | | + | Add Zabbix 4 repository (beta is version still numbered as 3.5) |
- | deb-src http://repo.zabbix.com/zabbix/2.2/debian/ wheezy main contrib non-free | + | echo "deb http:// |
- | Then add the gpg key | + | Add the missing public |
- | | + | |
- | gpg --export --armor D13D58E479EA5ED4 | sudo apt-key add - | + | |
and update the apt package list with | and update the apt package list with | ||
- | apt-get update | + | |
+ | |||
+ | ==== Install Zabbix 4 Server ===== | ||
Install the Zabbix server (if //mysql// has not been installed before, please note down the //root// password!) | Install the Zabbix server (if //mysql// has not been installed before, please note down the //root// password!) | ||
apt-get install mysql-server zabbix-server-mysql zabbix-release | apt-get install mysql-server zabbix-server-mysql zabbix-release | ||
- | If everything went well, we can also add the Zabbix | + | Secure your Mysql/ |
- | apt-get install zabbix-frontend-php | + | sudo mysql_secure_installation |
+ | |||
+ | default answers (see below) are fine for a normal setup | ||
+ | |||
+ | Enter current password for root (enter for none): --> should be empty, just press Enter | ||
+ | Set root password? [Y/n] --> Y | ||
+ | Remove anonymous users? [Y/n] --> Y | ||
+ | Disallow root login remotely? [Y/n] --> | ||
+ | Remove test database and access to it? [Y/n] --> Y | ||
+ | Reload privilege tables now? [Y/n] --> Y | ||
+ | |||
+ | Now login on mysql as root with the password just choosen | ||
+ | $ mysql -uroot -p | ||
+ | and create a database (and a user) for Zabbix | ||
+ | MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin; | ||
+ | MariaDB [(none)]> | ||
+ | MariaDB [(none)]> | ||
+ | MariaDB [(none)]> | ||
+ | |||
+ | Import initial schema and data for the Zabbix server | ||
+ | | ||
+ | (when asked, type the < | ||
+ | |||
+ | Edit / | ||
+ | DBPassword=< | ||
+ | |||
+ | Now install Zabbix web frontend | ||
+ | sudo apt-get install zabbix-frontend-php | ||
+ | |||
+ | Set the [[http:// | ||
+ | echo -e "< | ||
+ | sudo a2enconf zabbix-local | ||
+ | |||
+ | and restart Apache and Zabbix Server | ||
+ | sudo systemctl restart apache2 | ||
+ | sudo systemctl restart zabbix-server | ||
+ | |||
+ | ==== Install Zabbix 4 Local Agent ===== | ||
+ | |||
+ | This step it is not mandatory, but really useful for monitoring the server itself through Zabbix. Follow the [[notes: | ||
+ | |||
+ | ==== Configure Web UI ===== | ||
+ | |||
+ | Now point your browser to | ||
+ | http:// | ||
+ | and follow the wizard to configure Zabbix frontend and its access to the Mysql database . | ||
- | Now edit ''/etc/apache2/conf.d/zabbix'' | + | Finally, when presented the Zabbix “Welcome” screen, enter the user name '//Admin//' |
- | php_value date.timezone Europe/Rome | + |
notes/zabbix4-ubuntu16-install.txt · Last modified: 2018/09/07 10:13 by admin