Zabbix Agent Installation
This section is part of the Zabbix & Elrond Guide
The installation of the agent on every server that you want to setup will be much faster than the server side. We’ll cover here how to setup the standard Zabbix Agent, and cover in later chapters how to adapt it to Elrond Network use case.
First of all, take care to allow all the connections from the IP of your Zabbix Server into the Agent machine.
sudo ufw allow from YOURZABBIXSERVER_IP
INSTALL ZABBIX REPOSITORIES
Its bests is to install the same sources as we did on the zabbix server, so the packages are at the same versions always. Add the repos whith:
sudo wget https://repo.zabbix.com/zabbix/4.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.4-1+bionic_all.deb
sudo dpkg -i zabbix-release_4.4-1+bionic_all.deb
sudo apt update
INSTALL ZABBIX AGENT
Now we need to add the agent to our system with this simple command:
sudo apt install zabbix-agent
And configure it properly in his config file
sudo nano /etc/zabbix/zabbix_agentd.conf
One of the first parameters in the file is Server, here you must put your own Zabbix Server IP or DNS name of your Zabbix Server.
Same for the Parameter ServerActive, it is for active connections. This means the Agent which connects to the server to send data.
And finally the parameter Hostname, you must put a name for this machine where the agent is running, remember well what hostname you put as you will need to setup too into the frontend.
START ZABBIX AGENT
Now that is configured, we just need to run the service:
sudo systemctl restart zabbix-agent
And it’s done, you have your Zabbix Agent up and running