Introduction

Zabbix is an open-source monitoring solution that provides real-time monitoring, alerting, and visualization for IT infrastructures. Installing and configuring Zabbix Server and Client on Rocky Linux 9 allows you to monitor the performance and availability of your servers and network devices. In this guide, we'll walk you through the step-by-step process of setting up Zabbix Server and Client on Rocky Linux 9.

Prerequisites

Before you begin, make sure you have the following:

  • A server running Rocky Linux 9 with sudo privileges
  • Root access to the Zabbix database server (if installing Zabbix Server)
  • Basic knowledge of Linux server administration

Step 1: Install Zabbix Server on Rocky Linux 9

First, install the Zabbix Server package on your Rocky Linux 9 server:

sudo dnf install -y zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf

Step 2: Configure Zabbix Server

Configure Zabbix Server to connect to the database. Edit the Zabbix Server configuration file:

sudo nano /etc/zabbix/zabbix_server.conf

Update the database connection settings according to your environment. Save the file and exit the editor.

Step 3: Install Zabbix Agent on Rocky Linux 9

Install the Zabbix Agent package on the Rocky Linux 9 servers that you want to monitor:

sudo dnf install -y zabbix-agent

Step 4: Configure Zabbix Agent

Configure Zabbix Agent to communicate with the Zabbix Server. Edit the Zabbix Agent configuration file:

sudo nano /etc/zabbix/zabbix_agentd.conf

Update the server IP address or hostname in the "Server" and "ServerActive" parameters. Save the file and exit the editor.

Step 5: Start and Enable Zabbix Services

Start and enable the Zabbix services to ensure they start automatically on system boot:

sudo systemctl start zabbix-server zabbix-agent httpd
sudo systemctl enable zabbix-server zabbix-agent httpd

Step 6: Configure Firewall

Allow traffic on the Zabbix ports (10050 and 10051) in the firewall:

sudo firewall-cmd --permanent --add-port=10050/tcp
sudo firewall-cmd --permanent --add-port=10051/tcp
sudo firewall-cmd --reload

Step 7: Access Zabbix Web Interface

Open a web browser and access the Zabbix web interface using your server's IP address or hostname:

http://your_server_ip/zabbix

Follow the on-screen instructions to complete the installation through the web interface.

Conclusion

Congratulations! You've successfully installed and configured Zabbix Server and Client on Rocky Linux 9. You can now monitor the performance and availability of your servers and network devices using the Zabbix monitoring solution.

Thank you for reading our guide on how to install and configure Zabbix Server and Client on Rocky Linux 9. We hope you found it helpful!

Was this answer helpful? 0 Users Found This Useful (0 Votes)