LoginSignup
37
39

More than 5 years have passed since last update.

AWS EC2用Zabbix Agentの設定方法

Last updated at Posted at 2014-10-14

Zabbix Agentのインストール

Zabbixの公式yumレポジトリを登録

# rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm

Zabbix Agentをインストール

# yum install zabbix-agent
# zabbix_agent -V
Zabbix agent v2.2.5 (revision 47411) (17 July 2014)
Compilation time: Jul 21 2014 18:44:08

Zabbix Agentの設定

zabbix_agentd.confの編集

一般インスタンス用の設定

/etc/zabbix/zabbix_agentd.conf
# Zabbix Serverからのリモートコマンドを受け付ける
EnableRemoteCommands=1

# リモートコマンドログを記録する
LogRemoteCommands=1

# Zabbix ServerのIPを指定
Server=10.0.0.209

# Zabbix ServerがListenするポート番号
ListenPort=10050

# Zabbix Serverのアクティブチェック
Server=10.0.0.209

# Zabbix Serverに登録されるホストの名前
Host=Host Name Server

オートスケーリング対象インスタンス用の設定

/etc/zabbix/zabbix_agentd.conf
# Zabbix Serverからのリモートコマンドを受け付ける
EnableRemoteCommands=1

# リモートコマンドログを記録する
LogRemoteCommands=1

# Zabbix ServerのIPを指定
Server=10.0.0.209

# Zabbix ServerがListenするポート番号
ListenPort=10050

# Zabbix Serverのアクティブチェック
Server=10.0.0.209

# Zabbix Serverに登録されるホストの名前
HostnameItem=system.hostname

# Zabbix Serverにホスト自動登録するためのメタキーワード
HostMetadata=www_autoscaling

設定を反映する

# service zabbix-agent restart

自動起動設定を行う

# chkconfig zabbix-agent on
37
39
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
37
39