666 views
asked in Technology by
Install and configure Zabbix 7 with Nginx and MySQL for Ubuntu 24.04 LTS

1 Answer

answered by

Chirag's Technology Tutorial

*********************************************************************************

*   Install and configure Zabbix 7 with Nginx and MySQL for Ubuntu 24.04 LTS *

*********************************************************************************

YouTube Video Link:

Zabbix is widely regarded as a powerful and reliable monitoring tool. The 7.0 LTS (Long Term Support) release introduces a range of new features and substantial enhancements. This comprehensive guide will walk you through installing Zabbix 7.0 LTS on an Ubuntu 24.04 ARM64 system using Nginx and MySQL.

Prerequisites:

Before starting, make sure you have:

  • An Ubuntu 24.04 ARM64 server.
  • Root access or a user with sudo privileges.
  • An internet connection to download the necessary packages.

Step 1: Update the System

First, update your system to ensure all packages are up to date:

sudo apt update
sudo apt upgrade -y

Step 2: Install the Database Server

Zabbix requires a database to store data. In this example, we will use MySQL/MariaDB.

Install MariaDB:

sudo apt install mariadb-server -y

Start and enable the MariaDB service:

sudo systemctl start mariadb
sudo systemctl enable mariadb

Secure the MariaDB installation:

sudo mysql_secure_installation

Step 3: Create the Zabbix Database

Connect to MySQL/MariaDB and create the database and user for Zabbix:

sudo mysql -u root -p

# Inside the MySQL console:

mysql> CREATE DATABASE zabbix CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
mysql> CREATE USER 'zabbix'@'localhost' IDENTIFIED BY 'admin@123';
mysql> GRANT ALL PRIVILEGES ON zabbix.* TO 'zabbix'@'localhost';
mysql> SET GLOBAL log_bin_trust_function_creators = 1;
mysql> FLUSH PRIVILEGES;
mysql> EXIT;

Step 4: Install the Zabbix Repository

Add the Zabbix repository:

wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-1%2Bubuntu24.04_all.deb
sudo dpkg -i zabbix-release_7.0-1+ubuntu24.04_all.deb
sudo apt update

Step 5: Install Zabbix Server, Frontend, and Agent

Install the necessary packages:

sudo apt install zabbix-server-mysql zabbix-sql-scripts zabbix-frontend-php zabbix-nginx-conf zabbix-agent

Step 6: Configure the Zabbix Database

Import the initial database schema:

zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix --database=Zabbix

Disable log_bin_trust_function_creators option after importing database schema.

# mysql -uroot -p
password
mysql> set global log_bin_trust_function_creators = 0;
mysql> quit;

Edit the Zabbix Server configuration file:

sudo nano /etc/zabbix/zabbix_server.conf

Adjust the following lines with your database information:

DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=admin@123

Step 7: Configure the Zabbix Frontend

Edit the Nginx configuration file for Zabbix:

sudo nano /etc/zabbix/nginx.conf

Uncomment and adjust the following lines as necessary:

server {
    listen          80;
    server_name     192.168.224.134;
    root            /usr/share/zabbix;

    index           index.php;
    location / {
        try_files $uri $uri/ =404;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
    }

    location ~ /\.ht {
        deny  all;
    }
}

Ensure PHP is configured correctly:

sudo nano /etc/php/8.3/fpm/php.ini

Adjust the following settings:

post_max_size = 16M
upload_max_filesize = 2M
max_execution_time = 300
max_input_time = 300
date.timezone = "Asia/Kolkata"

Restart the PHP-FPM and Nginx services:

sudo systemctl restart php8.3-fpm
sudo systemctl restart nginx

Step 8: Start and Enable Zabbix Services

Start and enable the Zabbix services:

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

Step 9: Complete the Installation via Web Interface

Open your browser and access your server’s address to complete the setup:

http://192.168.224.134/

Follow the on-screen instructions to finalize the installation.

In Zabbix welcome screen. Enter the 

username: Admin

with 

password: zabbix 

to log in as a Zabbix superuser. Access to all menu sections will be granted.

For any doubts and query, please write on YouTube video comments section.

Note : Flow the Process shown in video.

Please, Subscribe and like for more videos:

https://www.youtube.com/@chiragstutorial

Don't forget to, Follow, Like, Share &, Comment

Thanks & Regards,

Chitt Ranjan Mahto "Chirag"

_____________________________________________________________________

Note: All scripts used in this demo will be available in our website.

Link will be available in description.

#chirags 

#chiragstutorial 

#chiragsTechnologytutorial

#chiragsTechnologytutorials

#Technologytutorial 

#Technology 

#Technologycourse 

#installZabbix

#installZabbix7

#installZabbix7inUbuntu

#Zabbix7inUbuntuNginx

#UbuntuNginxZabbix7

#chriagstutorial

chirags, chirags tutorial, chirags Technology tutorial, chirags Technology tutorial, Zabbix tutorial, Zabbix7, Zabbix 7 course, install Zabbix 7, Zabbix7_tutorial, Zabbix7 php, chirags Zabbix tutorial, chirags tutorial, chirag tutorial, Install and configure Zabbix 7 with Nginx and MySQL for Ubuntu 24.04 LTS

Most popular tags

laravel postgresql laravel-10 replication ha postgresql mongodb laravel-11 mongodb database mongodb tutorial ubuntu 24.04 lts streaming-replication mysql database laravel postgresql backup laravel login register logout database mysql php laravel 11 - login with otp valid for 10 minutes. user and admin registration user and admin login multiauth technlogy asp.net asp.net c# mysql master slave replication centos linux laravel sql server schedule backup autobackup postgresql django python haproxy load balancer install self sign ssl laravel 11 gaurds zabbix 7 how to install graylog on ubuntu 24.04 lts | step-by-step asp.net core mvc .net mvc network upload c# ssl integration sql server on ubuntu 22.04 lts mssql server ms sql server sql server user access in postgres mysql password change cent os linux configure replica laravel 11 socialite login with google account google login kubernetes (k8s) install nginx load balancer install install and configure .net 8.0 in ubuntu 24.04 lts php in iis php with iis php tutorial chirags php tutorials chirags php tutorial chirags tutorial laravel 11 guards mongodb sharding metabase business analytics metabase postgresql 16 to postgresql 17 postgresql migration letsencrypt mongodb crud rocky linux laravel custom captcha laravel 11 captcha laravel captcha mongo dll php.ini debian 12 nginx apache nextcloud gitea in ubuntu git gitea npm error node js mysql ndb cluster mysql cluster ssl oracle login register logout in python debian windows shell batch file bat file time stamp date time shopping cart in laravel centos rhel swap memeory rhel 5.5
...