13
19

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Zabbix agent だけインストールするときの手順

Last updated at Posted at 2016-09-28

クライアントのRHEL系Linuxに、zabbix agentだけインストールする手順。

yum updateをかける

yum update 

zabbixのリポジトリをいれる

  • Family 2.2
rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/7/x86_64/zabbix-release-2.2-1.el7.noarch.rpm
  • Family 2.4
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm
  • Family 3.0
rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
  • Family 3.1

zabbix-release-3.1-1.el7.noarch.rpm なし

  • Family 3.2
rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-agent-3.2.11-1.el7.x86_64.rpm
  • 3.4
rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-agent-3.4.9-1.el7.x86_64.rpm 
  • 3.5
    rcなので省略

  • 4.0

rpm -ivh http://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-agent-4.0.14-1.el7.x86_64.rpm 
  • 4.2
rpm -ivh http://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/
  • 4.3
rpm -ivh http://repo.zabbix.com/zabbix/4.3/rhel/7/x86_64/
  • 4.4
rpm -ivh http://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/

agentのインストール

yum -y install zabbix-agent

config ファイルを編集する

Host name, server, Host Meta data あたりの編集

vi /etc/zabbix/zabbix_agentd.conf

Firewallの設定

注意:
Agentをインストールするクライアントでは、tcp 10050 をあける。

firewall-cmd --zone=xx(任意のzoneで) --permanent --add-port=10050/tcp
firewall-cmd --reload

サービスの起動と自動起動設定

systemctl start zabbix-agent
systemctl enable zabbix-agent
13
19
3

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
13
19

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?