Object not found in NagiosXI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Object not found in NagiosXI

Post by pbroste »

Hello @z003w4ep

Curios in looking back, want to verify the permissions again:

Code: Select all

ls -l /usr/lib64/php/modules/ixed*
Want to look like this: {chmod 755}
-rwxr-xr-x 1 root root xxxx month xx 2020 ixed.7.4ts.lin
-rwxr-xr-x 1 root root xxxx month xx 2020 ixed.7.4.lin
In the 'Warning message we see reference to the extension '.so', if it is listed this way in the modules directory you will want to update the /php.d/sourceguardian.ini to reflect that:
extension=ixed.7.4ts.lin.so
or
extension=ixed.7.4ts.lin
Restart the Apache web 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 »

file permissions:

Code: Select all

$ ls -la /usr/lib64/php/modules/ixed*
-rwxr-xr-x. 1 root root 111080 Apr 20  2020 /usr/lib64/php/modules/ixed.5.4.lin
-rwxr-xr-x  1 root root 111080 Apr 20  2020 /usr/lib64/php/modules/ixed.7.2.lin
-rwxr-xr-x  1 root root 107016 Apr 20  2020 /usr/lib64/php/modules/ixed.7.4.lin
-rwxr-xr-x  1 root root 115240 Feb  8 08:38 /usr/lib64/php/modules/ixed.7.4ts.lin
$ stat -c '%a %n' /usr/lib64/php/modules/ixed*
755 /usr/lib64/php/modules/ixed.5.4.lin
755 /usr/lib64/php/modules/ixed.7.2.lin
755 /usr/lib64/php/modules/ixed.7.4.lin
755 /usr/lib64/php/modules/ixed.7.4ts.lin
so I followed your suggestion, and after files /etc/php.ini and /etc/php.d/sourceguardian.ini both contained line 'extension=ixed.7.4.lin' :

Code: Select all

$ php -v
PHP Warning:  Module 'SourceGuardian' already loaded 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
but then again, WEB UI stopped working with known message to load SourceGuardian libraries. So I reverted back to:

Code: Select all

$ grep -E "^extension\ =" /etc/php.ini
extension = ixed.7.4ts.lin
$ cat /etc/php.d/sourceguardian.ini
extension=ixed.7.4.lin
and WEB UI works again, 'grep -v' shows warning again ..
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Object not found in NagiosXI

Post by pbroste »

Hello @z003w4ep

What the status if you use extension; usr/lib64/php/modules/ixed.7.2.lin?

Instead of:
/etc/php.d/sourceguardian.ini
extension=ixed.7.4.lin
to:
/etc/php.d/sourceguardian.ini
extension=ixed.7.2.lin
Restart Apache by bouncing:

Code: Select all

systemctl restart httpd
Verify enabled:

Code: Select all

php -r "print phpinfo();" | grep "sourceguardian"
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

$ sudo vi /etc/php.d/sourceguardian.ini
$ cat /etc/php.d/sourceguardian.ini
extension=ixed.7.2.lin
$ sudo systemctl restart httpd
$ 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

PHP Warning:  PHP Startup: Unable to load dynamic library 'ixed.7.2.lin' (tried: /usr/lib64/php/modules/ixed.7.2.lin (/usr/lib64/php/modules/ixed.7.2.lin: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/ixed.7.2.lin.so (/usr/lib64/php/modules/ixed.7.2.lin.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
/etc/php.d/sourceguardian.ini
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Object not found in NagiosXI

Post by ssax »

We'll need to figure out why this is failing, I've seen this before but I'm really not sure how it happens because from my research the only way it should be looking for php-zts is if you compiled it from source and I've tried the remi package and they didn't have zts enabled on them.

Please create a ticket for this and include a link back to this forum thread so we can get a remote session setup:

https://support.nagios.com/tickets/
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Object not found in NagiosXI

Post by ssax »

Locking thread, ticket received, we will continue support through the ticket.

Thank you!
Locked