How to install zabbix-agent on a linux system

This section only covers the installation of Zabbix-agent and NOT the zabbix-server. The installation on centos and ubuntu varied little bit.

Ubuntu:-

create a download folder so the repo is not downloaded in the /home

 

mkdir /downloads

chmod – 777 /downlooads

cd /downloads

wget http://repo.zabbix.com/zabbix/2.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.4-1+trusty_all.deb

sudo dpkg -i zabbix-release/zabbix-release_2.4-1+trusty_all.deb

sudo apt-get update

sudo apt-get install zabbix-agent

 

Zabbix agent is installated, now configure the hostname and zabbix server parameters:-

#Server=[zabbix server ip]
#Hostname=[Hostname of client system ]

Server=192.168.1.11
Hostname=Server2

Now restart the zabbix-agent service

/etc/init.d/zabbix-agent restart

To start and stop zabbix-agent service anytime use following commands.

/etc/init.d/zabbix-agent start


/etc/init.d/zabbix-agent stop

 

Refer to these link:-

http://tecadmin.net/install-zabbix-agent-on-ubuntu-and-debian/