Zabbix installation on CentOS 7/RHEL 7

0
995

Zabbix

It is an opensource monitoring tool that can be used to monitor and track performance of network services, web servers and other network hardware. It is able to monitor thousands of devices. It consists of several modules such as server, agent, front end and proxy.
Server, proxy and agents are developed in C, front end is developed on PHP and JavaScript. In this article, we will be known about the installation of Zabbix Server on CentOs 7 and RHEL 7.
First, we need to make sure that LAMP(LINUX, APACHE, MariaDB, PHP).
LAMP Stack installation on Linux
Now install EPEL and Zabbix Repository by using following commands

#yum -y install epel-release
#rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm

Now install zabbix server as follows

#yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway

Once the installation completes, edit the file /etc/httpd/conf.d/zabbix.conf by using vi editor
Update time zone

php_value date.timezone Asia/Kolkata

Now configure zabbix database

MariaDB [(none)]> create database zabbixdb;
Query OK, 1 row affected (0.01 sec)

MariaDB [(none)]> create user 'user1'@'localhost' identified by 'zabbixpassword';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> grant all on zabbixdb.* to 'user1'@'localhost';
Query OK, 0 rows affected (0.11 sec)

MariaDB [(none)]> exit
Bye

Now import the zabbix templates to zabbix database

#cd /usr/share/doc/zabbix-server-mysql-3.2.3
#gunzip create.sql.gz
#mysql -u user1 -p zabbixdb<create.sql
Enter password

Now restart httpd and mariadb service

#systemctl restart httpd mariadb

Start the zabbix service as follows

#systemctl start zabbix-server zabbix-agent

Add the firewall rules

#firewall-cmd --permanent --zone=public --add-port=10050/tcp
#firewall-cmd--permanent--zone=public--add-port=10051/tcp
#firewall-cmd --reload

Now complete zabbix server installation by using web console. Access the URL address http://ip-address/zabbix

On the welcome screen of Zabbix installation click on Next step

Check the pre-requisites and then click on Next

Fill the database details and click on Next step

Configure the Zabbix server details and click on Next

Check the Pre installation summary and click on Next

Once the installation completes we get the screen like above. The login scrren is as follows


The default username admin and Password is zabbix. the dashbaord is as follows

 

In the next article we will be learn about the installation Zabbix agent on Linux and Monitoring.