在Ubuntu 16.04/14.04 LTS and Debian 8/7安装zabbix Agent

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 client system and provide such information to 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 server, this article will help you to install zabbix agent on Ubuntu 14.04 LTS and 12.04 LTS systems. After completing this below steps go to next article add host in zabbix server.

Install Zabbix Agent on Ubuntu & Debian

Follow the below instructions to install Zabbix agent on Ubuntu 14.04 LTS, 12.04 LTS and Debian systems.

Step 1 – Add Apt Repository

Zabbix apt repositories are available on zabbix official website. Add repository to install required packages for zabbix agent using following command. Ubuntu 12.04 LTS have zabbix agent version 2.2.

For Ubuntu 16.04 LTS:
$ wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+xenial_all.deb
$ sudo dpkg -i zabbix-release_3.0-1+xenial_all.deb
$ sudo apt update

For Ubuntu 14.04 LTS:

$ wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_all.deb
$ sudo dpkg -i zabbix-release_3.0-1+trusty_all.deb
$ sudo apt-get update

For Ubuntu 12.04 LTS:

$ wget http://repo.zabbix.com/zabbix/2.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.2-1+precise_all.deb
$ sudo dpkg -i zabbix-release_2.2-1+precise_all.deb
$ sudo apt-get update

For Debian 8:

$ wget http://repo.zabbix.com/zabbix/3.0/debian/pool/main/z/zabbix-release/zabbix-release_3.0-1+jessie_all.deb
$ sudo dpkg -i zabbix-release_3.0-1+jessie_all.deb
$ sudo apt-get update


For Debian 7:

$ http://repo.zabbix.com/zabbix/3.0/debian/pool/main/z/zabbix-release/zabbix-release_3.0-1+wheezy_all.deb
$ sudo dpkg -i zabbix-release_3.0-1+wheezy_all.deb
$ sudo apt-get update

Step 2 – Install Zabbix Agent

As we have successfully added zabbix apt repositories in our system let’s use following command to install Zabbix agent using following command

$ sudo apt-get install zabbix-agent

Step 3 – Edit Zabbix Agent Configuration

After installing completed of Zabbix aget. Edit zabbix agent configuration file/etc/zabbix/zabbix_agentd.conf and update Zabbix server ip

#Server=[zabbix server ip]
#Hostname=[Hostname of client system ]

Server=192.168.1.11
Hostname=Server2

Step 4 – Restarting Zabbix Agent

After adding zabbix server ip in configuration file, now restart agent service using below command.

# /etc/init.d/zabbix-agent restart

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

# /etc/init.d/zabbix-agent start
# /etc/init.d/zabbix-agent stop

Congratulation’s! You have successfully installed Zabbix Agent. Lets Add Host in Zabbix Server to be monitory.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值