How install Zabbix 2.2.x on Centos 6

What is Zabbix ?

Zabbix is an enterprise-class open source distributed monitoring solution.

Zabbix is software that monitors numerous parameters of a network and the health and integrity of servers. Zabbix uses a flexible notification mechanism that allows users to configure e-mail based alerts for virtually any event. This allows a fast reaction to server problems. Zabbix offers excellent reporting and data visualisation features based on the stored data. This makes Zabbix ideal for capacity planning.

System LAB

OS: CentOS 6.6

arch: x86_64

system

# yum update 
# hostname zabbix-server 
# vim /etc/hosts 
127.0.0.1 localhost zabbix-server

 

 

MySQL Server

# yum install mysql mysql-server -y
# chkconfig mysqld --level 345 on
# service mysqld start
# mysql_secure_installation

 

Apache

# yum install httpd
# chkconfig httpd --level 345 on
# service httpd start

 

IPTABLES

# vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
# service iptables restart

 

PHP

# yum install php php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml

 

Installing repository configuration package

# rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm
# rpm --import http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX
# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent

 

Creating initial database

# mysql -u root -p
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'zabbix';
exit;

 

Import initial schema and data

# cd /usr/share/doc/zabbix-server-mysql-2.2.8/create/
# mysql -uroot zabbix -p << schema.sql
# mysql -uroot zabbix -p << images.sql
# mysql -uroot zabbix -p << data.sql

 

Modify TimeZone

# vi /etc/php.ini

Go to “date.timezone”

you can get your timezone form here

you can get your timezone from

Edit database configuration in zabbix_server.conf

# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix

 

Start Your server

# chkconfig zabbix-server on
# service zabbix-server restart

Finally Go To Your Fav Browser and write

http://<youripaddress>/zabbix

example:

if my server has ip 192.168.1.100 , i’ll write http://192.168.1.100/zabbix

Zabbix Setup Welcome Screen

click next

Check of pre-requisites

screenshot-from-2015-01-01-223533

if some values don’t meet the required prerequisites , modify that in file php.ini

# vi /etc/php.ini

then refresh the page to see “ok” then click next to

configure DB Configuration

screenshot-from-2015-01-01-223546

then click next to

configure Host

screenshot-from-2015-01-01-223624

then next -> Finish

Default Username: Admin
Default Password: zabbix

 

screenshot-from-2015-01-02-010637-e1420153659874

Advertisements
This entry was posted in NMS and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s