Upgrade Nagios xi 5.4.3 to 5.8 failed

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
efxSPN
Posts: 27
Joined: Tue Jun 15, 2021 5:46 am

Re: Upgrade Nagios xi 5.4.3 to 5.8 failed

Post by efxSPN »

Hello,

Does the web interface show 5.4.3? YES

[root@nagios-ko nagiosxi]# ./rpmupgrade
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.4.lin
Sourceguardian extension found for PHP version 5.4
Sourceguardian extension already in php.ini
Redirecting to /bin/systemctl restart httpd.service
Checking required prereqs...
Please wait...

PHP Warning: file_get_contents(/usr/local/nagiosxi/var/keys/xi.key): failed to open stream: No such file or directory in /tmp/nag/tmp/nagiosxi/nagiosxi/basedir/html/includes/utilsl-helpers.inc.php on line 0
PHP Fatal error: Encryption error: Key file at was empty or unable to be read by apache. in /tmp/nag/tmp/nagiosxi/nagiosxi/basedir/html/includes/utilsl-helpers.inc.php on line 0
[root@nagios-ko nagiosxi]#



Log file:
[root@nagios-ko ~]# cat /tmp/xi-upgrade.log
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.4.lin
Sourceguardian extension found for PHP version 5.4
Sourceguardian extension already in php.ini
Redirecting to /bin/systemctl restart httpd.service
Checking required prereqs...
Please wait...

PHP Warning: file_get_contents(/usr/local/nagiosxi/var/keys/xi.key): failed to open stream: No such file or directory in /tmp/nagiosxi/nagiosxi/basedir/html/includes/utilsl-helpers.inc.php on line 0
PHP Fatal error: Encryption error: Key file at was empty or unable to be read by apache. in /tmp/nagiosxi/nagiosxi/basedir/html/includes/utilsl-helpers.inc.php on line 0
[root@nagios-ko ~]#



Thanks in advance,
A. Rubio
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Upgrade Nagios xi 5.4.3 to 5.8 failed

Post by ssax »

Please run these commands as root:

Code: Select all

mkdir -p /usr/local/nagiosxi/var/keys
mkdir -p /usr/local/nagiosxi/var/certs
chown -R nagios:nagios /usr/local/nagiosxi/var/keys
chown -R nagios:nagios /usr/local/nagiosxi/var/certs
chmod 775 /usr/local/nagiosxi/var/keys
chmod 775 /usr/local/nagiosxi/var/certs
openssl rand -hex 16 > /usr/local/nagiosxi/var/keys/xi.key
chown nagios:nagios /usr/local/nagiosxi/var/keys/xi.key
chmod 640 /usr/local/nagiosxi/var/keys/xi.key
Then run the ./rpmupgrade command again.
efxSPN
Posts: 27
Joined: Tue Jun 15, 2021 5:46 am

Re: Upgrade Nagios xi 5.4.3 to 5.8 failed

Post by efxSPN »

Thank you very much!

It looks work fine, we'll testing it serveral days.

Regards,
A.Rubio
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Upgrade Nagios xi 5.4.3 to 5.8 failed

Post by vtrac »

Great!! ... glad it is working for you now ... :-)