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


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



MySQL Server

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



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



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



# 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
# rpm --import
# 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';


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


Start Your server

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

Finally Go To Your Fav Browser and write



if my server has ip , i’ll write

Zabbix Setup Welcome Screen

click next

Check of pre-requisites


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


then click next to

configure Host


then next -> Finish

Default Username: Admin
Default Password: zabbix



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: Logo

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

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s