How To Install Zabbix Server 3.4 on Ubuntu 18.04 / Ubuntu 16.04 & Debian 9

0

Zabbix is an open source enterprise-class monitoring software for servers, network devices, and applications. Zabbix uses Zabbix Agent installed on monitored hosts to collect the data. Also, it can monitor standard services such as SMTP or HTTP web services without having a client on the monitored host.

Additionally, Zabbix supports monitoring via SNMP, TCP, and ICMP checks, as well as over IPMI, JMX, SSH, and telnet. Zabbix can alert you with real-time notification using XMPP.

Zabbix is released under the GPL license v2.

Here, we will see how to install Zabbix Server Ubuntu 18.04, Ubuntu 16.04, and Debian 9.

System Requirements

Hardware

Zabbix requires at least 128MB of RAM and 256MB of HDD space to start with. However, the amount of disk or memory depends on the number of hosts and parameters are being monitored.

2GB of RAM and 2GB of disk space would be sufficient to monitor 500 hosts.

Software

Apache: 1.3.12 or later
MySQL: 5.0.3 or later
PHP: 5.4.0 or later

Configure Zabbix repository

Zabbix is not included in Ubuntu repositories. So, to install Zabbix, we will need to setup the Zabbix repository on the system by installing the Zabbix repository configuration package.

### Ubuntu 18.04 ###

wget https://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+bionic_all.deb
sudo dpkg -i zabbix-release_3.4-1+bionic_all.deb

### Ubuntu 16.04 ###

wget https://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+xenial_all.deb
sudo dpkg -i zabbix-release_3.4-1+xenial_all.deb

### Debian 9 ###

wget https://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+stretch_all.deb
dpkg -i zabbix-release_3.4-1+stretch_all.deb

Install Zabbix Server with MySQL

Use the apt command to install Zabbix server (v3.4) along with MySQL Server on your system.

sudo apt update
sudo apt install -y zabbix-server-mysql zabbix-frontend-php zabbix-agent

Timezone

Edit the Zabbix configuration file to update with your timezone.

sudo nano /etc/zabbix/apache.conf

Update the below line with correct timezone, more time zones.

php_value date.timezone America/New_York

Create Zabbix database

Login to the MariaDB server and create a database for our Zabbix installation.

You can log in to MariaDB server without the MySQL root password by running sudo mysql -u root -p or mysql -u root -p command as root in Ubuntu 18.04.
sudo mysql -u root -p

Create a database with the following details.

Example:

Zabbix DBName=zabbix
Zabbix DBUser=zabbixuser
Zabbix DBPassword=passwordd

mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbixuser@localhost identified by 'password';
mysql> quit;

Once you are done creating a database for Zabbix installation, import the initial schema, and data into it.

cd /usr/share/doc/zabbix-server-mysql
zcat create.sql.gz | mysql -u zabbixuser -p zabbix

Update Zabbix Configuration

Edit the zabbix_server.conf file to set the database details.

sudo nano /etc/zabbix/zabbix_server.conf

Make sure you set as follows.

DBHost=localhost
DBName=zabbix
DBUser=zabbixuser
DBPassword=password

Restart all the services.

sudo systemctl restart zabbix-server zabbix-agent apache2

Enable the Zabbix services to start automatically on system reboot.

sudo systemctl enable zabbix-server zabbix-agent apache2

Configure Zabbix via Web Installer

Open a web browser and point it to the following URL.

http://your-ip-add-ress/zabbix/

Click Next Step on Zabbix welcome page.

Install Zabbix Server 3.4 on Ubuntu 18.04 - Welcome Screen
Install Zabbix Server 3.4 on Ubuntu 18.04 – Welcome Screen

This step verifies all pre-requisites are met for Zabbix Installation. If there are any issues, this page will tell you what all the extension are missing.

If everything is OK, click the Next Step.

Install Zabbix Server 3.4 on Ubuntu 18.04 - Zabbix PreRequisites
Install Zabbix Server 3.4 on Ubuntu 18.04 – Zabbix PreRequisites

Enter the Zabbix database name, DB user, and password, and then click Next Step.

Install Zabbix Server 3.4 on Ubuntu 18.04 - Database Configuration
Install Zabbix Server 3.4 on Ubuntu 18.04 – Database Configuration

Mention the Zabbix server details, port number, and the name for Zabbix installation.

Install Zabbix Server 3.4 on Ubuntu 18.04 - Zabbix Server Details
Install Zabbix Server 3.4 on Ubuntu 18.04 – Zabbix Server Details

You will get a pre-installation summary like below. Click Next Step to go to the next page.

Install Zabbix Server 3.4 on Ubuntu 18.04 - Zabbix Pre-Installation Summary
Install Zabbix Server 3.4 on Ubuntu 18.04 – Zabbix Pre-Installation Summary

Now, you have completed the installation of Zabbix. Click Finish.

Install Zabbix Server 3.4 on Ubuntu 18.04 - Zabbix Installation Completed
Install Zabbix Server 3.4 on Ubuntu 18.04 – Zabbix Installation Completed

Once after you clicked the Finish button, the installer will redirect you to the Zabbix Login Page.

Access Zabbix Server

Log in to Zabbix Server with the default username and password.

Username: “Admin

Password: “zabbix

Username is case sensitive.
Install Zabbix Server on Ubuntu 18.04 - Zabbix Login Screen
Install Zabbix Server on Ubuntu 18.04 – Zabbix Login Screen

Zabbix Dashboard:

Install Zabbix Server on Ubuntu 18.04 - Zabbix Server Dashboard
Install Zabbix Server on Ubuntu 18.04 – Zabbix Server Dashboard

Now, you can proceed to install Zabbix Agent on client systems and then add client machines to Zabbix server for monitoring.

That’s All.

Further Reading

You might also like

How To Install Zabbix Server 3.4 on Ubuntu 18.04 / Ubuntu 16.04 & Debian 9

0