🚀 DevOps & SRE Certification Program 📅 Starting: 1st of Every Month 🤝 +91 8409492687 🔍 Contact@DevOpsSchool.com

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Install & configure Zabbix Server & Frontend in Centos 7?

-------------Steps to be performed --------------------------
Login to your Redhat machine and install required packages.
Step 1 - Configure mysql
Step 2 - Install Zabbix server
Step 3 - Configure apache
Step 4 - Configure database for Zabbix
Step 5 - Disable SELinux and Start Zabbix Server
Step 6 - Start your Zabbix web installer
Step 7 - Check for pre-requeisites
Step 8 - Configure DB Connection
Step 9 - Zabbix server details
Step 10 - Pre-Installation Summary
Step 11 - Install Zabbix
Step 12 - Login to Zabbix
==================================
13.235.79.59
-------------------------
ec2-user
$ sudo -s
# FOR CENTOS 7
$ rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
$ yum clean all
$ yum search zabbix
# Steps for install multiple components + pre
$ yum -y install yum-utils
$ yum repolist all
$ yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
$ yum update
$ yum install httpd httpd-devel
$ yum install php php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml php-bcmath
Step 2. Install Zabbix server, frontend, agent
$ yum -y install zabbix-server-mysql zabbix-agent zabbix-get zabbix-web-mysql mariadb-server zabbix-java-gateway
# Enable Red Hat Software Collections - Install Zabbix frontend
$ yum install centos-release-scl
# Edit file /etc/yum.repos.d/zabbix.repo and enable zabbix-frontend repository.
[zabbix-frontend]
...
enabled=1
...
# Install Zabbix frontend packages.
$ yum install zabbix-web-mysql-scl zabbix-apache-conf-scl
$ systemctl start mariadb
$ systemctl enable mariadb
$ service httpd start
$ systemctl enable httpd
# setenforce Permissive
$ getenforce
$ setenforce 0
$ systemctl stop firewalld
$ systemctl disable firewalld
Create initial database
$ mysql -uroot -p
password
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> create user zabbix@localhost identified by 'password';
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> quit;
$ Import initial schema and data. You will be prompted to enter your newly created password.
$ zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
$ mysql -uroot -p
password
mysql> show databases;
mysql> use zabbix;
mysql> show tables;
mysql> quit;
===========================
CONF FILE INFO
Zabbix Server - /etc/zabbix/zabbix_server.conf
Zabbix frontend- /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
LogFile=/var/log/zabbix/zabbix_server.log
PidFile=/var/run/zabbix/zabbix_server.pid
===========================
# Configure the database for Zabbix server
# Edit file /etc/zabbix/zabbix_server.conf
DBPassword=password
# Configure PHP for Zabbix frontend
# Edit file /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf, uncomment and set the right timezone for you.
php_value date.timezone Asia/Kolkata
Step 6. Start Zabbix server and agent processes
# Start Zabbix server and agent processes and make it start at system boot:
$ systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm
$ systemctl enable zabbix-server zabbix-agent httpd rh-php72-php-fpm
Now your Zabbix server is up and running!
Step 7. Configure Zabbix frontend
Connect to your newly installed Zabbix frontend: http://server_ip_or_name/zabbix
http://13.235.79.59/zabbix/setup.php
Follow steps described. You should see the first screen of the frontend installation wizard.
Congratulations! You have successfully installed Zabbix frontend.
Configuration file "/etc/zabbix/web/zabbix.conf.php" created.
http://13.235.79.59/zabbix/
Admin
zabbix

How to configure Zabbix Frontend with Server and Database?

Subscribe
Notify of
guest


0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x