Knowledgebase

How To Install Zabbix Agent on Debian 9/8?

Zabbix Agent is required to install on all remote systems needs to monitor through Zabbix server. The Zabbix Agent collects resource utilization and applications data on the client system and provides such information to the Zabbix server on their requests.

 

There are two types of checks can be configured between Zabbix Server and Client.

  • Passive check – Zabbix Agent only sent data to server on their request.
  • Active check – Zabbix Agent sends data periodically to Server.

 

After installing zabbix server on your Debian system. This article will help you to install zabbix agent on Debian 9 Stretch, Debian 8 Jessie and Debian 7 Wheezy systems. After that you can add remote host in zabbix server.

 

Step 1 – Prerequisites

 

For this tutorial, we will use Zabbix apt repositories provided by the Zabbix official website. Let’s add the required repository on your system first by running one the following command as per Debian version:

 

For Debian 9:

wget http://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+stretch_all.deb
dpkg -i zabbix-release_3.4-1+stretch_all.deb

 

For Debian 8:

wget http://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+jessie_all.deb
dpkg -i zabbix-release_3.4-1+jessie_all.deb

 

For Debian 7:

wget http://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+wheezy_all.deb
dpkg -i zabbix-release_3.4-1+wheezy_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

 

Now add the following to /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 start and stop zabbix-agent service anytime use following commands.

sudo service zabbix-agent start
sudo service zabbix-agent stop

 

Congratulation’s, You have successfully installed Zabbix Agent on Debian system. Lets Add Host in Zabbix Server to be monitor.

 

  • Install Zabbix Agent, Debian
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to upload a file using File Manager in cPanel

Sometimes it's necessary to upload files to your cPanel account. This can be easily accomplished...

How to configure custom name servers

If you have a reseller, you can set up and use custom name servers. For example, if your domain...

How to Create WHM Accounts/Master/Alpha in Zamfoo ??

1. Login to your WHM 2. Click on Add Package 3. Create a Package for Reseller/MasterReseller...

How to add a package in WHM?

How do I add, edit and delete packages in WHM? The following article explains how to add, edit...

How to Configure PayPal in WHMCS

Part 1: Initial Setup in WHMCS    Begin by going to Setup > Payment Gateways in WHMCS....