====== 2024.05.02 Amazon Linux 2023 Zabbix ====== Amazon Linux 2023にZabbix Agentを入れようとしたけど、入れる事ができなかった。。。 ===== 依存関係のエラー ===== # 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 ===== 結局ソースからインストール ===== ==== ユーザ作成 ==== groupadd --system zabbix useradd --system -g zabbix -d /usr/lib/zabbix -s /sbin/nologin -c "Zabbix Monitoring System" zabbix ==== makeに必要なパッケージインストール ==== dnf install pcre pcre-devel gcc ==== ソースダウンロード make, make install ==== 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/ chkconfig --list zabbix_agentd make make install ==== ログフォルダ用意 ==== mkdir /var/log/zabbix chown zabbix:zabbix /var/log/zabbix ==== conf修正 ==== # 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 ==== 起動ファイル用意 ==== 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 ==== 起動 ==== /etc/init.d/zabbix_agentd start /etc/init.d/zabbix_agentd status {{tag>日記 Zabbix}}