Unable to update Nagios XI after PHP upgrade
Posted: Thu Apr 09, 2020 1:49 pm
Good afternoon,
I am having an issue with PHP dependency resolution when trying to upgrade from Nagios 5.6.4 to 5.6.13. In the past PHP 5 was coming up as a security issue by our internal scanners. I followed the upgrade path in https://support.nagios.com/kb/article/n ... 7-860.html from the KB, however now when trying to upgrade it is trying to resolve the dependency for PHP 5.4.16. I have pasted some of the update log below for reference. Are there additional steps that need to be taken to allow the upgrade to work with PHP 7.2?
I am having an issue with PHP dependency resolution when trying to upgrade from Nagios 5.6.4 to 5.6.13. In the past PHP 5 was coming up as a security issue by our internal scanners. I followed the upgrade path in https://support.nagios.com/kb/article/n ... 7-860.html from the KB, however now when trying to upgrade it is trying to resolve the dependency for PHP 5.4.16. I have pasted some of the update log below for reference. Are there additional steps that need to be taken to allow the upgrade to work with PHP 7.2?
Code: Select all
Nagios XI Upgrade Log
==========================
DATE: Thu Apr 9 19:47:19 BST 2020
DISTRO INFO:
CentOS
7.7.1908
x86_64
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.7.2.lin
Sourceguardian extension found for PHP version 7.2
Sourceguardian extension already in php.ini
PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /tmp/nagiosxi/nagiosxi/basedir/html/includes/phpmailer/PHPMailerAutoload.php on line 45
Checking required prereqs...
Please wait...
OLD VERSION: 5604
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.serverspace.co.uk
* extras: centos.serverspace.co.uk
* updates: mirrors.coreix.net
No packages marked for update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.serverspace.co.uk
* extras: centos.serverspace.co.uk
* updates: mirrors.coreix.net
Resolving Dependencies
--> Running transaction check
---> Package php-imap.x86_64 0:5.4.16-7.el7 will be installed
--> Processing Dependency: php(zend-abi) = 20100525-64 for package: php-imap-5.4.16-7.el7.x86_64
--> Processing Dependency: php(api) = 20100412-64 for package: php-imap-5.4.16-7.el7.x86_64
--> Finished Dependency Resolution
Error: Package: php-imap-5.4.16-7.el7.x86_64 (nagiosxi-deps)
Requires: php(zend-abi) = 20100525-64
Installed: php-common-7.2.20-1.el7.remi.x86_64 (@remi-php72)
php(zend-abi) = 20170718-64
Available: php-common-5.4.16-46.el7.x86_64 (base)
php(zend-abi) = 20100525-64
Available: php-common-5.4.16-46.1.el7_7.x86_64 (updates)
php(zend-abi) = 20100525-64
Error: Package: php-imap-5.4.16-7.el7.x86_64 (nagiosxi-deps)
Requires: php(api) = 20100412-64
Installed: php-common-7.2.20-1.el7.remi.x86_64 (@remi-php72)
php(api) = 20170718-64
Available: php-common-5.4.16-46.el7.x86_64 (base)
php(api) = 20100412-64
Available: php-common-5.4.16-46.1.el7_7.x86_64 (updates)
php(api) = 20100412-64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest