Share this:
1
Zabbix Agent is installed on all remote systems needs to monitor through Zabbix server. The Zabbix Agent collects resource utilization and applications data on client system and provide such information to Zabbix server on there requests.
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.
After installing Zabbix Server, this article will help you to Install Zabbix Agent on CentOS/RHEL 6/5 and Ubuntu 12.04/10.04 Systems. After completing this step go to next article add Host in Zabbix Server.

1. Install Zabbix Agent on CentOS/RHEL

Follow the below instructions to install Zabbix Agent on CentOS, RHEL 6/5 Systems.

Step 1: Add Required Repository

Before installing Zabbix Agent first configure zabbix zone rpm repository using following commands as per your required version and operating system.
Zabbix 2.2:-
CentOS/RHEL 6: # rpm -Uvh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm CentOS/RHEL 5: # rpm -Uvh http://repo.zabbix.com/zabbix/2.2/rhel/5/x86_64/zabbix-release-2.2-1.el5.noarch.rpm
Zabbix 2.0:-
CentOS/RHEL 6: # rpm -Uvh http://repo.zabbix.com/zabbix/2.0/rhel/6/x86_64/zabbix-release-2.0-1.el6.noarch.rpm CentOS/RHEL 5: # rpm -Uvh http://repo.zabbix.com/zabbix/2.0/rhel/5/x86_64/zabbix-release-2.0-1.el5.noarch.rpm

Step 2: Install Zabbix Agent

Use following command to install Zabbix using mysql database.
# yum install zabbix zabbix-agent

Step 3: Update Zabbix Agent Configuration

Edit zabbix agent configuration file /etc/zabbix/zabbix_agentd.conf and update Zabbix server ip
#Server=[zabbix server ip]
#Hostname=[ Hostname of client system ]

Server=192.168.1.11
Hostname=Server1

Step 4: Start/Stop Zabbix Agent

Start zabbix agent service using following commands.
# /etc/init.d/zabbix-agent start
# /etc/init.d/zabbix-agent stop

2. Install Zabbix Agent on Ubuntu

Follow the below instructions to install Zabbix agent on Ubuntu 12.04/10.04 LTS Systems.

Step 1: Add Required Repository

Add repository to install required packages for zabbix agent using following command.
For Ubuntu 10.04 LTS:

# wget http://repo.zabbix.com/zabbix/2.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.0-1lucid_all.deb
# dpkg -i zabbix-release_2.0-1lucid_all.deb
# apt-get update

For Ubuntu 12.04 LTS:

# wget http://repo.zabbix.com/zabbix/2.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.0-1precise_all.deb
# dpkg -i zabbix-release_2.0-1precise_all.deb
# apt-get update

Step 2: Install Zabbix Agent

Use following command to install Zabbix using mysql database.
# apt-get install zabbix-agent

Step 3: Update Zabbix Agent Configuration

Edit zabbix agent configuration file /etc/zabbix/zabbix_agentd.conf and update Zabbix server ip
#Server=[zabbix server ip]
#Hostname=[Hostname of client system ]

Server=192.168.1.11
Hostname=Server2

Step 4: Start/Stop Zabbix Agent

Start zabbix agent service using following commands.
# /etc/init.d/zabbix-agent start
# /etc/init.d/zabbix-agent stop
Congratulation’s! You have successfully installed Zabbix Agent. Lets Add Host in Zabbix Server to be monitory.