1. 程式人生 > >Ubuntu 16下安裝zabbix agent

Ubuntu 16下安裝zabbix agent

ubuntu zabbix

Ubuntu 16下安裝zabbix agent , 分為三步


第一步:安裝repository


For Ubuntu

Supported versions

  • Ubuntu 16.04 LTS (codeame: xenial)

  • Ubuntu 14.04 LTS (codename: trusty)

Installing repository configuration package

Install the repository configuration package, which contains apt (software package manager) configuration files. Shell commands for Ubuntu 16.04 LTS

(xenial):

# wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
# dpkg -i zabbix-release_3.2-1+xenial_all.deb
# apt-get update

For Ubuntu 14.04 LTS change ‘xenial‘ to ‘trusty‘.

第二步:安裝zabbix-agent


Debian / Ubuntu

To install agent after correct repository configuration package is installed, run the following command:

# apt-get install zabbix-agent

Now agent is ready to be started by:

# service zabbix-agent start

第三步:更改zabbix-agent配置文件


sudo vi /etc/zabbix/zabbix_agentd.conf

查找Server=127.0.0.1,將127.0.0.1替換為您的zabbix server的地址或域名


第四步:重啟zabbix-agent


sudo service zabbix-agent restart

本文出自 “brave” 博客,請務必保留此出處http://brave8898.blog.51cto.com/289041/1976758

Ubuntu 16下安裝zabbix agent