How To Install Zabbix on CentOS 6

Install Zabbix on CentOS 6

For those of you who didn’t know, Zabbix is an open source monitoring tool that is ideal for monitoring your cloud servers. Zabbix is very flexible, information can be retrieved using HTTP/SNMP or by installing a Zabbix agent on the machines to monitor, and allows a lot of customization.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Zabbix on CentOS 6.

Install Zabbix on CentOS 6

Step 1. First of all make sure that all packages are up to date.

Step 2. Install LAMP server and include some PHP extension.

Start service Apache web server and MySQL also enable it to start on boot of the server:

Step 3. Install Zabbix.

Add the Zabbix repository and install the packages:

Use following command to install Zabbix using mysql database support packages on your system:

Step 4. Configure MySQL Database for Zabbix.

By default, MySQL is not hardened. You can secure MySQL using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MySQL.

Next we will need to log in to the MySQL console and create a database for Zabbix. Run the following command:

This will prompt you for a password, so enter your MySQL root password and hit Enter. Once you are logged in to your database server you need to create a database for the Zabbix software:

Import zabbix templates to Zabbix database:

Step 5. Configure Apache web server.

Created a file for Apache in /etc/httpd/conf.d/zabbix.conf:

Edit this file to look similar to this:

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

We should adjust php.ini file as per zabbix recommended settings:

Restart the Apache and zabbix service for the changes to take effect:

Step 6. Accessing Zabbix.

Zabbix will be available on HTTP port 80 by default. Open your favorite browser and navigate to or http://server-ip/zabbix and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.

Install Zabbix on CentOS 6

Congratulation’s! You have successfully installed Zabbix. Thanks for using this tutorial for installing Zabbix Monitoring Tool on CentOS 6 system. For additional help or useful information, we recommend you to check the official Zabbix website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!