Would you like to learn how to install Zabbix 5 on Ubuntu Linux? In this tutorial, we are going to show you how to install, configure, and access a Zabbix5 on a computer running Ubuntu Linux.

• Ubuntu 18.04
• Ubuntu 19.04
• Ubuntu 20.04
• Zabbix 5.0.0

In our example, we are going to use TimescaleDB as the database.

Zabbix Playlist:

On this page, we offer quick access to a list of videos related to Zabbix installation.

Don’t forget to subscribe to our youtube channel named FKIT.

Tutorial Zabbix 5 – TimeScaleDB Database Installation

Add the PostgreSQL repository to Ubuntu Linux.

Copy to Clipboard

Add the TimescaleDB repository to Ubuntu Linux.

Copy to Clipboard

Install PostgreSQL with TimescaleDB support.

Copy to Clipboard

Enable the TimescaleDB extension on PostgreSQL.

You should answer yes for all the questions.

Copy to Clipboard

Restart the PostgreSQL service.

Copy to Clipboard

Create a Linux account to the Zabbix user

Copy to Clipboard

Create a PostgreSQL user account named Zabbix.

Copy to Clipboard

In our example, the password kamisma123 was set to the user named zabbix.

Create a PostgreSQL database named Zabbix and set the owner as the Zabbix user.

Copy to Clipboard

Download the Zabbix 5 installation package.

Copy to Clipboard

Import Zabbix database template inside PostgreSQL.

Copy to Clipboard

Enable TimescaleDB on the Zabbix database.

Copy to Clipboard

Run the timescaledb.sql script.

Copy to Clipboard

Restart the PostgreSQL service.

Copy to Clipboard

You have finished the Zabbix TimescaleDB database installation.

Tutorial Zabbix 5  – Installing the Web server

Install the Apache web server and all the required packages.

Copy to Clipboard

Find the location of the php.ini file on your system.

Edit the php.ini file.

Copy to Clipboard

Keep in mind that your PHP version and the location of the file may not be the same of mine.

Set the following items on the php.ini file:

Copy to Clipboard

Set the correct timezone to your location.

Restart the apache service.

Copy to Clipboard

You have finished the Apache web server installation with PHP support.

Tutorial Zabbix Server – Installation on Ubuntu

Download and install the GOLANG package.

Copy to Clipboard

The GOLANG software was installed under the /usr/local folder.

In order to work properly, the GO software expect the system to have a set of environment variables.

Let’s create a file to automate the required environment variables configuration.

Copy to Clipboard

Here is the file content.

Copy to Clipboard

Reboot your computer.

Copy to Clipboard

Verify if the required environment variables were created automatically.

Copy to Clipboard

Here is the correct output:

Copy to Clipboard

Install the required packages.

Copy to Clipboard

Compile and install the Zabbix server.

Copy to Clipboard

Find the location of the zabbix_server.conf file.

Copy to Clipboard

Here is the original file, before our configuration.

Copy to Clipboard

Here is the new file with our configuration.

Copy to Clipboard

Start the Zabbix server.

Copy to Clipboard

Now, you need to choose which version of Zabbix agent you want to use.

Use the following command to start the default Zabbix Agent.

Copy to Clipboard

Or use the following command to start the new Zabbix Agent2.

Copy to Clipboard

Zabbix agent 2 appears to run in the foreground.

Move all the Zabbix frontend files to the root directory of your Apache installation.

Set the correct file permission.

Copy to Clipboard

Restart the Apache service.

Copy to Clipboard

Tutorial Zabbix 5 – Web interface installation

Open your browser and enter the IP address of your web server plus /zabbix.

In our example, the following URL was entered in the Browser:

• http://192.168.100.10/zabbix

The Zabbix web installation interface should be presented.

Click on the Next button.

zabbix 5 install

On the next screen, you will have to check if all the requirements were achieved.

Click on the Next button.

Zabbix 5 requirements

Enter the Database information required to connect to the Zabbix database.

• Host: localhost
• Database Username: zabbix
• Database Password: kamisama123

Zabbix 5 postgresql database configuration

On the next screen, you just have to click on the Next button.

zabbix agent

Now, take a look on the configuration summary.

Click on the Next button.

Zabbix 5 installation summary timescaledb

On the next screen, you will have to click on the Finish button.

zabbix installation

Finally, you will be presented with the Zabbix login screen.

• Zabbix default username:  Admin
• Zabbix default Password: zabbix

zabbix login

After a successful login, you will be sent to the new Zabbix Dashboard.

Zabbix 5 Dashboard

Congratulations! The Zabbix 5 installation was finished successfully.