Zabbix Agent on Debian


Install Zabbix Agent

First, log into Zabbix agent instance and add the Zabbix repository with the following command:
Change version number for your zabbix version.

# wget
# sudo dpkg -i zabbix-release_3.0-2+stretch_all.deb
# sudo apt-get update -y

Install the Zabbix agent by just running the following command:

# sudo apt-get install zabbix-agent -y

Once the Zabbix agent is installed, you will need to configure Zabbix agent to communicate with Zabbix server. You can do this by editing the Zabbix agent configuration file:

# sudo nano /etc/zabbix/zabbix_agentd.conf

Change the file as shown below:

    #Zabbix Server IP Address / Hostname


    #Zabbix Agent Hostname


Save and close the file when you are finished, then restart the Zabbix agent service and enable it to start on boot time with the following command:

# sudo systemctl restart zabbix-agent
# sudo systemctl enable zabbix-agent