How to install Zabbix 7.0 LTS on Oracle Linux 9

By | 4 Haziran 2024

Hello everyone,

In this blog post, you will learn how to set up Zabbix 7.0 LTS on Oracle Linux 9.

Zabbix 7.0 LTS ( Long Term Support ) has been released on June 6 with many new features and Zabbix SIA will support this version until 2029.

Pre-requisites;

Before we get started, be sure you have;

·        Oracle Linux 9 server (freshly installed and updated)

·        A root account.

Let’s get started!

Check out the Linux version using with below command.

Postgresql Database Installation

You have to choose a database before the Zabbix installation. There are two options Mysql or PostgreSQL.

In my installation, I will use the most used variant of the Zabbix database: Postgresql.

Check out the requirements on documents page.

sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
sudo dnf -qy module disable postgresql
sudo dnf install -y postgresql16-server
sudo /usr/pgsql-16/bin/postgresql-16-setup initdb
sudo systemctl enable postgresql-16
sudo systemctl start postgresql-16

Use this commands from on official Postgresql documents page.

Use this command below to check out postgresql-16 service status.

systemctl status postgresql-16

Open the Zabbix official website for the installation commands.

Use the platform chooser for the command sets.

Scroll down the page and find your commands.

Step a: Install the Zabbix repository

Edit the epel.repo under /etc/yum.repos.d path.

Use this commands below to install zabbix repositories.

rpm -Uvh https://repo.zabbix.com/zabbix/7.0/oracle/9/x86_64/zabbix-release-7.0-2.el9.noarch.rpm
dnf clean all

Step b: Install Zabbix server, frontend, agent

When the installation, if you want to don’t answer the yes/no questions use the “-y” parameter after the command set.

dnf install zabbix-server-pgsql zabbix-web-pgsql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent -y

Step c: Create initial database

sudo -u postgres createuser --pwprompt zabbix
sudo -u postgres createdb -O zabbix zabbix
zcat /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix

Step d: Configure the database for the Zabbix server

By default, the Zabbix configuration file is located in /etc/zabbix/. Open and configure the zabbix_server.conf file use with any editor to set up database password.

I used the nano editor to configure it.

nano /etc/zabbix/zabbix_server.conf

Find the DBPassword line on the file.

Delete the “#” line from the first line and write your new password.

Save and exit the configuration file.

Write the configuration files.

Step e: Start Zabbix server, agent, and apache processes

Use this command below to enable and start the process.

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

Make sure the http and https services rules on local firewall (optional)

Before the Zabbix frontend installation, check out the Oracle firewall state, ports, and services.

systemctl status firewalld
firewall-cmd --permanent --zone-public --add-service=https --add-service=http
firewall-cmd --reload
firewall-cmd --list-services

Step f: Frontend installation

Write your “Server_IP_Address/zabbix” on any browser.

Here is the Zabbix 7.0 !

Click the Next step.

All checks of pre-requisites show OK. Click the Next step.

Fill in the database password correctly and click the next step.

Don’t forget the change the time zone.

Next step.

Click the Finish !

By default Username is: Admin and Password is: zabbix

Here is the Zabbix 7.0 !

There are many differences on the Global view dashboard and left main panel.

Check out the system information page.

For this blog post tutorial, we looked at how to install the Zabbix 7.0 LTS. This can be very useful when installing the 7.0 version on your systems.

Thanks for reading.

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir