Linux serverlinux web serverNETWORK ADMINISTRATIONS

How to Install Zabbix Server on RHEL 8

How to Install Zabbix Server on RHEL 8 :-
========================================
Step 1: Install and Configure Apache Web server
Set Selinux in Permissive Mode : setenforce 0
Install vim editor (optional) : dnf install vim -y
Install Apache : dnf -y install @httpd
Start and enable httpd service : systemctl enable –now httpd

Step 2: Install & Configure MariaDB Database server
Install DB Package : dnf module install mariadb -y
Confirm the version of MariaDB installed : rpm -qi mariadb-server
Start & Enable MariaDB Server : systemctl enable –now mariadb
Configure MariaDB Server : mysql_secure_installation

Create a database for Zabbix user :
mysql -u root -p
CREATE DATABASE zabbix character set utf8 collate utf8_bin;
GRANT ALL PRIVILEGES ON zabbix.* TO zabbix@’localhost’ IDENTIFIED BY ‘zabbix’;
FLUSH PRIVILEGES;
QUIT;

Step 3: Install Zabbix Server on CentOS 8 / RHEL 8
dnf -y install https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm
dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u zabbix -p zabbix

Step 4: Configure and Start Zabbix server on CentOS 8 / RHEL 8
Edit your Zabbix configuration file and set the database name, user and password :
vim /etc/zabbix/zabbix_server.conf
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix

Configure PHP for Zabbix frontend :
vim /etc/php-fpm.d/zabbix.conf
php_value[date.timezone] = Asia/Kolkata
#URL for other time zones :- https://www.php.net/manual/en/timezones.php
systemctl restart zabbix-server zabbix-agent httpd php-fpm
systemctl enable zabbix-server zabbix-agent httpd php-fpm

Step 5: Configure Zabbix Frontend
Adjust PHP parameters :
vim /etc/php.ini
memory_limit 128M
upload_max_filesize 8M
post_max_size 16M
max_execution_time 300
max_input_time 300
max_input_vars 10000

Restart httpd and php-fpm service : systemctl restart httpd php-fpm
Know your IP : curl ifconfig.me

Open Zabbix URL: http://ServerIP/zabbix in your browser
Username : Admin (A in upper case)
Password : zabbix (all lower case)

========================================

Facebook – https://www.facebook.com/MakMahlawat
Instagram – https://www.instagram.com/MakMahlawat
Twitter – https://twitter.com/MakMahlawat
LikedIn – https://www.linkedin.com/in/MakMahlawat
GitHub – https://github.com/MakMahlawat

source

by Mak Mahlawat

linux web server

Leave a Reply

Your email address will not be published. Required fields are marked *