Zabbix is a popular open-source monitoring software tool that helps you gain insights and simplifies log data from servers, networking devices, and others so you can make sense of them.
For the Zabbix server to gather data, the client software or agent must be installed on the client machines. And this brief tutorial is going to show students and new users how to install the Zabbix client on Ubuntu computers.
Windows and Mac machines will have their client software installed. Visit the Zabbix site to download and install the client software on Windows or Mac OS X systems.
Please see this post to learn how to install Zabbix server software on Ubuntu.
The agent software collects resource utilization and application data on the client system and provides that information to the Zabbix server on their requests.
Install Zabbix agent software on Ubuntu.
To get the Zabbix agent onto the Ubuntu client computer, run the commands below to install the Zabbix repository.
cd /tmp wget http://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1%2Bbionic_all.deb sudo dpkg -i zabbix-release_3.4-1+trusty_all.deb
For Ubuntu 16.04 and previous, you may want to run the commands below to download the repository.
cd /tmp wget http://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+xenial_all.deb sudo dpkg -i zabbix-release_3.4-1+xenial_all.deb
After installing the repository for your system, run the commands below to install the agent software.
sudo apt-get update sudo apt-get install zabbix-agent
That should install the agent software onto Ubuntu machines.
Configure the Agent
Now that the agent software is installed, open its configuration software and define the server IP address so the server and client can communicate.
Run the commands below to open the agent config file.
sudo nano /etc/zabbix/zabbix_agentd.conf
When the file opens, adjust the lines below to define the server IP address and hostname. And save the file and exit.
#Server=[zabbix server ip] #Hostname=[Hostname of client system ] Server=192.168.1.2 Hostname=example.com
Save and exit
When you’re done, run the commands below to reload the agent configuration.
sudo systemctl stop zabbix-agent sudo systemctl start zabbix-agent
After that, the client’s computer should be able to connect to the server and provide all the system info of the client to the server. You should then be able to access that info on the server portal.
You may also like the post below: