How to configure Zabbix Monitoring tool on Ubuntu

Here, I want to show you how to install Zabbix on Ubuntu 18.04, and along with the PHP and MySQL.

Zabbix 4.4 / CentOS 8 installation issues – 4 Minutes Ago

Step #01: First update and upgrade must be run on your server.

root@zabbixserver:~# apt update && apt-get upgrade

Step #02: Install apache webserver

root@zabbixserver:~# apt install apache2 

Step #03: Then install mysql database command below

root@zabbixserver:~# apt install mysql-server

Step #04: Install update version 7.2 needed for install Zabbix server.

                    root@zabbixserver:~# apt install php php7.2-cli php7.2-mysql php7.2-common php7.2-curl php7.2-json php7.2-cgi libapache2-mod-php7.2 php7.2

Apache webserver now start command

root@zabbixserver:~# service apache2 start

 

Step #05: Download Zabbix deb file from below link

root@zabbixserver:~# wget http://repo.zabbix.com/zabbix/3.5/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.5-1%2Bbionic_all.deb

Enable Zabbix repo for my server command below

root@zabbixserver:~# dpkg -i zabbix-release_3.5-1+bionic_all.deb

Again run update command for newly released Zabbix server

root@zabbixserver:~# apt update

                                     

 Step #06: Zabbix server fronted mysql and php installation command below.

root@zabbixserver:~# apt install zabbix-server-mysql zabbix-frontend-php 

Step #07: Create Zabbix database and user from mysql terminal.

root@zabbixserver:~# mysql -u root -p

Type your mysql password: password

mysql > create database zabbix character set utf8 collate utf8_bin;

mysql > grant all privileges on zabbix.* to zabbix@localhost identified by 'password';

mysql > flush privileges;

mysql > cd database/mysql

> mysql -uzabbix -ppassword zabbix < schema.sql

> mysql -uzabbix –ppassword zabbix < images.sql

> mysql -uzabbix -ppassword zabbix < data.sql

\q

Step #08: Create mysql table for store all data goto below directory

root@zabbixserver:~# cd /usr/share/doc/zabbix-server-mysql/
root@zabbixserver:/usr/share/doc/zabbix-server-mysql/#  zcat create.sql.gz | mysql -uroot zabbix –p
 

Type MySQL password and wait for few minutes

Step #09: Configure Zabbix Server conf file so open conf file via vim or vi editor

root@zabbixserver:~# vi /etc/zabbix/zabbix_server.conf
 

Make sure to insert into all below config into zabbix_server.conf file.

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=password                (add DB Password below the line)


Step #10: Edit php.ini file for time zone

root@zabbixserver:~# vi /etc/php/7.2/apache2/php.ini
 
 Asia/Kolkata
 

Now apache and Zabbix Server restart command

root@zabbixserver:~# service apache2 restart

root@zabbixserver:~# service zabbix-server start 

Step #11: Goto your using browser and type Server IP address like as below.

http://Zabbix-Server-IP/zabbix/

Now see your server details like as ubuntu 18.04, mysql and php version.                                                                                                                    

Zabbix welcome page then step by step follow my image installation process click Next step                                                                                        

Zabbix Check of pre-requisites click Next step        

Zabbix Configure DB connection check all setting like as

Database type : MySQL

Database host : localhost

Database port : 0

Database name : zabbix 

User : zabbix

Password : password

All setting are ok then click Next step                                                                                                                                                                                                                                                                                     

Zabbix Server details if type any name on last input box. Click Next step    

Pre-installation summary all is ok then Click Next step   

Congratulation you have successfully installed Zabbix frontend. Click Finish        

Now popup login form         

Zabbix default user name and password.

User Name : Admin

Password : zabbix

Once complete the steps, Open Zabbix Server follow the below steps:

In Configuration -> Hosts -> Zabbix Server – On Status option enable if it is disabled.

root@zabbixserver:~# ufw disable

root@zabbixserver:~# vi /etc/hosts

Add server IP and hostname






Then install Zabbix-agent

root@zabbixserver:~# apt install zabbix-agent

Then edit the hosts: 
root@zabbixserver:~# vi /etc/zabbix/zabbix_agentd.conf













Command restart Zabbix agent:

root@zabbixserver:~# service zabbix-agent

root@zabbixserver:~# service zabbix-agent restart 

Command to start Zabbix agent and server:

root@zabbixserver# service zabbix-agent start

root@zabbixserver# service zabbix-server start

Comments

Popular posts from this blog

DDOS attack - Script

Windows screen auto unlock - Script