Compile Zabbix 2.2.6 LTS on Centos 6.4 x64

Complete step by step guide on how to compile zabbix.

!!! Please be aware this is still heavily under construction! I decided to use the appliance instead!!!

Prequisites:
– Centos 6.5 X64 minimal or net-install with basic server (installed)
– root access
– Mysql installed
– Apache installed
– ssh access
– static ip

Step 1: Download & extract package and make directory

cd /home/<user>
mkdir zabbix
cd zabbix
wget http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.2.6/zabbix-2.2.6.tar.gz
tar -xzvf zabbix-2.2.6.tar.gz
cd zabbix-2.2.6

Step 2: Make group and user
! change to root !

sudo su
groupadd zabbix
useradd -g zabbix zabbix

Step 2: Install dependencies etc

yum -y install gcc libxml2-devel net-snmp-devel libcurl curl curl-devel rpmdevtools kernel-devel 
yum -y install mysql-devel
cd 

Step 3: Configure zabbix & make install

cd /home/<user>/zabbix-2.2.6/ (if you were not already).
./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
make install

You know have compiled your own zabbix

Step 4: Create an RPM package:

mkdir /home/<user>/zabbix
cd /home/<user>/zabbix
wget http://dag.wieers.com/rpm/packages/checkinstall/checkinstall-1.6.0-3.el5.rf.i386.rpm
rpm -ivh checkinstall-1.6.0-3.el5.rf.i386.rpm 
cd zabbix-2.2.6
checkinstall --nodoc --install=yes -y

Step 5: Install RPM package: WORK IN PROGRESS!

rpm -ivh <zabbix>.rpm

Step 6: Configure config files
Sources:
1. https://www.zabbix.com/wiki/howto/install/centos/centosinstall
2. https://www.zabbix.com/documentation/2.2/manual/installation/install

Leave a comment