Saturday, January 4, 2025
Google search engine
HomeGuest BlogsHow To Install Zabbix 6 on Debian 11 / Debian 10

How To Install Zabbix 6 on Debian 11 / Debian 10

Introduction

“Zabbix is the ultimate enterprise-level software designed for real-time monitoring of millions of metrics collected from tens of thousands of servers, virtual machines, and network devices.” New Zabbix 6.0 LTS is out with plenty of new features and beautiful improvements. If you are interested in knowing what the new LTS release has for you, kindly visit the official release page to check out the exquisite buffet therein. In this guide we will install and configure Zabbix 6.0 LTS on Debian 11/10 Linux machine.

For Ubuntu: How To Install Zabbix Server on Ubuntu

New features in Zabbix 6.0 LTS

Listed below represents just the first layer of the Onion.

  • High availability, performance and scalability – Zabbix 6.0 LTS has proxies to provide automatic load balancing and HA, native HA setup for Zabbix Server, a scalable history storage and API performance improvements.
  • Machine learning for baseline monitoring with advanced anomaly detection.
  • Security improvements with password complexity policy for Zabbix UI and audit log for all user and API operations being added.
  • Event correlation and enterprise alarm console – It has the ability to perform event filtering, de-duplication and aggregation using event preprocessing rules, the ability to manually hide and suspend problems for a period of time as well as a problem view that is optimised for faster problem resolution and collaborative work.
  • Advanced visualization and reporting – this comprises of stacked graphs, graph annotations, advanced host status widgets, events over time widget, geographical maps e.t.c
  • Business service monitoring (BSM) with support for alerting on service status changes, multi-tenancy for Services, impact analysis, import/export for service tree, ability to scale to 100K of business services e.t.c

The better part is that we are going to install release 6.0 of Zabbix Server in Debian 11 / Debian 10 Linux. Kindly follow through as we get it done together.

Step 1: Add Zabbix repository

Add MariaDB repository:

curl -LsS -O https://downloads.mariadb.com/MariaDB/mariadb_repo_setup
sudo bash mariadb_repo_setup --mariadb-server-version=10.8

Run the commands below to Install Zabbix repository

Debian 11:

sudo apt update && sudo apt install wget
wget https://repo.zabbix.com/zabbix/6.0/debian/pool/main/z/zabbix-release/zabbix-release_6.0-4%2Bdebian11_all.deb
sudo dpkg -i zabbix-release_*debian11_all.deb

Debian 10:

sudo apt update && sudo apt install wget
wget https://repo.zabbix.com/zabbix/6.0/debian/pool/main/z/zabbix-release/zabbix-release_6.0-4%2Bdebian10_all.deb
sudo dpkg -i zabbix-release_*debian10_all.deb

Step 2: Install Zabbix 6.0 LTS on Debian 11 / Debian 10

Zabbix comes with three components, the Server, Proxy and Frontend. The proxy is optional.

Install Zabbix Server

This will install MariaDB database server on Debian Linux system.

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

Step 3: Install and Configure Database Server

Install MariaDB database server

sudo apt install mariadb-server mariadb-client

Check installed version by running the command below

$ mariadb --version
mariadb  Ver 15.1 Distrib 10.8.5-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

Start and enable database service:

sudo systemctl enable --now mariadb

Run the command below and say “Yes(Y)” to remove anonymous users, remove test databases and to disable remote root login.

$ sudo mariadb-secure-installation
Enter current password for root (enter for none): <ENTER>
Switch to unix_socket authentication [Y/n] n
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y

Login to MariaDB

sudo mysql -u root -p

Create Zabbix Database and Zabbix User:

CREATE DATABASE zabbix character set utf8mb4 collate utf8mb4_bin;
GRANT ALL PRIVILEGES ON zabbix.* TO zabbix@localhost IDENTIFIED BY 'SafePassWord';
FLUSH PRIVILEGES;
QUIT

Import database data for Zabbix

Now import initial schema and data for the server with MySQL. Once you issue this command, give it some time for it to complete.

$ sudo zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix
Enter password: SafePassWord (The password you set above for zabbix database user)

Step 4: Configure database for Zabbix server

Open Zabbix server configuration file and make changes as shown below. If you had used different Database and User names, kindly update them accordingly.

sudo vim /etc/zabbix/zabbix_server.conf

Sett your configurations for database connection like below.

DBName=zabbix
DBUser=zabbix
DBPassword=SafePassWord

Step 5: Install Zabbix frontend on Debian

This will install Apache and PHP on Debian Linux.

sudo apt install zabbix-frontend-php zabbix-apache-conf 

Check installed versions of Apache and PHP

$ apache2 -v
Server version: Apache/2.4.54 (Debian)
Server built:   2022-06-09T04:26:43

$ php -v
PHP 7.4.30 (cli) (built: Jul  7 2022 15:51:43) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies

Configure PHP’s date.timezone parameter that Zabbix uses in its setup

$ sudo vim /etc/php/*/apache2/php.ini
;line 963
date.timezone = Africa/Nairobi 

Restart apache2

sudo systemctl restart apache2

Start other Zabbix services

sudo systemctl enable zabbix-server zabbix-agent apache2
sudo systemctl restart zabbix-server zabbix-agent apache2

Configure Zabbix frontend

With a successful installation, connect to Zabbix Frontend on http://server_ip_or_name/zabbix

Install and Configure Zabbix 6.0 LTS on Ubuntu 20.0418.04

You should see a following page similar to the one illustrated below. Make sure all pre-requisites record a green “OK” then click “Next step

Install and Configure Zabbix 6.0 LTS on Ubuntu 20.0418.04 1

You should see a following page similar to the one shown below asking for Database Details.

Install and Configure Zabbix 6.0 LTS on Ubuntu 20.0418.04 2

Enter the Database details we set up earlier. You can notice that TLS can be configured in this step if you would wish to have encryption in your database connection. Click “Next step” once done

Install and Configure Zabbix 6.0 LTS on Ubuntu 20.0418.04 3

Input your Zabbix Server details including a name of your server if you would wish then hit “Next step” once done. You should see a summary of the installation. Simply click “Next Step

Install and Configure Zabbix 6.0 LTS on Ubuntu 20.0418.04 4

Next, just Finish up the settings by clicking on “Finish

Install and Configure Zabbix 6.0 LTS on Ubuntu 20.0418.04 5

Step 6: Log in to Zabbix Frontend Portal

After you finish Step 5, you will be redirected to the Login Page as shown below

Install and Configure Zabbix 6.0 LTS on Ubuntu 20.0418.04 6

The default login credentials for Zabbix are:

Username: Admin
Password: zabbix

On successful authentication, you will be granted the Zabbix dashboard.

Install and Configure Zabbix 6.0 LTS on Ubuntu 20.0418.04 100

Remember that the credential can be changed under the Administration tab once you log in.

Navigate to Administration > Users > Admin > Password > Change Password

zabbix 5 web 7 dashboard

Conclusion

The new Zabbix Server 6.0 LTS is now running on Apache web server and we hope everything went well on your side. Take a look at the new features implemented and try all the configurations you need for your environment. Otherwise, we would wish to thank you for taking the time on the blog and for your continued support.

Other guides you might also like include the following:

RELATED ARTICLES

Most Popular

Recent Comments