Zabbix 2.2 agent on CentOS 6

Zabbix agent is deployed on a monitoring target to actively monitor local resources and applications (hard drives, memory, processor statistics etc). The agent gathers operational information locally and reports data to Zabbix server for further processing.
Zabbix agent enables to exec scripts on the host they are on (service restart).
There are two types of checks between Zabbix Server and Client.
Passive Check : Zabbix Agent only sent data to server on there request.
Active Check : Zabbix Agent sends data periodically to Server.
SNMP takes data directly from server, with no option of exec.

Necessary starting conditions
Zabbix server has to have a adequate access to host machine (take care of iptables, SELinux, network and ports allowed).

Good link which gives list of Zabbix agent options with explanation.

Installation and start of Zabbix agent on CentOS 6
How to install Zabbix (v2.2) agent na CentOS6u5 host :
CentOS/RHEL 6:
# rpm -Uvh
# yum install zabbix zabbix-agent
Note : Zabbix is necessary for Zabbix agent.

Configuring of Zabbix agent in /etc/zabbix/zabbix-agent.conf :
Take care : this turns of the log file rotation…..
Take care!!!! When configuring a Zabbix agent host there are two items : “Hostname” and “Visible name”. BOTH must be the same as the item “Hostname” on host/client machine in /etc/zabbix/zabbix_agent.conf!!! And none of them has to be DNS/FQDN of our client…..

# service zabbix-agent start
# chkconfig zabbix-agent on
Good link for items in a configuration file for Zabbix agent.

After this you can make a host under Zabbix server, and add a Template to it.
After about 10min, you will see that the server has communicated with agent on our host (letter Z has turned green) :

How to add Items to a host
Note : After installation and startup of Zabbix-agenta, zou do not HAVE to add “Template Zabbix agent”. You could use only “Template OS Linux”.
Item “Configuration” / “Hosts”.
Chose host to whom we will add the item.
Click on “Items”.
Click on “Create item”.
Fill up the fields.

Check up (is the new item gathering data) :
Go to “Monitoring”, “Latest Data”, click on “+” in front of the host we have added item to, click on item, see data.

Zabbix agents for older RHEL distributions are here.

This entry was posted in Linux and tagged , , . Bookmark the permalink.

Comments are closed.