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 revision Previous revision
Next revision
Previous revision
notes:zabbix4-ubuntu16-install [2018/09/03 15:25]
admin
notes:zabbix4-ubuntu16-install [2018/09/07 10:13] (current)
admin [Install Zabbix 4 Local Agent]
Line 1: Line 1:
 ====== 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**// ​--
-//Tested with **Ubuntu 16.04 (Xenial) LTS** and **Zabbix Server 4.0 beta 1** on **September 2018**//+
  
  
Line 13: Line 12:
    
 and update the apt package list with and update the apt package list with
-  apt-get update+  ​sudo apt-get update
  
 ==== Install Zabbix 4 Server ===== ==== Install Zabbix 4 Server =====
Line 21: Line 20:
  
 Secure your Mysql/​MariaDB installation with Secure your Mysql/​MariaDB installation with
-  mysql_secure_installation+  ​sudo mysql_secure_installation
  
 default answers (see below) are fine for a normal setup default answers (see below) are fine for a normal setup
Line 40: Line 39:
   MariaDB [(none)]>​ quit;   MariaDB [(none)]>​ quit;
  
-Import initial schema and data for the server with:+Import initial schema and data for the Zabbix ​server with:
   zcat /​usr/​share/​doc/​zabbix-server-mysql/​create.sql.gz | mysql -uzabbix -p zabbix   zcat /​usr/​share/​doc/​zabbix-server-mysql/​create.sql.gz | mysql -uzabbix -p zabbix
 (when asked, type the <​mysql-zabbix-password>​) (when asked, type the <​mysql-zabbix-password>​)
Line 48: Line 47:
  
 Now install Zabbix web frontend Now install Zabbix web frontend
-  apt-get install zabbix-frontend-php zabbix-get+  ​sudo 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) Set the [[http://​php.net/​manual/​en/​timezones.php|right timezone]] for you (mine is Europe/​Rome)
Line 54: Line 53:
   sudo a2enconf zabbix-local   sudo a2enconf zabbix-local
  
-and restart Apache+and restart Apache ​and Zabbix Server
   sudo systemctl restart apache2   sudo systemctl restart apache2
 +  sudo systemctl restart zabbix-server
  
-==== First configuration ​=====+==== Install Zabbix 4 Local Agent ===== 
 + 
 +This step it is not mandatory, but really useful for monitoring the server itself through Zabbix. Follow the [[notes:​install-zabbix4-agent-on-ubuntu16-debian9|instructions posted here]] to install the Agent. Then, proceed with this guide. 
 + 
 +==== Configure Web UI =====
  
 Now point your browser to Now point your browser to
   http://​your-webserver/​zabbix/​   http://​your-webserver/​zabbix/​
 +and follow the wizard to configure Zabbix frontend and its access to the Mysql database .
  
 +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!)
notes/zabbix4-ubuntu16-install.1535988320.txt.gz · Last modified: 2018/09/03 15:25 by admin