Nagiosxi not working after php upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ss6407
Posts: 13
Joined: Wed Apr 04, 2018 2:58 pm

Nagiosxi not working after php upgrade

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagiosxi not working after php upgrade

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ss6407
Posts: 13
Joined: Wed Apr 04, 2018 2:58 pm

Re: Nagiosxi not working after php upgrade

Post 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!
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagiosxi not working after php upgrade

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ss6407
Posts: 13
Joined: Wed Apr 04, 2018 2:58 pm

Re: Nagiosxi not working after php upgrade

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagiosxi not working after php upgrade

Post by scottwilkerson »

Unfortunately I cannot speak to speed differences in different versions of php
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked