User Tools

Site Tools


notes:zabbix4-ubuntu16-install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
notes:zabbix4-ubuntu16-install [2018/09/03 14:30] – [Install Zabbix 4.0 Server on Ubuntu 16.04 (Xenial) LTS] adminnotes:zabbix4-ubuntu16-install [2018/09/04 09:41] – [Install Zabbix 4.0 Server on Ubuntu 16.04 (Xenial) LTS] 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**// --
 +
  
 ==== Add Zabbix 4 Repository ===== ==== Add Zabbix 4 Repository =====
  
-Add zabbix 4 repository (beta is version still numbered as 3.5)+Add Zabbix 4 repository (beta is version still numbered as 3.5)
   echo "deb http://repo.zabbix.com/zabbix/3.5/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/zabbix4.list > /dev/null   echo "deb http://repo.zabbix.com/zabbix/3.5/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/zabbix4.list > /dev/null
  
Line 19: Line 19:
   apt-get install mysql-server zabbix-server-mysql zabbix-release   apt-get install mysql-server zabbix-server-mysql zabbix-release
  
-If everything went wellwe can also add the Zabbix Web UI (not needed but really, really useful) with +Secure your Mysql/MariaDB installation with 
-  apt-get install zabbix-frontend-php+  mysql_secure_installation 
 + 
 +default answers (see below) are fine for a normal setup 
 + 
 +  Enter current password for root (enter for none): --> should be emptyjust 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)]> grant all privileges on zabbix.* to zabbix@localhost identified by '<mysql-zabbix-password>'; 
 +  MariaDB [(none)]> flush privileges; 
 +  MariaDB [(none)]> quit; 
 + 
 +Import initial schema and data for the Zabbix server with
 +  zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -p zabbix 
 +(when asked, type the <mysql-zabbix-password>
 + 
 +Edit /etc/zabbix/zabbix_server.conf and set 
 +  DBPassword=<mysql-zabbix-password> 
 + 
 +Now install Zabbix web frontend 
 +  apt-get install zabbix-frontend-php zabbix-get 
 + 
 +Set the [[http://php.net/manual/en/timezones.php|right timezone]] for you (mine is Europe/Rome) 
 +  echo -e "<Directory \"/usr/share/zabbix\">\n   php_value date.timezone Europe/Rome\n</Directory>" | sudo tee /etc/apache2/conf-available/zabbix-local.conf 
 +  sudo a2enconf zabbix-local 
 + 
 +and restart Apache and Zabbix Server 
 +  sudo systemctl restart apache2 
 +  sudo systemctl restart zabbix-server 
 + 
 +==== Configure Web UI ===== 
 + 
 +Now point your browser to 
 +  http://your-webserver/zabbix/ 
 +and follow the wizard to configure Zabbix frontend and its access to the Mysql database .
  
-Now edit ''/etc/apache2/conf.d/zabbix'', uncomment the ''date.timezone'' line and set the correct timezone. Mine looks like +Finally, when presented the Zabbix “Welcome” screen, enter the user name '//Admin//' with password '//zabbix//to log in as a Zabbix superuser for the first time(then change immediately the password!)
-    php_value date.timezone Europe/Rome+
notes/zabbix4-ubuntu16-install.txt · Last modified: 2018/09/07 10:13 by admin