Page 1 of 1

Nagiosxi not working after php upgrade

Posted: Tue May 15, 2018 3:31 pm
by ss6407
Hi Team,

Updated php from 5.4.16 to 5.6.35
Nagiosxi not launching since.

Nagiosxi ver 5.4.12

Error
"PHP script '/usr/local/nagiosxi/html/includes/dbl.inc.php' is protected by SourceGuardian and requires a SourceGuardian loader 'ixed.5.6.lin' to be installed.

1) Click here to download the required 'ixed.5.6.lin' loader from the SourceGuardian site
2) Install the loader to /opt/rh/rh-php56/root/usr/lib64/php/modules
3) Edit /etc/opt/rh/rh-php56/php.ini and add 'extension=ixed.5.6.lin' directive
4) Restart the web server"


Please advise.
Thanks!

Re: Nagiosxi not working after php upgrade

Posted: Tue May 15, 2018 3:37 pm
by scottwilkerson
run the following commands to set the correct php version in the sourceguardian loader file

Code: Select all

cd /tmp
rm -rf nagiosxi xi*
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.4.12.tar.gz
tar xzf xi*.tar.gz
cd /tmp/nagiosxi
./upgrade

Re: Nagiosxi not working after php upgrade

Posted: Wed May 16, 2018 10:52 am
by ss6407
Hi,

Ran the steps provided.
Attached output for the same (nagiosxi.txt file).

Still getting the same error on URL
"PHP script '/usr/local/nagiosxi/html/includes/dbl.inc.php' is protected by SourceGuardian and requires a SourceGuardian loader 'ixed.5.6.lin' to be installed.

1) Click here to download the required 'ixed.5.6.lin' loader from the SourceGuardian site
2) Install the loader to /opt/rh/rh-php56/root/usr/lib64/php/modules
3) Edit /etc/opt/rh/rh-php56/php.ini and add 'extension=ixed.5.6.lin' directive
4) Restart the web server"

Thanks!

Re: Nagiosxi not working after php upgrade

Posted: Wed May 16, 2018 12:35 pm
by scottwilkerson
your system is clearly not using the conventional paths for php libraries and php.ini, so here is what I suggest would be to run the following commands:

Code: Select all

cp /usr/lib64/php/modules/ixed.5.6.lin /opt/rh/rh-php56/root/usr/lib64/php/modules
echo 'extension=ixed.5.6.lin' >> /etc/opt/rh/rh-php56/php.ini
systemctl restart httpd

Re: Nagiosxi not working after php upgrade

Posted: Wed May 16, 2018 4:25 pm
by ss6407
This seems to have helped.
URL is working fine now.

But found extreme slowness in the response time of pages compared to earlier response.

Re: Nagiosxi not working after php upgrade

Posted: Thu May 17, 2018 8:19 am
by scottwilkerson
Unfortunately I cannot speak to speed differences in different versions of php