内容へ移動
fl8 Wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
Dokuwiki.fl8.jp
»
50 日記
»
2024
»
05
»
2024.05.02 Amazon Linux 2023 Zabbix
トレース:
•
Windows - nslookup
50_dialy:2024:05:02
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== 2024.05.02 Amazon Linux 2023 Zabbix ====== Amazon Linux 2023にZabbix Agentを入れようとしたけど、入れる事ができなかった。。。 ===== 依存関係のエラー ===== <code> # rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/9/x86_64/zabbix-release-6.0-4.el9.noarch.rpm # dnf install zabbix-agent Last metadata expiration check: 0:01:28 ago on Wed May 1 16:55:16 2024. Error: Problem: conflicting requests - nothing provides liblber.so.2()(64bit) needed by zabbix-agent-6.0.21-release2.el9.aarch64 - nothing provides liblber.so.2(OPENLDAP_2.200)(64bit) needed by zabbix-agent-6.0.21-release2.el9.aarch64 - nothing provides libldap.so.2()(64bit) needed by zabbix-agent-6.0.21-release2.el9.aarch64 - nothing provides libldap.so.2(OPENLDAP_2.200)(64bit) needed by zabbix-agent-6.0.21-release2.el9.aarch64 </code> ===== 結局ソースからインストール ===== ==== ユーザ作成 ==== <code> groupadd --system zabbix useradd --system -g zabbix -d /usr/lib/zabbix -s /sbin/nologin -c "Zabbix Monitoring System" zabbix </code> ==== makeに必要なパッケージインストール ==== <code> dnf install pcre pcre-devel gcc </code> ==== ソースダウンロード make, make install ==== <code> curl -L -O https://cdn.zabbix.com/zabbix/sources/stable/6.0/zabbix-6.0.29.tar.gz tar zxvf zabbix-6.0.29.tar.gz cd zabbix-6.0.29/ ./configure --enable-agent make make install cp misc/init.d/fedora/core5/zabbix_agentd /etc/init.d/ chkconfig --add zabbix_agentd chkconfig zabbix_agentd on chkconfig --list zabbix_agentd </code> ==== ログフォルダ用意 ==== <code> mkdir /var/log/zabbix chown zabbix:zabbix /var/log/zabbix </code> ==== conf修正 ==== <code> # cat /usr/local/etc/zabbix_agentd.conf | grep -v -e ^# -e ^$ LogFile=/var/log/zabbix/zabbix_agentd.log Server=XXX.XXX.XXX.XXX ServerActive=XXX.XXX.XXX.XXX Hostname=Zabbix server </code> ==== 起動ファイル用意 ==== <code> cp misc/init.d/fedora/core5/zabbix_agentd /etc/init.d/ chkconfig --add zabbix_agentd chkconfig zabbix_agentd on # chkconfig --list zabbix_agentd zabbix_agentd 0:off 1:off 2:on 3:on 4:on 5:on 6:off </code> ==== 起動 ==== <code> /etc/init.d/zabbix_agentd start /etc/init.d/zabbix_agentd status </code> {{tag>日記 Zabbix}}
50_dialy/2024/05/02.txt
· 最終更新: 2024/08/15 23:56 by
matsui
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