Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Linux » How to Install Zabbix Monitoring Tool on a Linux System
  • how to fix the sorry this file type is not permitted for security reasons error in wordpress 5e4a5632967c7
    Error 1707: Network address invalid when trying to connect remotely Windows
  • install python 3 and pip
    How to upgrade and downgrade PIP on Windows Windows
  • Microsoft Office 365 Family
    Download Microsoft Office 365 Family Invoice for tax reasons Microsoft Exchange/Office/365
  • Remote Desktop Connection
    Connect to the Remote Desktop Console from Command Prompt Windows
  • Featured image Excel crash 1
    How to Fix Microsoft Excel Crash Issues Network | Monitoring
  • rdp
    How to fix Remote Desktop can’t connect to the remote computer for one of these reasons Windows Server
  • screenshot 2020 02 08 at 15.53.31
    Enable Automatic Logon via Windows Registry Windows
  • Screenshot 2020 07 25 at 13.09.08
    Fix the following error occurred when DNS was queried for the service location Windows Server

How to Install Zabbix Monitoring Tool on a Linux System

Posted on 30/07/202224/09/2024 Raphael Gab-Momoh By Raphael Gab-Momoh No Comments on How to Install Zabbix Monitoring Tool on a Linux System
FEATURE-ZABBIX

Zabbix is an efficient monitoring tool for servers, apps, and network devices that is free and open source. It collects system metrics using agents. It also monitors typical services like SMTP and HTTP, and it enables host monitoring using SNMP, TCP, and ICMP checks. Zabbix aims to monitor thousands of servers, virtual machines, and network devices in real-time. You can access other useful and similar Linux and windows guides from this link: How to Install MongoDB on a Linux System and How to Set Up Flutter with Android Studio on Linux and how to Set Up Flutter with Android Studio on Linux.

It stores data in a MySQL/MariaDB database and allows encrypted communication between the server and linked clients. This guide will walk you through the process of installing the Zabbix monitoring tool on a Linux system, Ubuntu 20.04 or higher.

Other guides can be referenced here: Create multiple users and set passwords for each in Ubuntu Linux, how to add WhatsApp UWP on Windows 11, how to install and configure Elasticsearch on Linux,  and how to Install Apache HTTP Server on Ubuntu 20.04 LTS. Lastly, here is a guide on how to monitor services using Zabbix.

Prerequisites to install Zabbix Monitoring Tool

This is similar with choosing the right platform. For the purpose of this guide, we shall be using Ubuntu 20.04 but the same method will work for 22.04. You would also need a user account with Sudo privileges.

Also, see how to install Gradle on Ubuntu and how to Install Docker Portainer on Linux and how to install AnyDesk on a Linux Machine.

Install Zabbix in Linux Server

Follow the steps below to install and configure Zabbix.

Step1: Install LAMP Server

To begin, use the following command to install Apache, MariaDB, PHP, and any other needed extensions:

apt-get install apache2 libapache2-mod-php mariadb-server php php-mbstring php-gd php-xml php-bcmath php-ldap php-mysql unzip curl gnupg2 -y
lamp-server
lamp server

When you’ve installed all the packages, modify the php.ini file as follows:

vim /etc/php/7.4/apache2/php.ini

Add the following settings to your text editor

memory_limit 256M
upload_max_filesize 16M
post_max_size 16M
max_execution_time 300
max_input_time 300
max_input_vars 10000
date.timezone = Africa/Lagos
php.ini_
php.ini

Save and close the file then restart the Apache service to apply the changes:

systemctl restart apache2

Step 2: Create a Database for Zabbix Monitoring

The next step is to create a Zabbix database and user. To begin, use the following command to log into the MariaDB shell:

mysql
how to install Zabbix monitoring tool -maria
mariadb

Once logged in, run the following command to setup a database and user:

CREATE DATABASE zabbixdb character set utf8 collate utf8_bin;
CREATE USER 'zabbixuser'@'localhost' IDENTIFIED BY 'password';

Next, use the following command to grant all access to zabbixdb:

GRANT ALL PRIVILEGES ON zabbixdb.* TO 'zabbixuser'@'localhost' WITH GRANT OPTION;

Next, use the following command to flush the privileges and quit the MariaDB shell:

FLUSH PRIVILEGES;
EXIT;
how to install Zabbix monitoring tool - exit
all the commands in MariaDB

Step 3: Install and Configure Zabbix Monitoring Tool

Zabbix is not installed by default in the Ubuntu 20.04 standard repository. As a result, you must install the Zabbix repository on your machine. You may use the following command to install it:

wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1+focal_all.deb
dpkg -i zabbix-release_5.0-1+focal_all.deb
how to install Zabbix monitoring tool -zabbit
zabbit

Then, use the following command to update the repository and install the Zabbix server:

apt-get update -y
apt-get install zabbix-server-mysql zabbix-frontend-php zabbix-agent zabbix-apache-conf -y

Once you’ve installed all the packages, use the following command to start the Zabbix service and set it to start on system reboot:

systemctl start zabbix-server
systemctl enable zabbix-server

The Zabbix database schema must then be imported. You may import it by using the following command; keep in mind that you will be required for the MySQL password you generated before.

