Page 1 of 1

SourceGuardian Error when Upgrading Nagios XI

Posted: Mon Jan 06, 2020 12:39 pm
by nelsonw
Hi,

I am trying to upgrade to the latest version of Nagios XI, but get the following error


Running upgrade
Nagios XI Upgrade Log
==========================
DATE: Mon Jan 6 17:03:14 GMT 2020

DISTRO INFO:
Ubuntu
18.04
x86_64


Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib/php/20180731/ixed.7.2.lin
Sourceguardian extension found for PHP version 7.2
Sourceguardian extension already in php.ini
PHP Fatal error: SourceGuardian Incompatible loader version. This protected script was encoded with newer version of SourceGuardian. Please download and install the <A HREF="http://www.sourceguardian.com/loaders/">latest loaders</A>. Error code [19] in /tmp/nagiosxi/verify-prereqs.php on line 2


I have followed the steps in https://www.sourceguardian.com/loaders/download.php, but still get the same error.


Details from https://www.sourceguardian.com/loaders/download.php are shown below


Installing SourceGuardian Loader


Details of your platform have been detected

Operating system: linux
Platform: x86_64
PHP version: 7.2.24
Thread safety: no
Dynamic loading: not possible
Path to extension_dir: /usr/lib/php/20170718
Path to php.ini: /etc/php/7.2/apache2/php.ini

A SourceGuardian loader version 11.2 is already installed in your system. Please follow instructions below to install the latest version 11.3.4 of SourceGuardian loader

1) Download the required loader ixed.7.2.lin

2) Install the loader to /usr/lib/php/20170718

3) Edit /etc/php/7.2/apache2/php.ini and add 'extension=ixed.7.2.lin' directive

4) Restart the web server




For reference,
ls -l /usr/lib/php/20170718/ixed*
-rw-r--r-- 1 root root 104816 Mar 22 2018 /usr/lib/php/20170718/ixed.7.2.lin

diff /etc/php/7.2/apache2/php.ini_2020_01_06 /etc/php/7.2/apache2/php.ini
917a918
> extension = ixed.7.2.lin

Re: SourceGuardian Error when Upgrading Nagios XI

Posted: Mon Jan 06, 2020 1:36 pm
by lmiltchev
What is the Nagios XI version that you are upgrading from?

Can you run the following commands, and show the output?

Code: Select all

/usr/bin/php --version
grep -R 'ixed' /etc/php