bashtag

宮崎でITベンチャーから非ITベンチャーへ転職したサーバエンジニアのブログ

Zabbixエージェントのインストール

zabbix の yumリポジトリの登録

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

インストール

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