0% found this document useful (0 votes)
71 views

Zabbix Configuration - Ubuntu

1. The document describes how to configure a Zabbix server on a Linux/Ubuntu server and install the Zabbix agent on a Windows server. 2. It involves installing the Zabbix repository, Zabbix server, frontend, and agent packages and configuring the MySQL database. 3. Once installed, the Zabbix agent is installed on the Windows server and the server is added as a host to be monitored by the Zabbix server.

Uploaded by

Gabriel Castro
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views

Zabbix Configuration - Ubuntu

1. The document describes how to configure a Zabbix server on a Linux/Ubuntu server and install the Zabbix agent on a Windows server. 2. It involves installing the Zabbix repository, Zabbix server, frontend, and agent packages and configuring the MySQL database. 3. Once installed, the Zabbix agent is installed on the Windows server and the server is added as a host to be monitored by the Zabbix server.

Uploaded by

Gabriel Castro
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Configuration of Zabbix Server in Linux & Ubuntu

Step 1:
➢ We need to create a Linux/Ubuntu server. (Now I Have Done This with ubuntu 22.04 with
t2small) t2small Just For More Speed Other Then You Can Use t2Micro.

We need to check the Linux/Ubuntu server is login into putty.

Kishore Zabbix Configuration Documentation


Configuration of Zabbix Server in Linux & Ubuntu

Step 2: Choose your platform


➢ Official Zabbix 6.4 packages for Debian, Ubuntu, and Raspberry Pi OS (Raspbian) are
available. Packages are available with either MySQL/PostgreSQL database and Apache/Nginx
web server support.

Notes on installation:
1.Install and configure Zabbix for your platform

Install Zabbix repository

• # 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

Kishore Zabbix Configuration Documentation


Configuration of Zabbix Server in Linux & Ubuntu

Install Zabbix server, frontend, agent

• # apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts


zabbix-agent

Create initial database

• apt-get install mysql-server(ubuntu)/yum install mysql-server (Linux)


• # mysql -uroot -p
• password-create a password for mysql server EX(Cloud@123)

Create initial database Query

Kishore Zabbix Configuration Documentation


Configuration of Zabbix Server in Linux & Ubuntu

➢ mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;


➢ mysql> create user zabbix@localhost identified by 'password';(this password for zabbix, rename
the password in comment with Limited@123)
➢ mysql> grant all privileges on zabbix.* to zabbix@localhost;
➢ mysql> set global log_bin_trust_function_creators = 1;
➢ mysql> quit;

On Zabbix server host import initial schema and data. You will be prompted to enter
your newly created password.

# zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -


uzabbix -p zabbix

Kishore Zabbix Configuration Documentation


Configuration of Zabbix Server in Linux & Ubuntu

Disable log_bin_trust_function_creators option after importing database schema.

• # mysql -uroot -p
Password(enter password)
• mysql> set global log_bin_trust_function_creators = 0;

mysql> quit;

Configure the database for Zabbix server

• Edit file vi /etc/zabbix/zabbix_server.conf

Kishore Zabbix Configuration Documentation


Configuration of Zabbix Server in Linux & Ubuntu

DBPassword=password (uncomment and write same password which already given before the
mysql data).

After that Press ESC And :wq! To Save It.

Start Zabbix server and agent processes

• # systemctl restart zabbix-server zabbix-agent apache2

# systemctl enable zabbix-server zabbix-agent apache2

Kishore Zabbix Configuration Documentation


Configuration of Zabbix Server in Linux & Ubuntu

After that edit the security group in aws console,In server enabled to security group
ports: zabbix server

• Http – port No – 80
• Http – port No – 443
• Ssh-port No-22
• Zabbix port No – 10050
• In Ip address select the “what is my Ip” and add that Ip in source

Open Zabbix UI web page the default URL for Zabbix UI when using Apache web server is
(public Ip/zabbix) hit

1. We need to enter the user’s name(zabbix) and password (Limited@123) while created on the
server.

Kishore Zabbix Configuration Documentation


Configuration of Zabbix Server in Linux & Ubuntu

We need to set the Zabbix server name and time zone (Asia kolkatta5.30).

SUCEESSFULLY INSTALLED ZABBIX FRONTEND.

Kishore Zabbix Configuration Documentation


Configuration of Zabbix Server in Linux & Ubuntu

installing completed status after that USERNAME Admin & password zabbix (default).

ZABBIX CONSOLEWITH GOBAL VIEW DASHBOARD

GO TO MONTIOTING→HOSTS→CHECK WHETHER ZABBIX SERVER IS AVAIABLE STATUS.

Kishore Zabbix Configuration Documentation


Configuration of Zabbix Server in Linux & Ubuntu

Configure window server for agent in zabbix so create new window ec2 machine.

LOGIN USING RDP WITH PUBLIC IP

Kishore Zabbix Configuration Documentation


Configuration of Zabbix Server in Linux & Ubuntu

Installing Zabbix agent in server by browse the zabbix agent download in internet and install in window
server.

INSTALL

Kishore Zabbix Configuration Documentation


Configuration of Zabbix Server in Linux & Ubuntu

During installing hostname default and Zabbix server Ip should be main public Ip of zabbix server. After
completed Restart the zabbix agent and host in zabbix server.

Kishore Zabbix Configuration Documentation


Configuration of Zabbix Server in Linux & Ubuntu

CREATE NEW HOSTS

ENTER HOST NAME (WHICH GIVEN IN TIME OF INSTALLING ) AFTER THAT SELECT TEMPLATE →APACHE
BY ZABBIX AGENT

Kishore Zabbix Configuration Documentation


Configuration of Zabbix Server in Linux & Ubuntu

SELECT HOST GROUPS→ZABBIX SERVERS & GO TO ADD OPTION →AGENT

NOW ENTER WINDOW ZABBIX AGENT INSTALLED SERVER PUBLIC IP

Kishore Zabbix Configuration Documentation


Configuration of Zabbix Server in Linux & Ubuntu

AFTER THIS HOST ADDED REFRESH PAGE BUT SERVER IS ON UNKNOW(UNAVAIABLE)S0 RESTART AGENT.

GO→WINDOW →SEARCH→SERVICES→ZABBIX AGENT(RIGHT CLICK)→RESTART

Kishore Zabbix Configuration Documentation


Configuration of Zabbix Server in Linux & Ubuntu

NOW REFRESH THE PAGE SERVER WILL BE ON GREEN COLOUR (WHICH MEAN SERVER LINKED WITH
ZABBIX SERVER AND SENDING DATA TO IT)LIKE THIS NEW CAN CREATE MORE SERVER TO MONTORING
WITH AGENT BY CREATING THE HOSTS

WE CAN MONTOR GRAPHS OF CPU,MEMORY,SERVER USAGE ETC..,

Kishore Zabbix Configuration Documentation


Configuration of Zabbix Server in Linux & Ubuntu

AND WE TRIGGERS WENT CPU USAGE IS HIGH BY ALERTING MESSAGE

THIS IS NETWORK MAP BY THIS WE CAN CONNECT SERVER

Kishore Zabbix Configuration Documentation

You might also like