Install and configure Zabbix Server 5.0 LTS on Debian 10 (Buster)
The
You can download this article in PDF format to support us through the following link.
Download the guide in PDF format
turn off
The
The
The
Introduction
“Zabbix is the ultimate enterprise-grade software designed to monitor millions of metrics collected from thousands of servers, virtual machines and network devices in real time.” The new Zabbix 5.0 LTS has many new features and beautiful improvements. If you are interested in understanding the new LTS version provides you with features, please visit Official release page Check out the exquisite buffet. In this guide, we will install and configure Zabbix 5 LTS on Debian 10 Buster.
For Ubuntu 20.04: How to install Zabbix server on Ubuntu 20.04
What’s new in Zabbix 5.0
Listed below is just the first layer of onions.
- Vertical menu: The modern vertical menu in the sidebar replaces the horizontal menu in the new version.
- Test items in the UI: Previously, it was difficult to determine whether the newly configured items were correctly configured. In the new version, you can even test the project (template project, project prototype, low-level discovery rules) from the user interface before saving. If the configuration is correct, you can return the true value.
- Copy and paste widgets: you can copy and paste dashboard widgets into the new version
- Manage a large number of hosts: Several improvements have been made to make the work of using a large number of hosts and other elements easier.
- IPMI sensor discovery: Added a new ipmi.get IPMI item, which returns JSON with information about the IPMI sensor
- Secure connection to Zabbix database: You can now configure a secure TLS connection to MySQL and PostgreSQL databases from the Zabbix front-end or server.
- Stronger password encryption: stronger bcrypt encryption is now used to hash user passwords instead of MD5
- SAML authentication: Login to Zabbix now supports SAML 2.0 authentication.
- Webhook integration: Push Zabbix notifications to (Microsoft Teams, Jira, Telegram, Zendesk, Redmine, etc.)
- Resources: Zabix
Even better, we will install version 5.0 of Zabbix Server in Debian 10 (Buster). Please complete our work together.
Step 1: Add Zabbix repository
Run the following command to install Zabbix repository
sudo apt update && sudo apt install wget
wget https://repo.zabbix.com/zabbix/5.0/debian/pool/main/z/zabbix-release/zabbix-release_5.0-1+buster_all.deb
sudo apt install ./zabbix-release_5.0-1+buster_all.deb
Step 2: Install Zabbix server
Zabbix comes with three components, server, agent and front end. The agent is optional.
Install Zabbix server
This will install MariaDB database server on Debian 10 (Buster).
sudo apt update
sudo apt install zabbix-server-mysql
Check the installed version by running the following command
$ mariadb --version
mariadb Ver 15.1 Distrib 10.3.22-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
Step 3: Configure and create Zabbix server database
Run the following command, then say “Yes (Y) (Y)” to delete anonymous users, delete the test database and disable remote root login.
$ sudo mysql_secure_installation Enter current password for root (enter for none): 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
Log in to MariaDB
sudo mysql -u root -p
Create Zabbix database and Zabbix users:
CREATE DATABASE zabbixdb character set utf8 collate utf8_bin;
GRANT ALL PRIVILEGES ON zabbixdb.* TO [email protected] IDENTIFIED BY 'SafePassWord';
FLUSH PRIVILEGES;
QUIT
Import Zabbix database data
Now, use MySQL to import the initial architecture and data of the server. After issuing this command, please take some time to complete it.
$ sudo zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uuserzabbix -p zabbixdb
Enter password: SafePassWord (The password you set above for userzabbix)
Step 4: Configure the database for the Zabbix server
Open the Zabbix server configuration file and make the changes shown below. If you use different databases and usernames, please update them accordingly.
sudo vim /etc/zabbix/zabbix_server.conf
Set the configuration of the database connection as follows.
DBHost=localhost ##Uncomment this option DBName=zabbixdb ##Key in the database name you configured DBUser=userzabbix ##Key in the user name you configured DBPassword=SafePassWord ##Key in the password you configured
Step 5: Install the Zabbix front end
This will install Nginx and PHP on Debian Linux.
sudo apt install zabbix-frontend-php zabbix-nginx-conf
Check the installed version of Nginx and PHP
$ nginx -v nginx version: nginx/1.14.2 $ php -v PHP 7.3.11-1~deb10u1 (cli) (built: Feb 16 2020 15:07:23) ( NTS )
Configure the PHP date.timezone parameters used by Zabbix in its settings
$ sudo vim /etc/php/7.3/fpm/php.ini [Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone date.timezone = Africa/Nairobi ## Set your timezone here
Restart php-fpm
sudo systemctl restart php7.3-fpm
Start and enable Nginx
sudo systemctl enable nginx
sudo systemctl start nginx
Configure Nginx
Zabbix creates its own Nginx configuration file. Open and uncomment the “listen” and “server_name” sections as shown below
$ sudo vim /etc/nginx/conf.d/zabbix.conf server { listen 80; ## Uncomment this part server_name computingforgeeks.com; ## Uncomment this part too
Change the port of the “default” Nginx file in Debian to listen to other ports so that it does not conflict with Zabbix configured above.
$ sudo vim /etc/nginx/sites-available/default server { listen 82 default_server; ## Change from 80 to 82 listen [::]:82 default_server; ## Change from 80 to 82 as well
Change permissions of Zabbix root folder
sudo chmod -R 775 /usr/share/zabbix/
Restart Nginx
sudo systemctl restart nginx
Step 6: Install Zabbix Agent on Debian 10 (Buster)
The agent will monitor the server itself
To install the agent, run
sudo apt install zabbix-agent
Start and enable zabbix agent and server
sudo systemctl enable zabbix-server zabbix-agent
sudo systemctl start zabbix-server zabbix-agent
Step 7: Set up the Zabbix web interface
Open your favorite browser and enter the IP of the Zabbix server. The mine is shown below. Click “Next”.
http://172.17.37.54
You should see the next page similar to the image below. Make sure all prerequisites are recorded as green “OK” and click “Next”
You should see the next page similar to the one shown below, asking for database details.
Enter the database details we set up earlier. If you want to encrypt in the database connection, you can configure TLS in this step. When finished, click “Next”
Enter your Zabbix server details (including server name) (if necessary), and then click “Next”. You should see the installation summary. Just click “Next”
Next, just click “Finish” to complete the setup
Step 8: Log in to Zabbix
After completing step 5, you will be redirected to the login page as shown below. Zabbix’s default login credentials are:
username: administratorPassword: zabbix
Remember, you can management After logging in, enter the tab page.
Navigation Administration> Users> Administrator> Password> Change Password
in conclusion
The new Zabbix Server 5.0 LTS can now run on Nginx, we hope everything goes well. Review the new features implemented and try all the configurations required by the environment. Otherwise, we would like to thank you for taking the time to blog, and thank you for your continued support.
Other guides you may also like include:
How to install Zabbix Agent on Debian 10 (Buster)
How to install Zabbix server on CentOS 8 / RHEL 8
Install and configure Zabbix Server 4 on Debian 10 (Buster)
Install Zabbix Server 4 on CentOS 7
10 best open source Linux monitoring tools
The
You can download this article in PDF format to support us through the following link.
Download the guide in PDF format
turn off
The
The
The