How to install and monitor Zabbix agents

0
425

Zabbix agent

Zabbix agent is an application developed in C language. It supports various platforms like Linux, Unix, Windows. It can be helpful to monitor and collect the data like CPU load, services, Disk Usage and Network statistics etc.

Today we will learn about the installation of Zabbix agent on Various platforms.

Zabbix agent installation on RHEL/CentOs

Install and enable Zabbix repository as follows

#rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm

Now install Zabbix agent as follows

#yum -y install zabbix-agent 

Edit the Zabbix agent config file(/etc/zabbix/zabbix_agentd.conf) and add the server and host addresses

Now enable and start the Zabbix agent as follows

#systemctl enable zabbix-agent
#systemctl start zabbix-agent

Zabbix agent installation on Ubuntu

Install and Update Zabbix repository in Ubuntu 16 by using following commands

 wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
 sudo dpkg -i zabbix-release_3.2-1+xenial_all.deb
 sudo apt-get update

Now install Zabbix agent by using following command

sudo apt-get install zabbix-agent

Now edit the zabbix agent configuration file and add server, host addresses like redhat distributions above.
We can start the service Zabbix-agent as follows

sudo service zabbix-agent start

Once the installation complete add the host in Zabbix server.
Open the Zabbix server web console by using address http://ip-address of server/zabbix

Now click on Configuration->Hosts on dashbaord.

Now click on create host option on right side.

 

Now input the hostname, visible name, group and ip address of host. Then clcik on Templates and choose the required templates.

Once we selected template and then click on select and add(there are two add buttons on screen, click on add button below to select option) to link that template. Then click on add to save settings.

Now clcik on Monitoring->Latest Data. In the host groups select the host group and click on apply. if you want the particular system or service input that data and click on apply.

if you want to know about the problems or errors occured in system click on Monitoring->triggers.

To know more about the zabbix server explore all the options available on Zabbix server dashbaord. Enjoy zabbox server.