Run Nogis XI OVA centos7 and need to upgrade HTTPD

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Run Nogis XI OVA centos7 and need to upgrade HTTPD

Post by btayl »

Run Nogis XI OVA centos7 and need to upgrade HTTPD. it shows it is running Server version: Apache/2.4.6 (CentOS) and I need to upgrade it to something newer to satisfy MY IA department. I had tried on another test box and it tell me the following

Unable to load dynamic library 'ixed.7.2ts.lin' (tried: /usr/lib64/php/modules/ixed.7.2ts.lin (/usr/lib64/php/modules/ixed.7.2ts.lin: undefined symbol: core_globals_id), /usr/lib64/php/modules/ixed.7.2ts.lin.so (/usr/lib64/php/modules/ixed.7.2ts.lin.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

also noticed the database is crashing as well.

I have also added extension=ixed.7.2ts.lin to the /etc/php.ini file
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD

Post by ssax »

If you upgraded PHP, you will need to do this:

https://support.nagios.com/kb/article/n ... s-816.html

Please PM me a copy of your profile, you can download it from Admin > System Profile by clicking the Download Profile button.

If you're unable to generate the the profile through the web interface, please try generating it from the command line by running these commands as root:

Code: Select all

rm -rf /usr/local/nagiosxi/var/components/profile*​​
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORT
Then send me the resulting /usr/local/nagiosxi/var/components/profile.zip​ file.​

If the profile script fails, please include the ENTIRE output.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD

Post by ssax »

What is the output of these commands?

Code: Select all

rpm -qa | grep -i httpd
rpm -qa | grep -i php
Please do this again and send us the entire output from all commands:

https://support.nagios.com/kb/article/n ... s-816.html
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD

Post by btayl »

[root@localhost nagiosxi]# rpm -qa | grep -i httpd
httpd-filesystem-2.4.46-1.codeit.el7.noarch
httpd-tools-2.4.46-1.codeit.el7.x86_64
httpd-2.4.46-1.codeit.el7.x86_64
You have new mail in /var/spool/mail/root
[root@localhost nagiosxi]# rpm -qa | grep -i php
php-fedora-autoloader-1.0.1-2.el7.noarch
php-mbstring-7.2.34-1.el7.remi.x86_64
php-pgsql-7.2.34-1.el7.remi.x86_64
php-imap-7.2.34-1.el7.remi.x86_64
php-common-7.2.34-1.el7.remi.x86_64
php-json-7.2.34-1.el7.remi.x86_64
oniguruma5php-6.9.5+rev1-3.el7.remi.x86_64
php-devel-7.2.34-1.el7.remi.x86_64
php-pear-1.10.12-2.el7.remi.noarch
php-mysqlnd-7.2.34-1.el7.remi.x86_64
php-pecl-ssh2-1.2-1.el7.remi.7.2.x86_64
php-ldap-7.2.34-1.el7.remi.x86_64
php-opcache-7.2.34-1.el7.remi.x86_64
php-pdo-7.2.34-1.el7.remi.x86_64
php-xml-7.2.34-1.el7.remi.x86_64
php-gd-7.2.34-1.el7.remi.x86_64
php-7.2.34-1.el7.remi.x86_64
php-snmp-7.2.34-1.el7.remi.x86_64
php-cli-7.2.34-1.el7.remi.x86_64
php-process-7.2.34-1.el7.remi.x86_64
[root@localhost nagiosxi]#
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD

Post by ssax »

That looks proper, do this again and send the full output if you get any errors, it should resolve the issues with the sourceguardian loaders:

https://support.nagios.com/kb/article/n ... s-816.html
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD

Post by btayl »

Here is what Happened when I ran it.
[root@localhost nagiosxi]# cd /tmp
[root@localhost tmp]# rm -rf nagiosxi xi*
[root@localhost tmp]# wget https://assets.nagios.com/downloads/nag ... est.tar.gz
--2020-10-11 17:22:22-- https://assets.nagios.com/downloads/nag ... est.tar.gz
Resolving assets.nagios.com (assets.nagios.com)... 2600:3c00::f03c:91ff:fedf:b821, 72.14.181.71
Connecting to assets.nagios.com (assets.nagios.com)|2600:3c00::f03c:91ff:fedf:b821|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 68131066 (65M) [application/x-gzip]
Saving to: ‘xi-latest.tar.gz’

100%[======================================>] 68,131,066 35.1MB/s in 1.9s

2020-10-11 17:22:24 (35.1 MB/s) - ‘xi-latest.tar.gz’ saved [68131066/68131066]

[root@localhost tmp]# tar xzf xi-latest.tar.gz
[root@localhost tmp]# cd nagiosxi
[root@localhost nagiosxi]# ./init.sh
PHP Warning: PHP Startup: Unable to load dynamic library 'ixed.7.2ts.lin' (tried: /usr/lib64/php/modules/ixed.7.2ts.lin (/usr/lib64/php/modules/ixed.7.2ts.lin: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/ixed.7.2ts.lin.so (/usr/lib64/php/modules/ixed.7.2ts.lin.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[root@localhost nagiosxi]# sed -i '/^PHP script/d' xi-sys.cfg
[root@localhost nagiosxi]# sed -i '/^1)/d' xi-sys.cfg
[root@localhost nagiosxi]# sed -i '/^2)/d' xi-sys.cfg
[root@localhost nagiosxi]# sed -i '/^3)/d' xi-sys.cfg
[root@localhost nagiosxi]# ./install-sourceguardian-extension.sh
PHP Warning: PHP Startup: Unable to load dynamic library 'ixed.7.2ts.lin' (tried: /usr/lib64/php/modules/ixed.7.2ts.lin (/usr/lib64/php/modules/ixed.7.2ts.lin: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/ixed.7.2ts.lin.so (/usr/lib64/php/modules/ixed.7.2ts.lin.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.7.2.lin
Sourceguardian extension found for PHP version 7.2
Sourceguardian extension already in php.ini
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD

Post by ssax »

What is the output of this command?

Code: Select all

php -r 'echo phpinfo();' | grep -i 'thread safe'
Try doing this first:

Code: Select all

\rm -f /etc/php.d/sourceguardian.ini
\rm -f /usr/lib64/php/modules/ixed*
Then do this again:

Code: Select all

cd /tmp
rm -rf nagiosxi xi*
wget https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./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
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD

Post by btayl »

[root@localhost tmp]# php -r 'echo phpinfo();' | grep -i 'thread safe'
PHP Warning: PHP Startup: Unable to load dynamic library 'ixed.7.2ts.lin' (tried: /usr/lib64/php/modules/ixed.7.2ts.lin (/usr/lib64/php/modules/ixed.7.2ts.lin: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/ixed.7.2ts.lin.so (/usr/lib64/php/modules/ixed.7.2ts.lin.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Thread Safety => disabled
You have new mail in /var/spool/mail/root
[root@localhost tmp]# \rm -f /etc/php.d/sourceguardian.ini
[root@localhost tmp]# \rm -f /usr/lib64/php/modules/ixed*
[root@localhost tmp]# cd /tmp
[root@localhost tmp]# rm -rf nagiosxi xi*
wget https://assets.nagios.com/downloads/nag ... est.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./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[root@localhost tmp]# wget https://assets.nagios.com/downloads/nag ... est.tar.gz
--2020-10-12 18:17:18-- https://assets.nagios.com/downloads/nag ... est.tar.gz
Resolving assets.nagios.com (assets.nagios.com)... 2600:3c00::f03c:91ff:fedf:b821, 72.14.181.71
Connecting to assets.nagios.com (assets.nagios.com)|2600:3c00::f03c:91ff:fedf:b821|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 68131066 (65M) [application/x-gzip]
Saving to: ‘xi-latest.tar.gz’

100%[====================================================================================================================>] 68,131,066 34.4MB/s in 1.9s

2020-10-12 18:17:20 (34.4 MB/s) - ‘xi-latest.tar.gz’ saved [68131066/68131066]

[root@localhost tmp]# tar xzf xi-latest.tar.gz
[root@localhost tmp]# cd nagiosxi
[root@localhost nagiosxi]# ./init.sh
PHP Warning: PHP Startup: Unable to load dynamic library 'ixed.7.2ts.lin' (tried: /usr/lib64/php/modules/ixed.7.2ts.lin (/usr/lib64/php/modules/ixed.7.2ts.lin: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/ixed.7.2ts.lin.so (/usr/lib64/php/modules/ixed.7.2ts.lin.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[root@localhost nagiosxi]# sed -i '/^PHP script/d' xi-sys.cfg
[root@localhost nagiosxi]# sed -i '/^1)/d' xi-sys.cfg
[root@localhost nagiosxi]# sed -i '/^2)/d' xi-sys.cfg
[root@localhost nagiosxi]# sed -i '/^3)/d' xi-sys.cfg
[root@localhost nagiosxi]# ./install-sourceguardian-extension.sh
PHP Warning: PHP Startup: Unable to load dynamic library 'ixed.7.2ts.lin' (tried: /usr/lib64/php/modules/ixed.7.2ts.lin (/usr/lib64/php/modules/ixed.7.2ts.lin: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/ixed.7.2ts.lin.so (/usr/lib64/php/modules/ixed.7.2ts.lin.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.7.2.lin
Sourceguardian extension found for PHP version 7.2
Adding Sourceguardian extension to php.ini
[root@localhost nagiosxi]#
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD

Post by ssax »

It's trying to load this from somewhere:

Code: Select all

ixed.7.2ts.lin.so
What is the output of these commands?

Code: Select all

grep -R ixed /etc/httpd/*
grep -R ixed /etc/php*
grep -R sourceguardian /etc/httpd/*
grep -R sourceguardian /etc/php*
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD

Post by btayl »

grep -R ixed /etc/php*
/etc/php.d/sourceguardian.ini:extension=ixed.7.2.lin
/etc/php.ini:extension=ixed.7.2ts.lin
/etc/php.ini.rpmsave:extension=ixed.7.2ts.lin
[root@localhost nagiosxi]# grep -R sourceguardian /etc/httpd/*
grep: /etc/httpd/run/cgisock.22792: No such device or address
[root@localhost nagiosxi]# grep -R sourceguardian /etc/php*
[root@localhost nagiosxi]#
Locked