cd /usr/share/doc/zabbix-server-mysql
zcat create.sql.gz | mysql -u zabbixuser -p zabbixdb
how to install zabbix monitoring tool -password
mysql

Please keep in mind that the zcat command might take several minutes to finish.

Then, update the Zabbix default configuration file to provide the database settings:

vim /etc/zabbix/zabbix_server.conf
how to install zabbix monitoring tool -zabbitconf
zabbit conf

Modify the following lines:

 DBHost=localhost
  DBName=zabbixdb
  DBUser=zabbixuser
  DBPassword=password
how to install zabbix monitoring tool - dbhost
modification

Please keep in mind that the zcat command might take several minutes to finish. Also, You will need to uncomment # DBHost and DBPassword

Then, update the server with the command

systemctl restart zabbix-server
systemctl restart apache2

Step 4 – Configure Zabbix Agent

You will also need to configure the Zabbix agent on your system. You may configure it by modifying the file zabbix agentd.conf:

vim /etc/zabbix/zabbix_agentd.conf
how to install zabbix monitoring tool -zabbit-agent
zabbit agent

Modify the following lines:

Server = 127.0.0.1
ServerActive = 127.0.0.1
Hostname = Zabbix Server
how to install zabbix monitoring tool -servernameh
modification

Save and close the file before starting the Zabbix agent service and enabling it to start at boot using the following command:

systemctl start zabbix-agent
systemctl enable zabbix-agent
enableagent
enable agents

Step 5: Access Zabbix Dashboard

Launch your internet browser and navigate to the Zabbix dashboard. You’ll be sent to the Zabbix welcome page:

zabbixq
zabbix dashboard

Tap the Next step option. You should be sent to the following page:

zabbix2
pre-requisites

After ensuring that all the essential PHP extensions are installed, click the Next step button. Please visit the following page:

zabbix3
configure dB connection

Enter your database information and then click the Next step button. You should look at this page:

zabbit-server
server details

Enter your Zabbix server information and click the Next step button.

server-summary

Confirm all settings by clicking the Next step button. When the installation is finished, you should see the following page:

zabbix-frontend
zabbix frontend

Finish by clicking the Finish button. You’ll be sent to the Zabbix login page:

zabbix-login
zabbix login

Enter the default username, Admin, and password, Zabbix, and then click the Sign-in button. The Zabbix dashboard should be visible on the following page:

dashboard-zabbix
Dashboard

Summary

Kudos! you have successfully installed and configured the Zabbix monitoring tool on a Linux system. Zabbix agents may now be installed on additional client systems and monitored from the Zabbix dashboard.

I hope you found this article on “how to install zabbix monitoring tool on a Linux system” very useful. Please feel free to leave a comment below.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Linux, Oracle/MSSQL/MySQL, Web Server Tags:Monitoring tool, MySQL

Post navigation

Previous Post: How to Install MongoDB on a Linux System
Next Post: How to install Rust in a Linux System

Related Posts

  • FEATURE IMAGE
    SSH into a VM created using Azure CLI or GUI Linux
  • How to visualize MBAM Recovery Audit Report with Python
    Visualize MBAM Recovery Audit Report with Python Automation
  • WAMPServer Virtual Host
    How to create Virtual Hosts in a WAMPserver Web Server
  • Installing Jenkins
    How to Install and Configure Jenkins on Windows 11 Configuration Management Tool
  • LAMP
    How to setup and configure a Lamp stack on CentOS Linux
  • http trace fiddler
    How to Disable HTTP TRACE Method for Apache, IIS, sunOne, and Lotus Domino Web Server

More Related Articles

FEATURE IMAGE SSH into a VM created using Azure CLI or GUI Linux
How to visualize MBAM Recovery Audit Report with Python Visualize MBAM Recovery Audit Report with Python Automation
WAMPServer Virtual Host How to create Virtual Hosts in a WAMPserver Web Server
Installing Jenkins How to Install and Configure Jenkins on Windows 11 Configuration Management Tool
LAMP How to setup and configure a Lamp stack on CentOS Linux
http trace fiddler How to Disable HTTP TRACE Method for Apache, IIS, sunOne, and Lotus Domino Web Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a
 
  • how to fix the sorry this file type is not permitted for security reasons error in wordpress 5e4a5632967c7
    Error 1707: Network address invalid when trying to connect remotely Windows
  • install python 3 and pip
    How to upgrade and downgrade PIP on Windows Windows
  • Microsoft Office 365 Family
    Download Microsoft Office 365 Family Invoice for tax reasons Microsoft Exchange/Office/365
  • Remote Desktop Connection
    Connect to the Remote Desktop Console from Command Prompt Windows
  • Featured image Excel crash 1
    How to Fix Microsoft Excel Crash Issues Network | Monitoring
  • rdp
    How to fix Remote Desktop can’t connect to the remote computer for one of these reasons Windows Server
  • screenshot 2020 02 08 at 15.53.31
    Enable Automatic Logon via Windows Registry Windows
  • Screenshot 2020 07 25 at 13.09.08
    Fix the following error occurred when DNS was queried for the service location Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,841 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.