Update Zabbix from Source
-
Set new version
NEW_VERSION="7.2.3"
MAJOR_VERSION=${NEW_VERSION%.*} -
Download source from https://www.zabbix.com/download_sources to folder
/home/zabbix${NEW_VERSION}wget https://cdn.zabbix.com/zabbix/sources/stable/${MAJOR_VERSION}/zabbix-${NEW_VERSION}.tar.gz -P /home/zabbix${NEW_VERSION} -
Extract source
cd /home/zabbix${NEW_VERSION}
tar -zxvf zabbix-${NEW_VERSION}.tar.gz -
Execute
configurewith necessary optionscd /home/zabbix${NEW_VERSION}/zabbix-${NEW_VERSION}
./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 --with-openipmi -
If necessary, install the necessary components
apt-get install libopenipmi-dev / sudo yum install OpenIPMI-devel -
After successful configuration, compile and install
make installThe
make installcommand will install the daemon executables (zabbix_server,zabbix_agentd,zabbix_proxy) in/usr/local/sbinand the client executables (zabbix_get,zabbix_sender) in/usr/local/bin.The configuration files will be installed in
/usr/local/etc/zabbix_server.conf. -
Copy frontend files from source folder
cp -rf /var/www/html/zabbix /var/www/html/_zabbix
cp -rf /home/zabbix${NEW_VERSION}/zabbix-${NEW_VERSION}/ui/* /var/www/html/zabbix/
rm -rf /var/www/html/_zabbix -
If required, edit php.ini file
nano /etc/php/8.3/apache2/php.ini -
Restart services
systemctl restart zabbix-server zabbix-agent apache2