How to Install Zabbix Server on Debian 11 Server Monitoring. In this tutorial we will learn what Zabbix is and move onto installation phase on Debian 11. Let’s get started.
Simple installing, configuring and deploying applications on the cloud server is not enough for any system administrator. It is also essential to have a centralized monitoring tool to easily monitor the performance of all the servers from a centralized location. This is where the monitoring tools come into the picture. Monitoring tools allow you to monitor system resources including, RAM, CPU, input/output, network, disk usage, processes, etc.
What is Zabbix
Zabbix is a free, open source and enterprise class monitoring solution for network monitoring and application monitoring of millions of metrics. With Zabbix, you can monitor networks, servers, virtual machines (VM) and cloud services. Zabbix provides a simple and user friendly web interface that helps you to monitor multiple servers from the web browser. It works on the client server model and is capable of monitoring millions of metrics from tens of thousands of servers.
Follow this post to guide you how to install the Zabbix Monitoring server on Debian 11.
Install Zabbix Server on Debian 11 Server Monitoring
Getting Started
Before starting, you will need to install some dependencies required to install Zabbix on your server. You can install all the dependencies by running the following command:
You will also need to install the Apache web server , MariaDB, PHP server and other PHP extensions on your server. You can install it by running the following command:
Once the Zabbix is downloaded, extract the downloaded file with the following command:
tar -xvzf zabbix-6.0.3.tar.gz
Next, navigate to the Zabbix directory and configure it with the following command:
cd zabbix-6.0.3
./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
You will get the following output:
Enable agent 2: no
Enable web service: no
Enable Java gateway: no
LDAP support: no
IPv6 support: yes
***********************************************************
* Now run 'make install' *
* *
* Thank you for using Zabbix! *
* *
***********************************************************
Please install the Zabbix with the following command:
After the Zabbix installation, you will need to import Schema, Images and data to the Zabbix database. You can import them with the following commands:
cd ~/zabbix-6.0.3/database/mysql/
mysql -u zabbixadmin -p zabbixdb < schema.sql
mysql -u zabbixadmin -p zabbixdb < images.sql
mysql -u zabbixadmin -p zabbixdb < data.sql
Next, edit the Zabbix configuration file:
nano /usr/local/etc/zabbix_server.conf
Define your database settings and log file as shown below:
Next, you will need to create a systemd service file to manage the Zabbix service. You can create the systemd service file for the Zabbix server with the following command:
Now, open your web browser and access the Zabbix web installation wizard using the URL http://your-server-ip/zabbix. You should see the Zabbix language selection screen:
Select your language and click on the Nextstep button. You should see the Zabbix prerequisites check screen:
Make sure all required packages are installed then click on the Nextstep button. You should see the Zabbix database configuration screen:
Provide your database settings then click on the Nextstep button. You should see the Zabbix server settings screen:
Provide your Zabbix server name, timezone, theme, and click on the Nextstep button. You should see the Zabbix installation summary screen:
Verify all the configuration details and click on the Nextstep button to start the installation. Once the Zabbix is installed, you should see the following screen:
Click on the Finish button. You should see the Zabbix login screen:
Provide default admin username as Admin and Password as zabbix then click on the Signin button. You should see the Zabbix dashboard on the following screen:
How to Install Zabbix Server on Debian 11 Server Monitoring Conclusion
In this post, we explained how to install and configure the Zabbix monitoring server on Debian 11. You can now add your remote servers from the Zabbix dashboard and start monitoring them from the central location.
Also have a look at alternatives to Zabbix like Nagios Core, Grafana, Solar Winds or Prometheus.
I am a fan of open source technology and have more than 10 years of experience working with Linux and Open Source technologies. I am one of the Linux technical writers for Cloud Infrastructure Services.