====== 2024.05.02 Amazon Linux 2023 Zabbix ====== I tried to install Zabbix Agent on Amazon Linux 2023, but I couldn't do it... ===== Dependency Error ===== # 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 ===== Ultimately Installed from Source ===== ==== User Creation ==== groupadd --system zabbix useradd --system -g zabbix -d /usr/lib/zabbix -s /sbin/nologin -c "Zabbix Monitoring System" zabbix ==== Installation of Required Packages for make ==== dnf install pcre pcre-devel gcc ==== Source Download, 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 ==== Preparation of Log Folder ==== mkdir /var/log/zabbix chown zabbix:zabbix /var/log/zabbix ==== Modification of Configuration ==== 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 ==== Preparation of Startup File ==== 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 ==== Startup ==== /etc/init.d/zabbix_agentd start /etc/init.d/zabbix_agentd status {{tag>日記 Zabbix}}