Installation of Zabbix on CentOS 6.3

Here is my simple steps to Install Zabbix on CentOS machine.

1.

yum install zlib-devel mysql-devel glibc-devel curl-devel gcc automake mysql libidn-devel openssl-devel net-snmp-devel rpm-devel OpenIPMI-devel

 

  1. install repo

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

  1. yum –enablerepo=epel install iksemel iksemel-devel
  2. download zabbix installation file

from www.zabbix.com/download

or

wget http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/1.8.1/zabbix-1.8.1.tar.gz?use_mirror=freefr

  1. cd zabbix.1.2.3
  2. ./configure –enable-server –with-mysql –with-net-snmp –with-jabber –with-libcurl –with-openipmi –enable-agent
  3. yum install make
  4. make
  5. make install

Now make DataBase

  1. mysql> create database your_username character set utf8;
    11. grant all privileges on your_database.* to ‘your_username’@’localhost’ identified by ‘your_password’;
  2. Import SQL file from the downloaded files (check it can be in any folder depend on Zabbix Version.

mysql your_database < mysql.sql

mysql your_database < data.sql

mysql your_database < images_mysql.sql

NOW CONFIGURE ZABBIX

  1. # mkdir /etc/zabbix
          # cd ../..
          # cp misc/conf/{zabbix_server.conf,zabbix_agentd.conf} /etc/zabbix
  2. vi /etc/zabbix/zabbix_server.conf (use your mysql information)

INSTALLATION OF WEB FRONTEND

  1. # yum install php-mysql php-gd php-bcmath php-mbstring php-xml
    16. # cp -r frontends/php/ /var/www/html/
    17. # mv /var/www/html/php/ /var/www/html/zabbix
  2. # nano /etc/php.ini

Add following values

max_execution_time = 600
memory_limit = 256M
post_max_size = 32M
mbstring.func_overload = 2