Step By Step Installation Of Zabbix Monitoring Tool On Redhat/CentOs 7

0
75
views

Zabbix is an Open source software monitoring tool for Networks and applications. It’s basically designed to  monitor the network devices Like Server , router , switches , firewall and other network resources.

Zabbix uses the server-client architecture means server will be installed on a separate machine and agent application will be installed on client machine to monitor the devices. We can monitor thousands of devices with real time monitoring.

Zabbix requires Apache , Mysql , PHP installed on server to work together with zabbix. We’re assuming you have already installed these server on your machine.

If not then follow these link to install LAMP (linux, Apache, Mysql, PHP)

Packages Required

  1. Zabbix-server-mysql
  2. Zabbix-web-mysql
  3. Zabbix-agent
  4. Zabbix-release-3.4-2.el6.noarch

Installation Zabbix

Step 1: First we would like to install officially zabbix repo on the server the link is below

rpm -i http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm

Now Install zabbix agent with necessary packages

yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent

Step 2: I faced some issue while running above comnands for zabbix server the Problem was I needed some PHP dependencies installed on the systems.

Packages name are PHP-mbstring and PHP-bcmath And I installed them. Now Zabbix has been installed successfully on my machine after installing those PHP dependencies.

PHP-mbstring

PH-bcmath

Step 3: Zabbix Configuration file location /etc/zabbix/

Now you need to create a database for zabbix

Login to your database server  mysql –u root –p

Create database

create database zabbixbb character set utf8 collate utf8_bin;

Use database zabbixbb and Create a user

Grant Permission to user zabbiuser on database

Flush privileges

Step 4: Now export default database of zabbix location of database  zcat /usr/share/doc/zabbix-server-mysql-3.4.9/create.sql.gz | mysql -uzabbiuser -p zabbixbb

After this command it will ask you for user password

Step 5: Now will have to put the database related information in the file/etc/zabbix/zabbix_server.conf

  • DBHost =localhost
  • DBName= zabbixbb
  • DBUser = zabbiuser
  • DBPassword = passwd

Step 6:  Start the service of zabbix server and agent

systemctl start zabbix-server && systemctl start zabbix-agent

Now Change the time zone of PHP

vim /etc/httpd/conf.d/zabbix.conf

Add these php_value date.timezone Asia/Kolkata

Configure Via Web GUI

http://Ipaddress/zabbix Or http://localhost/zabbix

Now follow the screenshot

Login with default zabbix credential username “Admin” And Password “zabbix”.

You can Change settings according to your organisation need. We’re having default settings. You can make changes in configuration files.

You’re done

LEAVE A REPLY

Please enter your comment!
Please enter your name here