Install the Latest Zabbix on Ubuntu 24.04 Noble Numbat: Ultimate Guide

This guide intends to teach you to Install the Latest Zabbix on Ubuntu 24.04. As you must know, Zabbix is one of the most popular monitoring tools that can be used to monitor servers, virtual machines, cloud services, etc. At the current time, the latest version available of Zabbix service is Zabbix 7.2. It ships with a lot of improvements and new features. Now proceed to the following steps on the Orcacore website to Install the Latest Zabbix on Ubuntu 24.04.

How To Install the Latest Zabbix on Ubuntu 24.04?

In this guide, we want to Install the Latest Zabbix on Ubuntu 24.04 with LAMP Stack. For this purpose, you need the following requirements:

Once you are done, follow the steps below to Install the Latest Zabbix on Ubuntu 24.04.

Step 1. Configure PHP For Zabbix on Ubuntu 24.04

To install the latest Zabbix on Ubuntu 24.04, you need to install some PHP extensions. To do this, run the following command:

sudo apt install php-mbstring php-gd php-xml php-bcmath php-ldap php-mysql -y

Then, you must edit your PHP INI file to make some changes. You can use your desired text editor to open the file like Vi Editor or Nano Editor:

Tips: To find your PHP Ini file, you can check this guide on Find php.ini File Location on Linux.

sudo vi /etc/php/8.3/apache2/php.ini

In the file, look for the following lines and change the value as shown below:

memory_limit = 256M
upload_max_filesize = 16M
post_max_size = 16M
max_execution_time = 300
max_input_time = 300

Then, look for the following lines and uncomment them by removing “:” from the beginning of the line and setting the value to:

max_input_vars 10000
date.timezone = ETC/UTC

When you are done, save and close the file.

Note: For setting the timezone, remember to use the correct timezone.

To apply the changes, restart the Apache service with the following command:

sudo systemctl restart apache2

Step 2. Create Zabbix User Database on Ubuntu 24.04

To install the latest Zabbix on Ubuntu 24.04, you need to create a database and user. To do this, log in to your MariaDB shell with the command below:

sudo mysql -u root -p

From there, use the following commands to create your database, user database, grant the privileges to it, enable the log_bin_trust_function_creators option, and flush the privileges:

MariaDB [(none)]> CREATE DATABASE zabbixdb character set utf8 collate utf8_bin;
MariaDB [(none)]> CREATE USER 'zabbixuser'@'localhost' IDENTIFIED BY 'password';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON zabbixdb.* TO 'zabbixuser'@'localhost' WITH GRANT OPTION;
MariaDB [(none)]> set global log_bin_trust_function_creators = 1;
MariaDB [(none)]> FLUSH PRIVILEGES;

Once you are done, exit from your MariaDB shell:

MariaDB [(none)]> EXIT;

Step 3. Download and Install Zabbix 7.2 on Ubuntu 24.04

At the current time, the latest version of Zabbix is Zabbix 7.2. You can check the official website for checking new releases. Now you can use the following wget command to download the Zabbix package:

sudo wget https://repo.zabbix.com/zabbix/7.2/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.2+ubuntu24.04_all.deb

Then, install the Zabbix repository and run the system update with the following commands:

# sudo dpkg -i zabbix-release_latest_7.2+ubuntu24.04_all.deb
# sudo apt update

Now use the following command to install the latest Zabbix on Ubuntu 24.04:

sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent -y

Start and Enable Zabbix Server on Ubuntu

At this point, you need to start and enable your Zabbix server with the following commands:

# sudo systemctl start zabbix-server
# sudo systemctl enable zabbix-server

Then, verify Zabbix server is active and running on Ubuntu 24.04:

sudo systemctl status zabbix-server

You should see:

Install the Latest Zabbix on Ubuntu 24.04

Import Zabbix Database Schema

At this point, you must import the Zabbix database on Ubuntu 24.04. To do this, run the command below:

zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbixuser -p zabbixdb

