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
- install repo
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
- yum –enablerepo=epel install iksemel iksemel-devel
- 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
- cd zabbix.1.2.3
- ./configure –enable-server –with-mysql –with-net-snmp –with-jabber –with-libcurl –with-openipmi –enable-agent
- yum install make
- make
- make install
Now make DataBase
- mysql> create database your_username character set utf8;
11. grant all privileges on your_database.* to ‘your_username’@’localhost’ identified by ‘your_password’; - 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
- # mkdir /etc/zabbix
# cd ../..
# cp misc/conf/{zabbix_server.conf,zabbix_agentd.conf} /etc/zabbix - vi /etc/zabbix/zabbix_server.conf (use your mysql information)
INSTALLATION OF WEB FRONTEND
- # 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 - # nano /etc/php.ini
Add following values
max_execution_time = 600
memory_limit = 256M
post_max_size = 32M
mbstring.func_overload = 2