How to setup Zabbix 3.0 on CentOS 6

Livesearch

Content

Zabbix 3.0 on CentOS 6

Zabbix 3.0 is the enterprise-level software designed for monitoring availability and performance of IT infrastructure components. It is open source without any cost. We will install it in a server and then install a client system in a separate machine that will be monitored by the server.

The prerequisites for installing it is to have LAMP server is already configured.

Set host name and port no. We will keep the default port no as we have already added this port number to IPTABLE.

Check the pre-installation settings / parameters and click “Next”

Click “Next”

The installation is now complete. Click Finish to complete the installation. You’ll be redirected to the login page. Provide the username and password. The default username/password is admin/zabbix.

Click “Enter”, You will be redirected to dashboard.

Activate the server. The server is by default deactivated from being monitored. To activate it, go to Configuration and then Hosts. Select the host by the name and choose Activate selected from the drop-down box and click Go.

You should find that the host is being monitored

6. Client side configuration

Now we will install agent in client systems. Install the client packages on Fedora/RHEL clients, execute the following command in the terminal. Here for simplicity we will choose the server itself ( demohost.com )as client system. You can replicate the following steps in any client system in the network.

# sudo yum install zabbix-agent

On Ubuntu/Debian clients:

# sudo apt-get install zabbix-agent

Next edit file /etc/zabbix/zabbix_agentd.conf and add the following lines in it. Add the server IP address and client hostname.

[...]
Server=demohost.com
[...]
Hostname=Demo client
[...]

Where, demohost.com is the server that we have installed in step 4

Restart the agent

# sudo service zabbix-agent start

Add Monitoring host
Navigate to dashboard. Click Configuration and then Hosts and finally Click on Create Host on the right side.

Provide hostname, groups and IP address, the agent port no as shown below. When you click “Add” button ( numbered 7), a pop-up window will appear to select the template. We will select “Linux template”( numbered 8 in the image). And finally click the “Save” button ( numbered 9 )

You will now find that new client host is being monitored.

Now you can explore all the options and modify them that suits your requirements on your newly installed Zabbix 3.0 Server.