Enter your database user password and wait to be finished. Nothing will be shown in the output.

Then, after importing your database, you need to disable the log_bin_trust_function_creators option. To do this, log in to your MariaDB console and run the commands below:

sudo mysql -u root -p

MariaDB [(none)]> set global log_bin_trust_function_creators = 0;
MariaDB [(none)]> EXIT;

Step 4. Configure Zabbix Server on Ubuntu 24.04

At this step, you must edit the Zabbix default configuration file and define the database settings. To do this, use your favorite editor:

sudo vi /etc/zabbix/zabbix_server.conf

In the file, look for the following lines, uncomment them by removing the “#”, and add your database credential to it:

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

Once you are done, save and close the file. Next, restart the Zabbix server and Apache to apply the changes:

# sudo systemctl restart zabbix-server
# sudo systemctl restart apache2

Step 5. Configure Zabbix Agent on Ubuntu 24.04

At this step, you must edit your Zabbix agent config file. To do this, use your favorite editor to open the file:

sudo vi /etc/zabbix/zabbix_agentd.conf

In the file, look for the following lines and set the values as shown below:

Server=127.0.0.1
ServerActive=127.0.0.1
Hostname=Zabbix Server

Once you are done, save and close the file.

Start and Enable Zabbix Agent on Ubuntu

Now use the following commands to start and enable Zabbix Agent:

# sudo systemctl start zabbix-agent
# sudo systemctl enable zabbix-agent

Then, verify your Zabbix Agent is active and running on Ubuntu 24.04:

sudo systemctl status zabbix-agent

You should see:

Start and Enable Zabbix Agent on Ubuntu 24.04

Step 6. Access Zabbix Dashboard Login

At this point, you have learned to install the latest Zabbix on Ubuntu 24.04 and configure your setup. Now you can use the following URL to access your Zabbix from the web interface and complete your installation:

http://your-server-ip/zabbix

You will see the Zabbix welcome screen, choose your default language, and click Next step.

Welcome to Zabbix 7.2 on Ubuntu 24.04

Then, check for the requirements, if everything is OK click Next step.

Check for Zabbix requirements setup on Ubuntu 24.04

In this step, you must configure the database connection. Add your Zabbix database credentials and click Next step.

Configure Zabbix DB Connection on Ubuntu 24.04

Next, choose a name for your Server and choose your desired theme. Then, click Next step.

Configure Zabbix settings on Ubuntu 24.04

Read the pre-installation summary and click Next step.

Zabbix preinstallation summary Ubuntu 24.04

Once it is finished, you should see the congratulatory message. Click Finish.

Successfully Installed Zabbix on Ubuntu 24.04

Finally, you will see your Zabbix Login screen on Ubuntu 24.04. Enter the following credentials to log in:

username: Admin
password: zabbix
Zabbix 7.2 Login Screen Ubuntu 24.04
Install the Latest Zabbix on Ubuntu 24.04 – Zabbix Login

Now you will have access to the Zabbix dashboard:

Zabbix monitoring dashboard Ubuntu 24.04
Install the Latest Zabbix on Ubuntu 24.04 – Zabbix Dashboard

Note: It is highly recommended to change the Admin user password. Go to the Users tab, select Admin, then change the password for it.

That’s it, you are done.

Conclusion

At this point, you have learned to install the latest Zabbix on Ubuntu 24.04. At the current time, Zabbix 7.2 is the latest version. You can easily use the above guide steps to install LAMP Stack, download Zabbix packages, install them, configure the Zabbix server and agent, and finally access your Zabbix dashboard.

Hope you enjoy it. Also, you may like to read the following articles:

blendOS 4 Announced: A Game-Changer for Linux Users

Ubuntu Core 24 by Canonical

Install and Run Tesseract OCR on Ubuntu 24.04

Wireshark Setup on Ubuntu 24.04

Install Adminer on Debian 12

Install Zoom Client on Ubuntu Terminal

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Stay informed and not overwhelmed, subscribe now!