Page 1 of 1

Unable to update Nagios XI after PHP upgrade

Posted: Thu Apr 09, 2020 1:49 pm
by dfaenza
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?

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

Re: Unable to update Nagios XI after PHP upgrade

Posted: Thu Apr 09, 2020 3:38 pm
by benjaminsmith
Hi @dfaenza

Let's re-able the php7 repo and then trying running the upgrade once more. Let us know if that takes care of this issue. If not, please post the upgrade log so we can take a look at any error messages.

Code: Select all

rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum -y install yum-utils
yum-config-manager --enable remi-php72

Re: Unable to update Nagios XI after PHP upgrade

Posted: Fri Apr 10, 2020 10:19 am
by dfaenza
Thank you @benjaminsmith

Our production upgrades needed to be rescheduled after eclipsing our window yesterday. I'll try this, however it will likely be next week before we attempt to upgrade again. Not sure if the thread can be left open or, if you need to close it, I can call in to support and open a ticket.

Re: Unable to update Nagios XI after PHP upgrade

Posted: Fri Apr 10, 2020 1:43 pm
by ssax
We'll leave it open, just reply when you're able to get to it.

Thank you

Re: Unable to update Nagios XI after PHP upgrade

Posted: Thu Apr 16, 2020 2:46 pm
by dfaenza
Thank you for your patience in my response. This corrected the issue and I was able to update without issue. Thank you for your assistance, you may close the thread if needed.

Re: Unable to update Nagios XI after PHP upgrade

Posted: Thu Apr 16, 2020 4:26 pm
by ssax
Thank you for the update, locking the topic now.