Amazon Linux に Zabbix Agent をインストールする手順を記載します。CentOS6 等にインストールするのと同じ手順です。
リポジトリを追加してから zabbix-agent をインストールします。
rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm
yum -y install zabbix-agent
zabbix-agent の設定ファイルは /etc/zabbix/zabbix_agentd.conf です。最低限、以下の項目を書き換えます。
項目 | 説明 |
---|---|
Server | Zabbix サーバのホスト名を指定します |
ServerActive | Zabbix サーバのホスト名を指定します |
Hostname | Zabbix エージェントのホスト名を指定します |
設定例は以下の通りです。
Server=server.example.local
ServerActive=server.example.local
Hostname=agent.example.local
最後に zabbix-agent を起動&自動起動の設定をしておきます。
service zabbix-agent start
chkconfig zabbix-agent on
コメント