zabbix(サーバー)をインストールした CentOSとは別の CentOS(6.4 x86_64)に zabbixエージェントをインストールしたときのメモ。
ちなみに zabbixサーバーのインストールはこちら。
★Zabbix の yumリポジトリの登録
# rpm -ivh http://repo.zabbix.com/zabbix/2.0/rhel/6/x86_64/zabbix-release-2.0-1.el6.noarch.rpm
★インストール(2013.06.21 時点のバージョンは 2.0.6-1)
# yum -y install zabbix-agent
★Zabbix の yumリポジトリの無効化修正
# vi /etc/yum.repos.d/zabbix.repo
------------------------------------------
[zabbix]
name=Zabbix Official Repository - $basearch
baseurl=http://repo.zabbix.com/zabbix/2.0/rhel/6/$basearch/
enabled=1 ★←ココ
↓
enabled=0
[zabbix-non-supported]
name=Zabbix Official Repository non-supported - $basearch
baseurl=http://repo.zabbix.com/non-supported/rhel/6/$basearch/
enabled=1 ★←ココ
↓
enabled=0
------------------------------------------
★zabbixエージェントの設定(zabbixサーバーが他の場合、そのIPアドレスを設定 )
# vi /etc/zabbix/zabbix_agentd.conf
------------------------------------------
Server=127.0.0.1
↓
Server=xxx.xxx.xxx.xxx(zabbixサーバーのIPアドレス)
------------------------------------------
★Zabbixエージェントの起動
# service zabbix-agent start
★Zabbixエージェントの自動起動設定
# chkconfig zabbix-agent on
ファイアウォール(iptables等)の設定がある場合は、ポート10050を開ける
あとはzabbixサーバーの【設定】→【ホスト】ホストの設定画面でこの端末を定義すればOK。