How To Install Zabbix on Debian 10

Install Zabbix on Debian 10

In this tutorial, we will show you how to install Zabbix on Debian 10. For those of you who didn’t know, Zabbix is an open-source monitoring tool that is ideal for monitoring your cloud servers. Zabbix is very flexible, information can be retrieved using HTTP/SNMP or by installing a Zabbix agent on the machines to monitor, and allows a lot of customization. It also supports monitoring of storage devices, databases, virtual machines, telephony, IT security resources, and much more.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you through the step by step installation Zabbix on Debian 10 (Buster).

Install Zabbix on Debian 10 Buster

Step 1. Before we install any software, it’s important to make sure your system is up to date by running these following apt commands in the terminal:

Step 2. Installing Zabbix on Debian 10.

Now we add Zabbix package repository:

Once successful adding repository, Use the apt command to install the Zabbix server with the MariaDB support package to have MariaDB as a database server:

Step 3. Configure MariaDB Database Zabbix.

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. You should read and below each step carefully which will set the root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MySQL.

Configure it like this:

Next, we will need to log in to the MariaDB console and create a database for Zabbix. Run the following command:

This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server, you need to create a database for the Zabbix software:

Then, load the Zabbix database schema to the database created above:

Step 4. Configure Zabbix.

Next, edit the Zabbix server configuration file /etc/zabbix/zabbix_server.conf and update the following database configurations. This will be used by Zabbix server to connect to the database:

Step 5. Configure Apache webserver.

Zabbix creates its own apache configuration file /etc/zabbix/apache.conf and makes a link to the Apache configuration directory. Let’s use the following command to restart Apache service:

Also, Restart the Zabbix server:

Step 6. Configure Firewall.

Now allow listening ports on the firewall:

Step 7. Accessing Zabbix Web Interface,

Zabbix will be available on HTTP port 80 by default. Open your favourite browser and navigate to http://your-domain.com/zabbix or http://server-ip-address/zabbix and complete the required steps to finish the installation.

Install Zabbix on Debian 10

Congratulations! You have successfully installed Zabbix. Thanks for using this tutorial for installing Zabbix monitoring software in Debian 10 Buster systems. For additional help or useful information, we recommend you to check the official Zabbix website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!