Run Nogis XI OVA centos7 and need to upgrade HTTPD
Run Nogis XI OVA centos7 and need to upgrade HTTPD
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
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
Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD
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:
Then send me the resulting /usr/local/nagiosxi/var/components/profile.zip file.
If the profile script fails, please include the ENTIRE output.
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 SUPPORTIf the profile script fails, please include the ENTIRE output.
Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD
What is the output of these commands?
Please do this again and send us the entire output from all commands:
https://support.nagios.com/kb/article/n ... s-816.html
Code: Select all
rpm -qa | grep -i httpd
rpm -qa | grep -i phphttps://support.nagios.com/kb/article/n ... s-816.html
Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD
[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]#
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]#
Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD
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
https://support.nagios.com/kb/article/n ... s-816.html
Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD
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
:f03c:91ff:fedf:b821, 72.14.181.71
Connecting to assets.nagios.com (assets.nagios.com)|2600
: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
[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
Connecting to assets.nagios.com (assets.nagios.com)|2600
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
Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD
What is the output of this command?
Try doing this first:
Then do this again:
Code: Select all
php -r 'echo phpinfo();' | grep -i 'thread safe'Code: Select all
\rm -f /etc/php.d/sourceguardian.ini
\rm -f /usr/lib64/php/modules/ixed*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.shRe: Run Nogis XI OVA centos7 and need to upgrade HTTPD
[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
:f03c:91ff:fedf:b821, 72.14.181.71
Connecting to assets.nagios.com (assets.nagios.com)|2600
: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]#
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
Connecting to assets.nagios.com (assets.nagios.com)|2600
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]#
Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD
It's trying to load this from somewhere:
What is the output of these commands?
Code: Select all
ixed.7.2ts.lin.soCode: Select all
grep -R ixed /etc/httpd/*
grep -R ixed /etc/php*
grep -R sourceguardian /etc/httpd/*
grep -R sourceguardian /etc/php*Re: Run Nogis XI OVA centos7 and need to upgrade HTTPD
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]#
/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]#