You are on page 1of 1

https://tecadmin.

net/install-zabbix-agent-on-debian/

## For Debian 10:

wget https://repo.zabbix.com/zabbix/4.0/debian/pool/main/z/zabbix-release/zabbix-
release_4.0-3+buster_all.deb
sudo dpkg -i zabbix-release_4.0-3+buster_all.deb

## For Debian 9:

wget https://repo.zabbix.com/zabbix/4.0/debian/pool/main/z/zabbix-release/zabbix-
release_4.0-3+stretch_all.deb
sudo dpkg -i zabbix-release_4.0-3+stretch_all.deb

## For Debian 8:

wget https://repo.zabbix.com/zabbix/4.0/debian/pool/main/z/zabbix-release/zabbix-
release_4.0-3+jessie_all.deb
sudo dpkg -i zabbix-release_4.0-3+jessie_all.deb

Step 2 – Install Zabbix Agent


Now you have added Zabbix repositories to your system. let’s use the following
command to install Zabbix agent on Debian machine.

sudo apt-get update


sudo apt-get install zabbix-agent
Step 3 – Configure Zabbix Agent
After installing completed of Zabbix aget. Edit zabbix agent configuration file
zabbix_agentd.conf and update the Zabbix server IP address and zabbix agent name.

sudo vi /etc/zabbix/zabbix_agentd.conf
/etc/zabbix/zabbix_agentd.conf
#Server=[zabbix server ip]
#Hostname=[Hostname of client system ]

Server=192.168.1.10
Hostname=Server2
Here 192.168.1.10 is the IP of Zabbix server to allow for connection with this
Zabbix client.

Step 4 – Restart Zabbix Agent


After adding Zabbix server IP in the configuration file, now restart agent service
using below command.

sudo service zabbix-agent start


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

sudo systemctl enable zabbix-agent


sudo systemctl start zabbix-agent

You might also like