Would you like to learn how to do a Zabbix 4.4 installation on Ubuntu Linux using Nginx? In this tutorial, we are going to show you how to install, configure and access Zabbix4.4 on a computer running Ubuntu Linux.

• Ubuntu 18.04
• Ubuntu 19.10
• Zabbix 4.4.1
• PHP 7.3-fpm
• Nginx 1.16.1

Hardware List:

The following section presents the list of equipment used to create this Zabbix tutorial.

Every piece of hardware listed above can be found at Amazon website.

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 4.4 Installation on Ubuntu Linux

Install the MySQl database service.

Copy to Clipboard

Access the MySQL service command-line.

Copy to Clipboard

Create a database named zabbix.

Copy to Clipboard

Create a database user named zabbix.

Copy to Clipboard

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

Give the MySQL user named zabbix permission over the database named zabbix.

Copy to Clipboard

Download the Zabbix 4.4 installation package.

Copy to Clipboard

Import Zabbix database template inside MySQL.

Copy to Clipboard

You have finished the Zabbix database installation.

Tutorial Zabbix – Install Nginx on Ubuntu Linux

Use the Ubuntu APT command to install the Nginx server.

Copy to Clipboard

Edit the nginx.conf configuration file.

Add client_max_body_size to the HTTP section.

Configure the maximum upload size to 32 Megabytes.

Copy to Clipboard

Here is the file with our configuration.

Copy to Clipboard

Restart the Nginx web server.

Copy to Clipboard

The Nginx web server was installed successfully.

Tutorial Zabbix – Add PHP support to Nginx

Nginx needs an external program to add PHP support.

Use the Ubuntu APT command to install the PHP required packages.

Copy to Clipboard

Use the following command to install the required PHP modules.

Copy to Clipboard

Find the location of the PHP configuration file on your system.

Edit the php.ini configuration file.

Copy to Clipboard

Your PHP version may not be the same as ours.

Your PHP configuration file location may not be the same as ours.

Here is the file with our configuration.

Copy to Clipboard

Edit the Nginx default website configuration file to enable the PHP support.

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

Verify if your Nginx configuration file has no error.

Copy to Clipboard

Restart the PHP service and restart the Nginx service.

Copy to Clipboard

The Nginx server PHP configuration was completed.

Tutorial – Zabbix Server 4.4 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 go.sh 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

Create a Linux account to the Zabbix user and install the required packages.

Copy to Clipboard

Access the Zabbix package folder, 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 only in the foreground.

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

Set the correct file permission on all moved files

Copy to Clipboard

Restart the Nginx service.

Copy to Clipboard

Tutorial – Zabbix 4.4 Web Installer

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://35.162.85.57/zabbix

The Zabbix web installation interface should be presented.

Click on the Next button.

zabbix 44 install

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

Click on the Next button.

zabbix requirements

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

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

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 installation summary

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 4.4 dashboard

Congratulations! The Zabbix server 4.4 installation was finished successfully.