LoginSignup
5
3

More than 5 years have passed since last update.

Zabbix 3.2のエージェントをAmazon Linuxに導入する

Last updated at Posted at 2016-10-26

ただの手順書です

Amazon LinuxへのZabbixエージェントのインストール

インストール

sudo rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm
sudo yum install -y zabbix-agent zabbix-get

設定ファイルを以下のように編集する

# バックアップ
sudo cp /etc/zabbix/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.conf.bk

# 編集
sudo vi /etc/zabbix/zabbix_agentd.conf

以下のように編集する。ただし、zabbix.example.jpは任意の値にかえる
$ diff /etc/zabbix/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.conf.bk
95c95
< Server=127.0.0.1,zabbix.example.jp
---
> Server=127.0.0.1
136c136
< ServerActive=127.0.0.1,zabbix.example.jp
---
> ServerActive=127.0.0.1
147c147
< Hostname=acc001-dev3.example.jp
---
> Hostname=Zabbix server

起動とブート時起動設定

sudo service zabbix-agent start
sudo chkconfig zabbix-agent on

起動後、Zabbixサーバ側で正しく設定されているか確認する。

追記: Server <=> Agentを暗号化する

5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3