Object not found in NagiosXI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
z003w4ep
Posts: 14
Joined: Mon Dec 21, 2020 5:20 am

Re: Object not found in NagiosXI

Post by z003w4ep »

first commands returns:

Code: Select all

SourceGuardian #one hit from [PHP Modules]
SourceGuardian #another one from [Zend Modules]
second command returns:

Code: Select all

$ php -r "print phpinfo();" | grep "sourceguardian"
PHP Warning:  PHP Startup: Unable to load dynamic library 'ixed.7.4ts.lin' (tried: /usr/lib64/php/modules/ixed.7.4ts.lin (/usr/lib64/php/modules/ixed.7.4ts.lin: undefined symbol: compiler_globals_offset), /usr/lib64/php/modules/ixed.7.4ts.lin.so (/usr/lib64/php/modules/ixed.7.4ts.lin.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
/etc/php.d/sourceguardian.ini
sourceguardian.restrict_unencoded => 0 => 0
I thank you too for being patient and trying to understand my problem and looking for solution with me.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Object not found in NagiosXI

Post by pbroste »

Hello @z003w4ep

Thanks for following up, the previous message we noted this and want to go ahead and have you comment on both of these because we do see a message that states that it has been loaded already.
grep -Ei '^extension' /etc/php.ini
extension = ixed.7.4ts.lin
extension_ts = ixed.7.4ts.lin
To:

Code: Select all

;extension = ixed.7.4ts.lin
;extension_ts = ixed.7.4ts.lin
Restart the services by bouncing:

Code: Select all

systemctl restart nagios httpd
Please let us know how that looks,
Perry
z003w4ep
Posts: 14
Joined: Mon Dec 21, 2020 5:20 am

Re: Object not found in NagiosXI

Post by z003w4ep »

that helped to fix php issue:

Code: Select all

$ php -v
PHP 7.4.27 (cli) (built: Dec 14 2021 17:17:06) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.27, Copyright (c), by Zend Technologies
however, again Nagios WEB stopped working:

Code: Select all

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

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

Code: Select all

$ ls -la /usr/lib64/php-zts/modules/ixed*
-rwxr-xr-x 1 root root 115240 Jan 13 10:25 /usr/lib64/php-zts/modules/ixed.7.4ts.lin
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Object not found in NagiosXI

Post by pbroste »

Thanks that is good to know, let's find out if the SourceGuardian module is enabled:

Code: Select all

php -r 'phpinfo();' | grep -Ei 'module|source'
Will need to uncomment one of the ';extension' in the php.ini and restart the Apache.service.

Thanks,
Perry
z003w4ep
Posts: 14
Joined: Mon Dec 21, 2020 5:20 am

Re: Object not found in NagiosXI

Post by z003w4ep »

Code: Select all

$ grep -E "^extension" /etc/php.ini
extension = ixed.7.4ts.lin
$ sudo systemctl restart httpd
$ php -r 'phpinfo();' | grep -Ei 'module|source'
PHP Warning:  PHP Startup: Unable to load dynamic library 'ixed.7.4ts.lin' (tried: /usr/lib64/php/modules/ixed.7.4ts.lin (/usr/lib64/php/modules/ixed.7.4ts.lin: undefined symbol: compiler_globals_offset), /usr/lib64/php/modules/ixed.7.4ts.lin.so (/usr/lib64/php/modules/ixed.7.4ts.lin.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
/etc/php.d/sourceguardian.ini
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules
ignore_repeated_source => Off => Off
SourceGuardian
SourceGuardian Loader Support => enabled
SourceGuardian Loader Version => 11.4.1
SourceGuardian Loader Build Number => 0x0000001E
sourceguardian.restrict_unencoded => 0 => 0
Additional Modules
Module Name
Extension Module API => Andi Gutmans, Zeev Suraski, Andrei Zmievski
                               SAPI Modules
                              Module Authors
Module => Authors
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Object not found in NagiosXI

Post by pbroste »

Hello [z003w4ep[/user]

Thanks for following up, collaborated with team member today on this issue and we are trying to duplicate the issue. We were wondering how the 'php-zts' was compiled?

Let's see what this looks like:

Code: Select all

php -r "print phpinfo();" > /tmp/supportout.txt
ls -l /usr/lib64/php/modules/ >> /tmp/supportout.txt
zip -r /tmp/supportbundle.zip /tmp/supportout.txt /etc/php.ini /etc/php.d
Please send over the '/tmp/supportbundle.zip' for review.

Thanks,
Perry
z003w4ep
Posts: 14
Joined: Mon Dec 21, 2020 5:20 am

Re: Object not found in NagiosXI

Post by z003w4ep »

attaching requested file
You do not have the required permissions to view the files attached to this post.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Object not found in NagiosXI

Post by pbroste »

Hello @z003w4ep

Want to have you edit this to the ixed.7.4ts.lin extension for the SourceGuardian module that is active/enabled in:

Code: Select all

etc/php.d/sourceguardian.ini
Restart the Apache service by bouncing:

Code: Select all

systemctl restart httpd
Thanks,
Perry
z003w4ep
Posts: 14
Joined: Mon Dec 21, 2020 5:20 am

Re: Object not found in NagiosXI

Post by z003w4ep »

I hope I understood it correctly to comment out that line:

Code: Select all

$ sudo vi /etc/php.d/sourceguardian.ini
$ cat       /etc/php.d/sourceguardian.ini
;extension=ixed.7.4.lin
$ sudo systemctl restart httpd
$ php -v
PHP Warning:  PHP Startup: Unable to load dynamic library 'ixed.7.4ts.lin' (tried: /usr/lib64/php/modules/ixed.7.4ts.lin (/usr/lib64/php/modules/ixed.7.4ts.lin: undefined symbol: compiler_globals_offset), /usr/lib64/php/modules/ixed.7.4ts.lin.so (/usr/lib64/php/modules/ixed.7.4ts.lin.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 7.4.28 (cli) (built: Feb 15 2022 13:23:10) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies
then I tried to edit the line in that file to be with 'ts', like so (see cat output):

Code: Select all

$ sudo vi /etc/php.d/sourceguardian.ini
$ cat       /etc/php.d/sourceguardian.ini
extension=ixed.7.4ts.lin
$ php -v
PHP Warning:  PHP Startup: Unable to load dynamic library 'ixed.7.4ts.lin' (tried: /usr/lib64/php/modules/ixed.7.4ts.lin (/usr/lib64/php/modules/ixed.7.4ts.lin: undefined symbol: compiler_globals_offset), /usr/lib64/php/modules/ixed.7.4ts.lin.so (/usr/lib64/php/modules/ixed.7.4ts.lin.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'ixed.7.4ts.lin' (tried: /usr/lib64/php/modules/ixed.7.4ts.lin (/usr/lib64/php/modules/ixed.7.4ts.lin: undefined symbol: compiler_globals_offset), /usr/lib64/php/modules/ixed.7.4ts.lin.so (/usr/lib64/php/modules/ixed.7.4ts.lin.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 7.4.28 (cli) (built: Feb 15 2022 13:23:10) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies
any other idea where it comes from ? I mean, Nagios WEB UI is working, I am not sure if this error from 'php -v' can be ignored or not ?
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Object not found in NagiosXI

Post by pbroste »

Hello @z003w4ep

Thanks for following, and the results that you posted look correct. We usually don't want to see an error message on a command output even though things seem to be behaving.

Please PM your updated system profile for us to review,

To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share in a private message or upload it to the post/ticket

Thanks,
Perry
Locked