How to install Zabbix monitoring tool in Red Hat or Centos 6 for Mysql database

Just add the repository EPEL 64 bits

Add the repository EPEL to get last zabbix available

#Red Hat 6 or centos 6 (32 bits)

# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
 And for 64bit us:-

# rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
yum update

yum –enablerepo=epel install zabbix zabbix-agent zabbix-web-mysql zabbix-server-mysql zabbix-docs
yum install mysql-server

/sbin/chkconfig –levels 235 httpd on

/sbin/chkconfig –levels 235 mysqld on

/etc/init.d/mysqld start

#Database config

mysql -u root -p

#mysql> create database zabbix;

#mysql> grant all privileges on zabbix.* to zabbix@localhost identified by ‘password’;

#mysql> exit


cd /usr/share/doc/zabbix-server-mysql-*/create/schema

cat mysql.sql | mysql -u root -p zabbix

cd ../data

cat data.sql | mysql -u root -p zabbix

cat images_mysql.sql | mysql -u root -p zabbix

vi /etc/zabbix/zabbix_server.conf

# line 110: uncomment and add DB password for Zabbix

vi /etc/zabbix/zabbix_agentd.conf

# line 91: change to your hostname

vi /etc/php.ini

# line 440: change to Zabbix recomended
max_execution_time = 600

# line 449: change to Zabbix recomended
max_input_time = 600

# line 457: change to Zabbix recomended
memory_limit = 256M

# line 729: change to Zabbix recomended
post_max_size = 32M

# line 878: change to Zabbix recomended
upload_max_filesize = 16M

# line 946: uncomment and add your timezone
date.timezone = Europe/London

/etc/rc.d/init.d/zabbix-server start

/etc/rc.d/init.d/zabbix-agent start

/etc/rc.d/init.d/httpd restart

chkconfig zabbix-server on

chkconfig zabbix-agent on


#firewall ports of zabbix: 80, 10050, 10051

If you dont have firewall rules, just stop iptables service
service iptables stop

Use a web browser to open http://serveraddress/zabbix

Default user: Admin
Default pass: zabbix



Written by doutdex in: Uncategorized | Tags: ,

No Comments »

RSS feed for comments on this post. TrackBack URL

Leave a Reply

%d bloggers like this: