LoginSignup
0
2

More than 3 years have passed since last update.

zabbix agent 2を入れた

Last updated at Posted at 2020-11-23

Zabbix2か3をよく使っているけど、気づいたら5が出ていた。
アプライアンスという起動イメージを選んで起動するだけで使えた。
タイムゾーン設定と日本語化くらいしかしていない。
https://www.zabbix.com/download_appliance

エージェントのインストールドキュメントはこのあたり。
https://www.zabbix.com/download?zabbix=5.0&os_distribution=red_hat_enterprise_linux&os_version=8&db=mysql

zabbix-agent2インストール

CentOS8,Mysql
 # rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm
 # dnf clean all
 # dnf install zabbix-agent2

設定ファイル書き換え

# cp -p /etc/zabbix/zabbix_agent2.conf /etc/zabbix/zabbix_agent2.conf.org
# diff /etc/zabbix/zabbix_agent2.conf.org /etc/zabbix/zabbix_agent2.conf
80c80
< Server=127.0.0.1
---
> Server=192.168.11.161
120c120
< ServerActive=127.0.0.1
---
> ServerActive=192.168.11.161
131c131
< Hostname=Zabbix server
---
> Hostname=appliance

有効化・再起動

systemctl start zabbix-agent2
systemctl enable zabbix-agent2
systemctl restart zabbix-agent2

10050ポートを開ける

/etc/sysconfig/nftables.confに

tcp dport 10050 ip saddr 192.168.xx.xx/32 accept

を追加してsystemctl restart nftables.service

zabbixにホスト登録して、アイテムにテンプレートの「Template OS Linux by Zabbix agent」を適用してしばらくまつと、監視がはじまった。
image.png

0
2
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
0
2