How To Install Zabbix Server 2.2 on CentOS 6 / RHEL 6
Zabbix is an open source software for monitoring the network services, servers and other network devices, created by Alexei Vladishev. Zabbix back end written in C and uses PHP for front end, supports MySQL, PostgreSQL, SQLite, Oracle or IBM DB2 databases.
- It can verify the availability of the standard services such as SMTP or HTTP with out installing any software on remote host.
- It can also monitor CPU, Memory, Disk and other resource on Windows or Unix hosts by installing zabbix client on it.
- It also offers support for monitoring via SNMP,TCP and ICMP.
- It supports real-time notifications
This guide will help you to setup the Zabbix on CentOS / RHEL.
Install the latest release packages, this contains the repository configuration.
rpm -Uvh http://repo.zabbix.com/zabbix/2.2/rhel/5/x86_64/zabbix-release-2.2-1.el5.noarch.rpm
rpm -Uvh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm
Install MySQL by using the following command
yum -y install mysql-server mysql-devel
Start MySQL server.
Install the following packages, it will install the Zabbix server and web with MySQL.
yum -y install zabbix-server-mysql zabbix-web-mysql
Create and Import Database
If you are configuring the MySQL for the first time; take a loot at how to secure the MySQL.
[[email protected] ~]# mysql -u root -p create database zabbix; GRANT ALL ON zabbix.* TO [email protected] IDENTIFIED BY 'zabbixpassword'; flush privileges;
Import schema and data.
mysql zabbix -u root -p < /usr/share/doc/zabbix-server-mysql-2.2.4/create/schema.sql
mysql zabbix -u root -p < /usr/share/doc/zabbix-server-mysql-2.2.4/create/images.sql
mysql zabbix -u root -p < /usr/share/doc/zabbix-server-mysql-2.2.4/create/data.sql
Start the Zabbix Server service.
Configure Zabbix FrontEnd:
vi /etc/httpd/conf.d/zabbix.conf # php_value date.timezone Europe/Riga
Change the value data.timezone depends on your timezone.
Re-start the apache server to take effect of the above configuration.
Visit the following url to start setting up the Zabbix http://your-ip-address/zabbix. Click Next to continue.
Zabbix setup will check the prerequisites, will give you the status like below.
Enter the database information.
Configure the server information.
Check out the installation summary.
Finish the setup.
Login with default credential (Admin/zabbix)
This how the Zabbix dashboard look like.
That’s All!. You have successfully configured the Zabbix server, now configure the zabbix agent on the client machine for monitoring.