How To Install & Configure Zabbix 5.0 on Centos 8



Zabbix is an open-source (NPM) for IT organizations to monitor IT Infrastructure including networks, servers, virtual machines and cloud services. Zabbix is an open-source NPN for IT organizations to monitor IT Infrastructure including networks, servers, virtual machines and cloud services. Zabbix provides monitoring metrics, among others network utilization, CPU load and disk space consumption.

And you can Customize it to enterprise grade.

1. Disable SELinux

sudo setenforce 0
sudo sed -i ‘s/^SELINUX=.*/SELINUX=permissive/g’ /etc/selinux/config
cat /etc/selinux/config | grep SELINUX=

2. Install Apache

dnf -y install @httpd
systemctl enable –now httpd

3. Install MariaDB

dnf module install mariadb
rpm -qi mariadb-server (To know version of MariaDB)
systemctl enable –now mariadb
mysql_secure_installation (Harden your database)
mysql -u root -p

4. Create Database & User

CREATE DATABASE zabbix character set utf8 collate utf8_bin;
GRANT ALL PRIVILEGES ON zabbix.* TO zabbix@’localhost’ IDENTIFIED BY ‘password’;
FLUSH PRIVILEGES;
QUIT;

5. Zabbix Server Frontend Installation

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

6. Import Initial Schema

zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u zabbix -p zabbix

7. Configure Zabbix Server Conf ( /etc/zabbix/zabbix_server.conf

DBName=zabbix
DBUser=zabbix
DBPassword=StrongPassword

8. Configure PHP for Zabbix Frontend

vi /etc/php-fpm.d/zabbix.conf
php_value[date.timezone] = Africa/Nairobi

9. Restart Zabbix services

systemctl restart zabbix-server zabbix-agent httpd php-fpm
systemctl enable zabbix-server zabbix-agent httpd php-fpm

systemctl status zabbix-server ( Server Status )

10. Configure Zabbix Frontend Optional

vi /etc/php.ini
memory_limit 128M
upload_max_filesize 8M
post_max_size 16M
max_execution_time 300
max_input_time 300

11. Allow ports on firewall

sudo firewall-cmd –add-service=http –permanent
sudo firewall-cmd –add-port={10051,10050}/tcp –permanent
sudo firewall-cmd –reload
max_input_vars 10000

sudo systemctl restart httpd php-fpm

End of File
_______________________________________

Comments are closed.