1. prereq

curl -s http://d01cid.ddns.net/sharel/bin/inst-httpd | sh
curl -s http://d01cid.ddns.net/sharel/bin/inst-mariadb-server | sh

2. installation

vi /etc/yum.repos.d/zabbix.repo
#
[zabbix]
name=zabbix
baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/
enabled=1
gpgcheck=0
Note Following lines has to be used when using an ARM based distribution:
#
[zabbix]
name=zabbix
baseurl=http://d01cid.ddns.net/sharel/img/zabbix/3.4/armv7hl/
enabled=1
gpgcheck=0
yum -y install centos-release-scl
yum -y install zabbix-web-mysql-scl zabbix-apache-conf-scl zabbix-server-mysql zabbix-agent --enablerepo=zabbix-frontend
cube /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf "; php_value[date.timezone] = Europe/Riga" with "php_value[date.timezone] = Europe/Berlin"

3. mysql

mysql -u'root' -p'Passw0rd' -e "create database zabbix character set utf8 collate utf8_bin;"
mysql -u'root' -p'Passw0rd' -e "grant all privileges on zabbix.* to dbmusr@localhost identified by 'Passw0rd';"
Tip following task will take a while (approximately 2min30) , so be patient.
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u'dbmusr' -p'Passw0rd' zabbix
cube /etc/zabbix/zabbix_server.conf '# DBHost=localhost' with 'DBHost=localhost'
cube /etc/zabbix/zabbix_server.conf 'DBName=zabbix' with 'DBName=zabbix'
cube /etc/zabbix/zabbix_server.conf 'DBUser=zabbix' with 'DBUser=dbmusr'
cube /etc/zabbix/zabbix_server.conf '# DBPassword=' with 'DBPassword=Passw0rd'

4. services

systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm

5. configuration

6. services

systemctl enable zabbix-server zabbix-agent rh-php72-php-fpm

7. final

8. agent

vi /etc/yum.repos.d/zabbix.repo
#
[zabbix]
name=zabbix
baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/
enabled=1
gpgcheck=0
yum -y install zabbix-agent
vi /etc/zabbix/zabbix_agentd.conf
#
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=srv121.d01.net
ServerActive=srv121.d01.net
Hostname=srv002
Include=/etc/zabbix/zabbix_agentd.d/*.conf
systemctl enable zabbix-agent
systemctl start zabbix-agent

9. references