Page 1 of 1

PHP warning when upgrading Nagios XI ...

Posted: Mon May 17, 2021 7:31 am
by PhilG
Hello:
OS: Oracle Linux 7.9
PHP version: 5.6.40
Nagios XI version: 5.8.1

I upgraded Nagios XI yesterday, Sun. 5/16/2021, to version 5.8.3 from 5.8.1.

However, when I first attempted to upgrade from the server command line as per the following, a warning message appeared:
1). Update NAGIOS XI: https://support.nagios.com/kb/article/n ... e-839.html:
a). systemctl stop nagios.service
b). cd /tmp
c). rm -rf nagiosxi xi*
d). wget https://assets.nagios.com/downloads/nag ... est.tar.gz
e). tar xzf xi-latest.tar.gz
f). cd nagiosxi
g). ./init.sh

WARNING MESSAGE:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ixed.5.4.lin' - /usr/lib64/php/modules/ixed.5.4.lin: undefined symbol: zend_get_hash_value in Unknown on line 0


2). I updated PHP via CLI: yum install php

3). PHP and 15 dependences were accepted for installation

4). Reran the Nagios XI upgrade, still got the warning, but Nagios XI did upgrade.

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ixed.5.4.lin' - /usr/lib64/php/modules/ixed.5.4.lin: undefined symbol: zend_get_hash_value in Unknown on line 0
PHP 5.6.40 (cli) (built: Apr 28 2021 13:55:10)


Does this need to be fixed? Is there a fix?

Thank you.

Re: PHP warning when upgrading Nagios XI ...

Posted: Mon May 17, 2021 12:18 pm
by dchurch
Congrats on moving away from PHP 5.4 :-)

The SourceGuardian PHP extension on your system is compiled for PHP 5.4. PHP 5.6 is throwing an error while loading it.

To get rid of the error, reinstall the SourceGuardian PHP extension for PHP 5.6 using the following shell commands (as root):

Code: Select all

cd /tmp
rm -rf /tmp/nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar zxf xi-latest.tar.gz
cd /tmp/nagiosxi
rm -rf /etc/php.d/sourceguardian.ini
./init.sh
sed -i '/^PHP script/d' xi-sys.cfg
sed -i '/^1)/d' xi-sys.cfg
sed -i '/^2)/d' xi-sys.cfg
sed -i '/^3)/d' xi-sys.cfg
./install-sourceguardian-extension.sh

Re: PHP warning when upgrading Nagios XI ...

Posted: Mon May 17, 2021 4:12 pm
by PhilG
Just a note: I was supposed to be out of doing Nagios support for the past 2 years but still get sucked in since nobody else knows as much about it as I do (supported it for 7 years) and being short-staffed I have provided assistance when I can.

I'll try to tackle this when approved.

Thanks for information! You may lock this post, but if I run into an issue I'll create a new post.

Re: PHP warning when upgrading Nagios XI ...

Posted: Tue May 18, 2021 8:32 am
by scottwilkerson
PhilG wrote:Just a note: I was supposed to be out of doing Nagios support for the past 2 years but still get sucked in since nobody else knows as much about it as I do (supported it for 7 years) and being short-staffed I have provided assistance when I can.

I'll try to tackle this when approved.

Thanks for information! You may lock this post, but if I run into an issue I'll create a new post.
Locking thread