Page 3 of 3

Re: Upgrade Nagios XI 5.4.3 to 5.8 failed

Posted: Sat Jun 26, 2021 4:32 am
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

Re: Upgrade Nagios XI 5.4.3 to 5.8 failed

Posted: Mon Jun 28, 2021 10:53 am
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.

Re: Upgrade Nagios XI 5.4.3 to 5.8 failed

Posted: Tue Jun 29, 2021 8:32 am
by efxSPN
Thank you very much!

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

Regards,
A.Rubio

Re: Upgrade Nagios XI 5.4.3 to 5.8 failed

Posted: Tue Jun 29, 2021 2:37 pm
by vtrac
Great!! ... glad it is working for you now ... :-)