Zabbix 5.0 Configuration in RHEL 8 (CentOS 8) | Installation & Configuration of Zabbix 5 in Linux

preview_player
Показать описание
Zabbix 5.0 Configuration in RHEL 8 (CentOS 8):
*****
Chapters:
0:00 Channel Intro
0:15 Zabbix Overview & Details
1:10 Zabbix 5 Pre-requesties
1:35 Making SELinux Permissive
2:00 Installing Required Packages For Zabbix
3:30 Installing MariaDB Packages & Starting Service
4:20 Reset Root Password For Database
5:35 Creating Database
6:15 Importing Initial Schema & Data
7:18 Enabling Strict Mode
7:45 Enter Zabbix Password in DB File
8:48 Starting & Enabling Zabbix Services
9:14 Adding Firewall Rules
10:10 Setting Timezone in Configuration File
10:58 Restart & Enable Apache Services
10:20 Configuring Zabbix Frontend

*****
Please check pinned comment for steps & details.
*****
setenforce 0 && sed -i 's/^SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config
getenforce
clear
clear
dnf clean all
dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent
clear
dnf -y install mariadb-server && systemctl start mariadb && systemctl enable mariadb
clear
mysql_secure_installation
clear
mysql -uroot -p'rootDBpass' -e "create database zabbix character set utf8 collate utf8_bin;"
clear
mysql -uroot -p'rootDBpass' zabbix -e "set global innodb_strict_mode='OFF';"
mysql -uroot -p'rootDBpass' zabbix -e "set global innodb_strict_mode='ON';"
clear
systemctl restart zabbix-server zabbix-agent
systemctl enable zabbix-server zabbix-agent
clear
firewall-cmd --add-service={http,https} --permanent
firewall-cmd --add-port={10051/tcp,10050/tcp} --permanent
firewall-cmd --reload
clear
firewall-cmd --list-all
clear
systemctl restart httpd php-fpm
systemctl enable httpd php-fpm

*****
Thanks for watching the video. If it helped you then, please do like & share it with others as well. Feel free to post your queries & suggestions in the comment box, we will be happy to answer your queries. If you like our hard work then please do subscribe to our channel & turn on the bell notification to get the latest notifications of our video.
*****
Join this channel to get access to perks: →
*****
My Desktop Computer Components: →
*****
My Video Recording Setup Components: →
******
Contact Us: →
******
Follow Us On Social Media Platforms: →
=======
©COPYRIGHT. ALL RIGHTS RESERVED.

#NehraClasses #LinuxTraining #AnsibleTraining
Рекомендации по теме
Комментарии
Автор

Install & Configure Zabbix 5.0 in RHEL8/CentOS 8:


Zabbix is 100% free open-source ultimate enterprise-level software designed for monitoring availability
and performance of IT infrastructure components and services.

Configure SELinux to work in permissive mode:

setenforce 0 && sed -i /etc/selinux/config

Step 2: Install Zabbix server, frontend, and agent

Setup Zabbix 5 RPM package on CentOS 8, clean repo and install Zabbix server, frontend, and agent.
Zabbix 5.0 LTS version (supported until May, 2025)
dnf clean all
dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent

Step 3: Install and configure database

In this installation, I will use password rootDBpass as root password and zabbixDBpass as Zabbix password for DB. Consider changing your password for security reasons.
a. Install MariaDB

dnf -y install mariadb-server && systemctl start mariadb && systemctl enable mariadb

b. Reset root password for database

Secure MySQL by changing the default password for MySQL root:

mysql_secure_installation

Enter current password for root (enter for none): Press the Enter
Set root password? [Y/n]: Y
New password: <Enter root DB password>
Re-enter new password: <Repeat root DB password>
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

c. Create database

Create a database for Zabbix directly from the terminal using these two commands:

mysql -uroot -p'rootDBpass' -e "create database zabbix character set utf8 collate utf8_bin;"

d. Import initial schema and data

Temporary disable strict mode (ZBX-16465) to avoid MySQL error “ERROR 1118 (42000) at line 1284: Row size too large (> 8126)” :

mysql -uroot -p'rootDBpass' zabbix -e "set global innodb_strict_mode='OFF';"

Import database shema for Zabbix server (could last up to 10 minutes):

Zabbix 5.0 LTS version
zcat | mysql -uzabbix -p'rootDBpass' zabbix

Enable strict mode:

mysql -uroot -p'rootDBpass' zabbix -e "set global innodb_strict_mode='ON';"

e. Enter database password in Zabbix configuration file

Open zabbix_server.conf file with command: “nano and add database password in this format anywhere in file:

DBPassword=zabbixDBpass

Save and exit file (ctrl+x, followed by y and enter).
Step 4: Start Zabbix server and agent processes

systemctl restart zabbix-server zabbix-agent
systemctl enable zabbix-server zabbix-agent

Step 5: Configure firewall

firewall-cmd --add-service={http, https} --permanent
firewall-cmd --add-port={10051/tcp, 10050/tcp} --permanent
firewall-cmd --reload

Step 6: Configure Zabbix frontend
a. Configure PHP for Zabbix frontend

Edit file “/etc/php-fpm.d/zabbix.conf” with command:

nano /etc/php-fpm.d/zabbix.conf

Uncomment line in zabbix.conf that starts with “; php_value date.timezone Europe/Riga” by removing symbol “;” and set the right timezone for your country, for example:

php_value date.timezone Europe/Amsterdam

Save and exit file (ctrl+x, followed by y and enter)
b. Restart Apache web server and make it start at system boot

systemctl restart httpd php-fpm
systemctl enable httpd php-fpm

c. Configure web frontend



Basically, in this wizard you only need to enter a password for Zabbix DB user and for everything else just click “Next step“. In this guide, I have used a zabbixDBpass as a database password, but if you set something else, be sure to enter the correct password when prompted by the wizard.
1. Installation step: Welcome screen1. Installation step: Welcome screen
2. Installation step: Pre-requisites check2. Installation step: Pre-requisites check
3. Installation step: Configure DB connection3. Installation step: Configure DB connection
4. Installation step: Configure Zabbix server4. Installation step: Configure Zabbix server
5. Installation step: Pre-installation summary5. Installation step: Pre-installation summary
6. Installation step: Finish6. Installation step: Finish

That’s it, you have installed Zabbix monitoring system!
Step 7: Login to frontend using Zabbix default login credentials

ZABBIX LOGIN PAGE

NehraClasses
Автор

I got clear understanding by you, and Zabbix installed in one session. Awesome Video sir, Thanks sir fro provinding Free content to us.

abhaykumarsavita
Автор

Just want to thank you for your clear video and instructions, that saves lots of time for me.
One small note - I am using your procedure for RHEL 8.4 with Zabbix 5.4. I was asked to install an extra package zabbix-sql-scripts, otherwise I cannot proceed to initialize the schema. For your reference.

patrickcheng-kangchiang
Автор

Thank you sir..
As a promise you are teaching zabbix

Thank you sir

harispalegar
Автор

thank you so much sir, i have installed it successfully

podishettivikram
Автор

In my qualys scan on zabbix server, it shows vulnerability which is web server uses plain text form based authentication..how can I resolve this issue..any help is very much appreciated

sibinmorais
Автор

Superb video sir, please make video on cacti server also .

podishettivikram
Автор

You have not shown the main part . How to add nodes & monitor them

Woolovetoyou