install zabbix server in ubuntu 16.04

Hi techrunnr Reader, this document deals with how to install zabbix server in ubuntu 16.04.


Zabbix is an open source monitoring software tool for diverse IT components, including networks, servers, virtual machines, and cloud services. Zabbix provides monitoring metrics, among others network utilization, CPU load and disk space consumption

1. Install the PHP packages

sudo apt-get install php7.0-xml php7.0-bcmath php7.0-mbstring

2. By default, ubuntu repository comes with an outdated version of Zabbix. So here we are downloading 3.2 version of Zabbix and adding the repository.

wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb

sudo dpkg -i zabbix-release_3.2-1+xenial_all.deb

3. Update the repository

apt-get update

4. Install Zabbix server, frontend and Zabbix agent

apt-get install zabbix-server-mysql zabbix-frontend-php


apt-get install zabbix-agent

5. Install MySQL server

apt-get install mysql-server

6. Create the database for Zabbix server

root@techrunnr:~# mysql -u root -pmypass
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 1197
Server version: 10.1.34-MariaDB-1~xenial mariadb.org binary distribution

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 character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.72 sec)

MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by 'mypass';
Query OK, 0 rows affected (0.64 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.37 sec)

MariaDB [(none)]> \q
Bye

7. Import the default schema to a newly created database.

zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -p zabbix
Enter password:

8. Update the database in Zabbix configuration file.

vi /etc/zabbix/zabbix_server.conf

DBPassword=mypass

9. update timezone in the php.ini file.

vi /etc/php/7.0/apache2/php.ini

10. Now restart Apache to apply these new settings.

sudo systemctl restart apache2

You can now start the Zabbix server.

sudo systemctl start zabbix-server

Then check whether the Zabbix server is running properly:

11. Now access Zabbix web UI.

http://IP/zabbix

12. Validate all prerequisites.

13. Configure the database.

14. Enter the Zabbix server  details,

Host is your Zabbix server IP address

15. Preinstallation Summary

16. Perform the installation

17. Once you done with installation login Zabbix Web interface using username: Admin and Password: zabbix

That’s It!!!

Now you have completed with the setup of Zabbix server in ubuntu

18. Check the other document for how to configure Zabbix agent and start monitoring

© 2018, Techrunnr. All rights reserved.

#1
#2
#3
Questions Answered
Articles Written
Overall Points

Prabhin Prabharkaran

He is Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!!

Leave a Reply

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.