Zabbix Installation guide
Zabbix Server
Create user and groups for zabbix
groupadd -g 130 zabbix<br></br>
useradd -u 130 -g zabbix -c 'Zabbix monitoring' zabbix```
**Install Dependencies:**
`yum install zlib-devel mysql-devel glibc-devel curl-devel gcc automake mysql libidn-devel openssl-devel net-snmp-devel rpm-devel OpenIPMI-devel`
For Centos 5:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm```
For Centos 6:
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
<br></br>
yum --enablerepo=epel install iksemel iksemel-devel```
**Download Zabbix:**
`wget -O /usr/src/zabbix.tar.gz http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/1.8.11/zabbix-1.8.11.tar.gz?r=http%3A%2F%2Fwww.zabbix.com%2Fdownload.php&ts=1334180716&use_mirror=superb-dca2<br></br>`
tar -zxvf zabbix.tar.gz
cd zabbix```
Login to mysql and create database for zabbix:
mysql> create database zabbix character set utf8;<br></br>
mysql> grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'set-password-here';<br></br>
mysql> quit;```
cd create/schema
cat mysql.sql | mysql -u -p zabbix
cd ../data
cat data.sql | mysql -u -p zabbix
cat images_mysql.sql | mysql -u -p zabbix```
**Now configure the source : **
./configure --enable-server --with-mysql --with-net-snmp --with-jabber --with-libcurl --with-openipmi --enable-agent --sysconfdir=/etc/zabbix
[ you can use –enable-static to statically link libraries so that you can distribute the binaries on different servers and these binaries will work without libraries. ]
make install
update /etc/services with standard zabbix ports:
zabbix-agent 10050/tcp Zabbix Agent<br></br>
zabbix-agent 10050/udp Zabbix Agent<br></br>
zabbix-trapper 10051/tcp Zabbix Trapper<br></br>
zabbix-trapper 10051/udp Zabbix Trapper ```
**Make config directory for zabbix:**
mkdir /etc/zabbix
cp misc/conf/{zabbix_server.conf,zabbix_agentd.conf} /etc/zabbix/
vi /etc/zabbix/zabbix_server.conf ```
[ update zabbix_server.conf with your database information ]
<br></br>
chmod 400 /etc/zabbix/zabbix_server.conf<br></br>
chown zabbix /etc/zabbix/zabbix_server.conf<br></br>
cp misc/init.d/redhat/8.0/zabbix_* /etc/init.d/<br></br>
vi /etc/init.d/zabbix_server```
**and then change the progdir to progdir=”/usr/local/sbin/” . Do the exactly the same with zabbix_agentd. **
chkconfig --add zabbix_server
chkconfig --add zabbix_agentd```
**
Configure /etc/zabbix/zabbix_agentd.conf**
You need to configure this file for every host with zabbix_agentd installed. The file should contain the IP address of the Zabbix server. Connections from other hosts will be denied. You may take misc/conf/zabbix_agentd.conf as example.
Configure /etc/zabbix/zabbix_server.conf
For small installations (up to ten monitored hosts), default parameters are sufficient. However, you should change default parameters to maximize performance of Zabbix. See section [Performance tuning] for more details. You may take misc/conf/zabbix_server.conf as example.
yum install php-mysql php-gd php-bcmath php-mbstring php-xml<br></br>
vi /etc/php.ini```
and change following:
max_execution_time = 600
memory_limit = 256M
post_max_size = 32M
date.timezone = Europe/Zurich
mbstring.func_overload = 2```
Copy the web interface to your web directory:
frontends/php
Zabbix Client
Create user and groups for zabbix
groupadd -g 130 zabbix<br></br>
useradd -u 130 -g zabbix -c 'Zabbix monitoring' zabbix```
`wget -O /usr/src/zabbix.tar.gz http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/1.8.9/zabbix-1.8.9.tar.gz?r=http%3A%2F%2Fwww.zabbix.com%2Fdownload.php&ts=1321978740&use_mirror=voxel `
cd /usr/src/
tar -zxvf zabbix.tar.gz```
./configure –enable-agent
make
make install
Configure /etc/zabbix/zabbix_agentd.conf
mkdir /etc/zabbix
cp misc/conf/zabbix_agentd.conf /etc/zabbix/
cp misc/init.d/redhat/8.0/zabbix_agentd /etc/init.d/
Now edit /etc/zabbix/zabbix_agentd.conf and update the server ip.