Barra de espaço
Barra de espaço

This tutorial describes a detailed procedure showing how to perform the installation of the zabbix agent on a computer running Ubuntu Linux operating system.

YOUTUBE

In our channel you can view the video of this tutorial.



Run the following commands to install the packages needed for compiling the program.

# apt-get update 
# apt-get install build-essential

  

Create the directory / downloads and download the zabbix in this directory. (Download)

# mkdir /downloads
# cd /downloads

  

Extract the installation package and go to the directory.

# tar -zxvf zabbix-2.4.6.tar.gz
# cd zabbix-2.4.6

  

Execute the following commands to perform the agent installation

# ./configure --enable-agent
# make
# make install


 

As our distribution is Ubuntu, copy the specific startup files for ubuntu with the command below.

# cp misc/init.d/ubuntu/zabbix-agent.conf /etc/init

Delete all the contents of zabbix_agentd.conf file.

# echo > /usr/local/etc/zabbix_agentd.conf

 

Edit the zabbix_agentd.conf file and enter the following directives.

Server=127.0.0.1,IP.OF.ZABBIX.SERVER
ServerActive=IP.OF.ZABBIX.SERVER

  

Example: 

Server=127.0.0.1,200.200.100.100
ServerActive=200.200.100.100

  

Start zabbix agent with the command below.

# service zabbix-agent start

 

Make sure the agent has started correctly in port 10050 with the command below.

# netstat -nl | grep -E "(Local|10050)"

 
Test your installation by running the following command

# zabbix_get -s 127.0.0.1 -p 10050 -k"agent.version"

You can now go to your zabbix server, add a new host and start monitoring. (In the video above it is shown how to make this setting)


The zabbix agent has been successfully installed.

CONCLUSION

This tutorial introduced the software installation process of zabbix agent on a Linux box.