🚀 DevOps & SRE Certification Program 📅 Starting: 1st of Every Month 🤝 +91 8409492687 🔍 Contact@DevOpsSchool.com

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Install & configure Zabbix Server in Ubuntu

Platform & Compoenent

Ubuntu Version: 20:04
Zabbix Version: 6.0 LTS
Database: MySQL
Web Server: Apache

Prerequisite

Step 1 – Install Zabbix repository


# sudo -s [ Become a root user ]
# wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-1+ubuntu20.04_all.deb
# dpkg -i zabbix-release_6.0-1+ubuntu20.04_all.deb
# apt update

Step 2 – Install Zabbix server, frontend, agent


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

Step 3 – Create initial database

Make sure you have database server up and running.
Run the following on your database host.


# mysql -uroot -p
password
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
mysql> create user zabbix@localhost identified by 'DevOpsSchool$123';
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> GRANT SUPER ON *.* TO 'zabbix'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> quit;

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


$ ls /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz
$  zcat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix

# Alternate location
/usr/share/zabbix-sql-scripts/mysql
$ ls /usr/share/zabbix-sql-scripts/mysql/server.sql.gz
$  zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix

Step 4 – Configure the database for Zabbix server

Edit file /etc/zabbix/zabbix_server.conf


DBPassword=DevOpsSchool$123

Step 5 – Start Zabbix server and agent processes

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
# systemctl status zabbix-server zabbix-agent apache2

Step 6 – Configure Zabbix frontend

Connect to your newly installed Zabbix frontend: http://server_ip_or_name/zabbix

Step 7 – Start using Zabbix

This is the Zabbix welcome screen. Enter the user name – “Admin” with password – “zabbix” to log in as a Zabbix superuser. Access to Configuration and Administration menus will be granted.

Subscribe
Notify of
guest


0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x