Page 1 of 1

Problem upgrading to nagios 5.8.6 from 5.5.11

Posted: Thu Oct 21, 2021 10:52 pm
by DonForigua
Grettings

My unix administrator has upgrade the server to php 7.4.25 by a mistake then i need to upgrade to nagios 5.8.6 but it fails

Code: Select all

PHP Warning:Module 'memcache' already loaded in Unknown on line 0
PHP Warning:Module 'memcache' already loaded in Unknown on line 0
 
IMPORTANT: Before upgrading, verify you have both a valid system backup as well as a configuration backup of Nagios XI before continuing! More information about backing up and
restoring Nagios XI can be found here:https://assets.nagios.com/downloads/nagiosxi/docs/Backing-Up-And-Restoring-Nagios-XI.pdf 
 
NOTICE: Your Nagios XI license includes a test environment instance that allows you to verify successful upgrade and configuration changes before applying them to your production 
environment. As a best practice for ensuring the reliability of your monitoring systems, we advise you to upgrade your test environment before upgrading any production instances. More
information on licensing can be found here: https://assets.nagios.com/handouts/nagiosxi/Nagios-XI-Licensing-Policy.pdf 
 
Are you sure you want to continue? [y/N] y 
Proceeding with upgrade... 
Nagios XI Upgrade Log
========================== 
DATE: Thu Oct 21 22:26:30 -05 2021 
 
DISTRO INFO: 
OracleServer 
7.9
x86_64 
 
 
PHP Warning:Module 'memcache' already loaded in Unknown on line 0
Archive:sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.7.4.lin 
Sourceguardian extension found for PHP version 7.4 
Sourceguardian extension already in php.ini
PHP Warning:Module 'memcache' already loaded in Unknown on line 0
PHP Deprecated:Function get_magic_quotes_gpc() is deprecated in /root/nagios/nagiosxi/nagiosxi/basedir/html/includes/utils.inc.php on line 262 
PHP Deprecated:Array and string offset access syntax with curly braces is deprecated in /root/nagios/nagiosxi/nagiosxi/basedir/html/includes/components/ldap_ad_integration/adLDAP/src/clas
ses/adLDAPUsers.php on line 520
PHP Deprecated:Function get_magic_quotes_gpc() is deprecated in /root/nagios/nagiosxi/nagiosxi/basedir/html/includes/utils.inc.php on line 262 
Checking required prereqs... 
Please wait... 
 
OLD VERSION: 5511
Loaded plugins: rhnplugin
This system is receiving updates from Spacewalk server.
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/rhsm/ca/redhat-uep.pem
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/5672955203427798554.pem 
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/5672955203427798554-key.pem 
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] curl#77 - "Problem with the SSL CA cert (path? access rights?)"
Trying other mirror. 
No packages marked for update
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/rhsm/ca/redhat-uep.pem
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/5672955203427798554.pem 
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/5672955203427798554-key.pem 
Loaded plugins: rhnplugin
This system is receiving updates from Spacewalk server.
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/rhsm/ca/redhat-uep.pem
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/5672955203427798554.pem 
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/5672955203427798554-key.pem 
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] curl#77 - "Problem with the SSL CA cert (path? access rights?)"
Trying other mirror. 
No package php74-imap available. 
Error: Nothing to do 
Yum says it

Code: Select all

root@napoles nagiosxi# yum install php-imap                                                                                                                                                
Loaded plugins: rhnplugin                                                                                                                                                                    
This system is receiving updates from Spacewalk server.                                                                                                                                      
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/rhsm/ca/redhat-uep.pem                                                                                                  
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/5672955203427798554.pem                                                                                 
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/5672955203427798554-key.pem                                                                             
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] curl#77 - "Problem with the SSL CA cert (path? access rights?)"                          
Trying other mirror.                                                                                                                                                                         
Package php-imap-7.4.25-1.el7.remi.x86_64 already installed and latest version                                                                                                               
Nothing to do 
Thanks for your help

Re: Problem upgrading to nagios 5.8.6 from 5.5.11

Posted: Fri Oct 22, 2021 9:02 am
by DonForigua
Greetings

We remove this version of php and install 5.6.40, and we edit the upgrade script on line 215 of nagios 5.6.14

Code: Select all

                else
                        # Manually install the new php packages for systems without deps package (upgraded php versions)
                        yum install `yum list installed php*common* | grep php | awk -F "-" {'print $1'} | tail -1`-php-imap -y
                fi
My nagios now is ok

Re: Problem upgrading to nagios 5.8.6 from 5.5.11

Posted: Fri Oct 22, 2021 10:36 am
by benjaminsmith
Hi Don,

Good to hear you got that fixed. Since you had to modify the script due to package conflicts, you'll like have to make those changes on future upgrades.

If you haven't done so already, I would recommend setting up a test server, for testing out future releases before applying those to your production monitoring server.

See: Nagios XI - License Entitlements

Regards,
Benjamin