Zabbix server 5.0 LTS installation on CentOS 7
This video explains how to install zabbix server on centos7 operating system.Zabbix is open source monitoring tool.
For this demo, centos7 minimal is installed in virtual box and access from MacOS Terminal
https://www.zabbix.com/download
Terminal Command:
Check the version:
# cat /etc/redhat-release
Disable SELinux
# vi /etc/sysconfig/selinux
Change “SELINUX=enforcing” to “SELINUX=disabled”
# getenforce (command to check the status)
(Download the repo of the Zabbix)
# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
# yum clean all
Install zabbix server, agent and zabbix-get for log files
# yum install zabbix-get zabbix-agent zabbix-server-mysql
Install Zabbix Front end
Edit file and enable zabbix-frontend repository.
# vi /etc/yum.repos.d/zabbix.repo
[zabbix-frontend]
enabled=1
Enable Red Hat Software Collections
# yum install centos-release-scl
Install Zabbix frontend packages:
# yum install zabbix-web-mysql-scl zabbix-apache-conf-scl
Install MariaDB server
# yum install mariadb-server -y
Start MariaDB
# systemctl start mariadb
# mysql
# create database zabbix_db character set utf8 collate utf8_bin;
# grant all privileges on zabbix.* to zabbix@localhost identified by ‘zabbix’;
Database: zabbix_db
Username: zabbix
Password: zabbix
Extract Schema file:
# cd /usr/share/doc/zabbix-server-mysql-
# zcat create.sql.gz | mysql zabbix
Check the database
# mysql
# use zabbix;
# show tables;
Change the configuration file of Zabbix-server
# vi /etc/zabbix/zabbix_server.conf
Change these parameters on Zabbix_server.conf file.
DBName=zabbix_db
DBUser=zabbix
DBPassword=zabbix
Start ZABBIX-SERVER
# systemctl start zabbix-server
Check the Zabbix server is running or not by checking the log file
# less /var/log/zabbix/zabbix_server.log
Edit file and uncomment and set the right timezone for you.
# vi /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
; php_value[date.timezone] = America/New_York
Start Zabbix server and agent processes:
# systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm mariadb
# systemctl enable zabbix-server zabbix-agent httpd rh-php72-php-fpm mariadb
Modify the firewall
firewall-cmd –add-service={http,https} –permanent
firewall-cmd –add-port={10051/tcp,10050/tcp} –permanent
firewall-cmd –reload
Go to Browser
Follow the instruction and use the database password, click next and login with default username and password.
Username: Admin
Password: zabbix
centos 7