Install and configure Zabbix for your platform
Ensure that the server packages are up to date
Before proceeding, let us make sure that our server packages are up to date with this command:
|
|
Let us also install some common packages that we will need
|
|
Install and configure Zabbix for your platform
Install Zabbix repository
If the epel repo is not enabled, check How to Install and Enable Epel Repo on Rocky/Alma Linux 9 before proceeding.
Disable Zabbix packages provided by EPEL, if you have it installed.
Edit file /etc/yum.repos.d/epel.repo
|
|
Add the following statement.
|
|
Proceed with installing zabbix repository.
|
|
Do dnf clean all
|
|
Install Zabbix server, frontend, agent
|
|
Create initial database
Make sure you have database server up and running. Checkout this post on How to Install and Configure Postgres 17 on Rocky Alma Linux 9
Create a postgres user
|
|
Type the password when prompted.
Then create the zabbix
db
|
|
On Zabbix server host import initial schema and data. You will be prompted to enter your newly created password.
|
|
Configure the database for Zabbix server
Edit file /etc/zabbix/zabbix_server.conf
|
|
Add this
|
|
Configure PHP for Zabbix frontend
Edit file /etc/nginx/conf.d/zabbix.conf
uncomment and set listen
and server_name
directives.
|
|
Edit
|
|
Ensure that you have zabbix.citizix.com
mapped to the server IP
Start Zabbix server and agent processes
Start Zabbix server and agent processes
|
|
and make it start at system boot.
|
|
Open Zabbix UI web page
The URL for Zabbix UI when using Nginx depends on the configuration changes you should have made, in my case zabbix.citizix.com
.
Visit the UI and proceed with the set up:
- Confirm prerequisites, if server can handle
- Configure db access
- Configure Server name and choose timezone
- If all the settings you provided are correct, you will get a congratulatory message notifying you of the successful setup of Zabbix’s front end.
|
|
Press on the ‘Finish’ button. This directs you to the Zabbix login page. Log in with the following credentials:
Username: Admin
Password: zabbix
Then click on ‘Sign in’ to access the Zabbix dashboard. You can change the password later for added security, so don’t worry about that.
Finally, you will get access to Zabbix’s dashboard
That is it! We have successfully installed the Zabbix monitoring tool on Rocky Linux 9.