Como instalar Zabbix no RHEL 8
Posted in: Linux

Como instalar Zabbix no RHEL 8

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install httpd php php-fpm php-mysqlnd php-ldap php-bcmath php-mbstring php-gd php-pdo php-xml
# systemctl start httpd
# systemctl enable httpd
# systemctl status httpd
# systemctl start php-fpm
# systemctl enable php-fpm
# systemctl status php-fpm
dnf install mariadb mariadb-server mariadb-devel
# systemctl start mariadb
# systemctl enable mariadb
# systemctl status mariadb
mysql_secure_installation
# mysql -uroot -p
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
MariaDB [(none)]> quit;
rpm -Uvh https://repo.zabbix.com/zabbix/4.2/rhel/8/x86_64/zabbix-release-4.2-2.el8.noarch.rpm  
dnf clean all
dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent 
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u zabbix -p zabbix
vim /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=database-passwod-here
vim /etc/php-fpm.d/zabbix.conf
php_value date.timezone Europe/Lisbon
systemctl restart httpd php-fpm
# systemctl start zabbix-server zabbix-agent
# systemctl enable zabbix-server zabbix-agent
systemctl status zabbix-server
systemctl status zabbix-agent
http://SERVER_FQDM/zabbix
OR
http://SERVER_IP/zabbix
Back to Top