Physical Address
Metro Manila, Philippines
Physical Address
Metro Manila, Philippines
In the technologically advanced world of today, keeping an eye on the functionality and availability of your IT infrastructure is essential to guaranteeing the seamless running of your apps and systems. Zabbix provides real-time monitoring of servers, network devices, apps, and other IT components so you can see problems before they become serious and affect users. Zabbix also is one of the most well-liked and extensively used open-source monitoring programs.
Simplified walk through of installing and configuring Zabbix on an Ubuntu 22.04 server.
Zabbix officially provide the debian package for configuring PPA on Ubuntu systems. Download the package by running the following command in your terminal:
# wget https://repo.zabbix.com/zabbix/6.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu22.04_all.deb # dpkg -i zabbix-release_6.4-1+ubuntu22.04_all.deb # apt update |
Use the following command to install necessary packages during the installation and configuration:
apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent |
Ensure that you have a running database server before proceeding. Execute the commands below on your database host.
Log in to MySQL as the root user and execute the following commands below:
# mysql -uroot -p password mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin; mysql> create user zabbix@localhost identified by 'password'; mysql> grant all privileges on zabbix.* to zabbix@localhost; mysql> set global log_bin_trust_function_creators = 1; mysql> quit; |
Import the initial schema and data to the Zabbix database on the Zabbix server host. Enter the password you created earlier when prompted:
zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix |
Disable the `log_bin_trust_function_creators` option after importing the database schema:
# mysql -uroot -p password mysql> set global log_bin_trust_function_creators = 0; mysql> quit; |
Edit the Zabbix server configuration (`/etc/zabbix/zabbix_server.conf`) file to set the database password with `DBPassword` variable as below:
Configure the database for Zabbix server
Edit file /etc/zabbix/zabbix_server.conf
Start Zabbix server and agent processes and make it start at system boot.
# systemctl restart zabbix-server zabbix-agent apache2 # systemctl enable zabbix-server zabbix-agent apache2 |
You can access the Zabbix web interface by navigating to the following URL in your browser:
Replace “host” with your server’s hostname or IP address. Follow the on-screen instructions to complete the Zabbix setup.
Installing Zabbix Server on Ubuntu 22.04
1) First step, you will see a welcome message. This page will also show you the Zabbix version is being installed. Click the “Next step” button to continue:
2) In this step the installer will check for pre-requisites. Which will check if all the required packages and PHP modules are properly configured. If you see any error message, fix it before going to next. Then click the “Next step” button to continue:
3) Configure the DB settings here created above in this article. Make sure all the settings are correctly filled. Then click the “Next step” button to continue:
4) This step, set a meaning full name for your Zabbix server, select proper timezone and default theme for your Zabbix dashboard. Then click the “Next step” button to continue:
5) The next screen would be the Pre-installation summary just click “Next step” to last part of installation:
6) On successful installation, you will receive a message like below screenshot. Click “Finish” button to go to login screen:
7) You have a running Zabbix server with a web frontend. Use below default Zabbix admin login details:Username:
8) After successful authentication, you will be redirected to Admin dashboard. Here you can add new hosts and services for monitoring.