0% found this document useful (0 votes)
35 views4 pages

Installation de Zabbix Sur Ubuntu

Uploaded by

ntsevi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views4 pages

Installation de Zabbix Sur Ubuntu

Uploaded by

ntsevi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Zabbix Installation on Ubuntu

1. Introduction
This document outlines the steps to install and configure Zabbix on an Ubuntu
server. Zabbix is an open-source monitoring tool used for monitoring servers,
networks, and applications.

2. Prerequisites
Ubuntu 22.04 or later

Root or sudo access to the server

Internet access for downloading the necessary repositories and packages

3. Steps for Installation


a. Install Zabbix Repository
Start by downloading and installing the Zabbix repository using the following
commands:

wget https://repo.zabbix.com/zabbix/6.4/ubuntu/pool/main/z/Zabbi
dpkg -i zabbix-release_6.4-1+ubuntu22.04_all.deb
apt update

b. Install Zabbix Server, Frontend, and Agent


Next, install the Zabbix server, frontend, agent, and additional configuration files:

apt install zabbix-server-mysql zabbix-frontend-php zabbix-apach

c. Install and Configure MySQL/MariaDB


You can choose to install either MySQL or MariaDB. Here’s how to install MySQL:

Zabbix Installation on Ubuntu 1


sudo apt install -y mysql-server

After the installation, secure your MySQL setup:

sudo mysql_secure_installation

d. Create the Initial Zabbix Database


Once the MySQL or MariaDB server is running, create the initial database for
Zabbix:

1. Log into MySQL:

mysql -uroot -p

Create the Zabbix database and user:

mysql> create database zabbix character set utf8mb4 collate u


tf8mb4_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 Zabbix schema and data:

zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysq


l --default-character-set=utf8mb4 -uzabbix -p zabbix

Disable
log_bin_trust_function_creators after importing the database schema:

mysql -uroot -p
mysql> set global log_bin_trust_function_creators = 0;

Zabbix Installation on Ubuntu 2


mysql> quit;

e. Configure the Database for Zabbix Server


Edit the Zabbix server configuration file to add the database password:

nano /etc/zabbix/zabbix_server.conf

In the file, set the database password:

DBPassword=password

f. Start Zabbix Server and Agent Processes


Start the Zabbix server and agent, and enable them to start at boot:

systemctl restart zabbix-server zabbix-agent apache2


systemctl enable zabbix-server zabbix-agent apache2

g. Open Zabbix UI Web Page


To access the Zabbix web interface, open your web browser and navigate to the
following URL:

http://host/zabbix

The default credentials for logging in are:

Username: Admin

Password: Zabbix

Zabbix Installation on Ubuntu 3


Zabbix Installation on Ubuntu 4

You might also like