See for the official Zabbix site.

InstallOnCentOS RHEL

Jump to: navigation, search

Installing on CentOS or RHEL

There are many ways to install software on Linux. This page discusses RHEL and CentOS distributions for Linux. Best practice is usually to use packages (in this case RPMs) to install software on Linux.

Existing RPMs

The best method is generally considered RPMs, either you build your own or use someone else's.

Build your own RPMs

Install from source

ZabbixZone Repository Install

Note: ZabbixZone does not seem to be maintained since Zabbix 2.0 and is deprecated. See above for EPEL and Zabbix repositories.

These are my instructions for installing Zabbix 2.0.x on CentOS6 using the ZabbixZone repository. I have opted to use MySQL.

Server Install

Configure the ZabbixZone package repository and GPG key

rpm --import
rpm -Uv

Install the necessary server packages (and agent, since you'll want to monitor your server too, right?)

yum install mysql-server zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway

edit timezone in /etc/httpd/conf.d/zabbix to read this, or your own time zone:

php_value date.timezone Europe/London

Restart the httpd

service httpd restart


Start MySQL Database Server and secure

service mysqld start
mysql -u root -p

In the MySQL console:

mysql> create database zabbix character set utf8;
mysql> grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'password';
mysql> flush privileges;

Back in the shell we load the Zabbix SQL in the database we just created:

mysql -u zabbix -p zabbix < /usr/share/doc/zabbix-server-mysql-2.0.6/create/schema.sql
mysql -u zabbix -p zabbix < /usr/share/doc/zabbix-server-mysql-2.0.6/create/images.sql
mysql -u zabbix -p zabbix < /usr/share/doc/zabbix-server-mysql-2.0.6/create/data.sql

Zabbix Server

edit /etc/zabbix/zabbix_server.conf to set up zabbix database users' password

Start the zabbix-server process

service zabbix-server start


Java Gateway

The Java gateway service is used for JMX monitoring of servers like JBoss, Tomcat, Weblogic or Websphere.

We need to specify the address of the gateway in the zabbix server config (/etc/zabbix/zabbix-server.conf or zabbix-proxy.conf):


Start on Reboot

chkconfig zabbix-server on
chkconfig mysqld on
chkconfig httpd on
chkconfig zabbix-java-gateway on

Agent Install


rpm --import
rpm -Uv
yum install zabbix-agent -y
chkconfig zabbix-agent on
mv /etc/zabbix/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.default
sed 's/Server=' /etc/zabbix/zabbix_agentd.default > /etc/zabbix/zabbix_agentd.conf
service zabbix-agent start


  • Download latest Windows agent and sources from:
  • Open the source archive and copy the file conf/
  • Edit the file to specify the serverip under 'Passive' mode.
  • Put the file in C:\ on the server.
  • On the server:
zabbix_agentd.exe --install

Proxy Install


Install the proxy and sqlite database packages with yum and configure the proxy to start on boot.

yum install -y sqlite zabbix-proxy-sqlite3

Set up the sqlite database from the schema.

mkdir /var/lib/sqlite

Configure the proxy for the database and IP of your server. You can set hostname if you need, it must match the hostname used in the web interface.

echo DBName=/var/lib/sqlite/zabbix.db >> /etc/zabbix/zabbix_proxy.conf
echo Server= >> /etc/zabbix/zabbix_proxy.conf
echo Hostname=proxy1 >> /etc/zabbix/zabbix_proxy.conf

Start the proxy when this is all done.

service zabbix-proxy start

Add Proxy to Web Interface

Navigate to this breadcumb within zabbix:

Administration > DM > Add Proxy

Make sure the proxy name is the same value as the Hostname set in the configuration file.

Configure Remote Agents

Agents monitored by the proxy need these values in their /etc/zabbix/zabbix_agentd.conf file:

Server= #ip of proxy

These hosts are added in the normal way through the GUI, making sure to select the proxy which you will be polling them through.