Page 1 of 3
Object not found in NagiosXI
Posted: Mon Feb 07, 2022 2:39 am
by z003w4ep
Hi,
recently we are experiencing issue with "Object not found" message when we open service status detail.
Currently we resolve this by restarting nagios service on server. Anyone else experiencing, or is there a way how to troubleshoot it ?
Re: Object not found in NagiosXI
Posted: Mon Feb 07, 2022 12:58 pm
by pbroste
Hello
@z003w43p
Thanks for reaching out, want to provide the
support article that hits on this subject.
To verify the Core config flight:
Code: Select all
/usr/local/nagios/bin/nagios -vvv /usr/local/nagios/etc/nagios.cfg
Run through the following script to verify permissions:
Code: Select all
su - nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Then let's run through the
database repair.
Code: Select all
/usr/local/nagiosxi/scripts/repair_databases.sh
Restart the nagios.service by (running: systemctl restart nagios ) and then verify the Core config:
Code: Select all
/usr/local/nagios/bin/nagios -vvv /usr/local/nagios/etc/nagios.cfg
If the issue persists, please PM your 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
Re: Object not found in NagiosXI
Posted: Tue Feb 08, 2022 3:04 am
by z003w4ep
thanks for your reply, I run commands you mentioned and for now Nagios XI seems to be working fine.
Could it be related in any way to Source Guardian issue with missing libraries ? We had this issue last month, I installed latest libraries, however I still receive PHP warning when I check PHP version:
Code: Select all
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.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
ls -la /usr/lib64/php/modules/ixed.7.4ts.lin
-rwxr-xr-x 1 root root 115240 Feb 8 08:38 /usr/lib64/php/modules/ixed.7.4ts.lin
grep ixed /etc/php.ini
extension=ixed.7.4ts.lin
or is this completely separate problem ?
Re: Object not found in NagiosXI
Posted: Tue Feb 08, 2022 3:18 pm
by pbroste
Hello
@z003w4ep
Looks unrelated, but did you check this out?
https://support.nagios.com/kb/article/n ... s-816.html
Thanks,
Perry
Re: Object not found in NagiosXI
Posted: Wed Feb 09, 2022 3:40 am
by z003w4ep
I did, I still get this message:
Code: Select all
"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
Re: Object not found in NagiosXI
Posted: Wed Feb 09, 2022 3:49 pm
by pbroste
Hello
@z003w4ep
Thanks for following up.
Verify the php version:
and the permissions of the modules:
Code: Select all
ll /usr/lib64/php/modules/ ##(is 'ixed.7.4ts.lin' listed?)##
What do we see here?
Code: Select all
cat /etc/php.ini | grep -Ei '^extension'
And:
Code: Select all
php -r "echo php_ini_loaded_file();"
List out the installed php packages:
Please let us know how things look,
Perry
Re: Object not found in NagiosXI
Posted: Thu Feb 10, 2022 3:55 am
by z003w4ep
Code: Select all
$ 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.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 SourceGuardian v11.4.1, Copyright (c) 2000-2020, by SourceGuardian Ltd.
with Zend OPcache v7.4.27, Copyright (c), by Zend Technologies
$ ll /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
$ grep -Ei '^extension' /etc/php.ini
extension = ixed.7.4ts.lin
extension_ts = ixed.7.4ts.lin
$ php -r "echo php_ini_loaded_file();"
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
$ yum list installed | grep php
gd3php.x86_64 2.3.3-4.el7.remi @remi
oniguruma5php.x86_64 6.9.5+rev1-2.el7.remi @remi-safe
php.x86_64 7.4.27-1.el7.remi @remi-php74
php-cli.x86_64 7.4.27-1.el7.remi @remi-php74
php-common.x86_64 7.4.27-1.el7.remi @remi-php74
php-devel.x86_64 7.4.27-1.el7.remi @remi-php74
php-fedora-autoloader.noarch 1.0.1-2.el7 @epel
php-gd.x86_64 7.4.27-1.el7.remi @remi-php74
php-imap.x86_64 7.4.27-1.el7.remi @remi-php74
php-json.x86_64 7.4.27-1.el7.remi @remi-php74
php-ldap.x86_64 7.4.27-1.el7.remi @remi-php74
php-mbstring.x86_64 7.4.27-1.el7.remi @remi-php74
php-mysqlnd.x86_64 7.4.27-1.el7.remi @remi-php74
php-opcache.x86_64 7.4.27-1.el7.remi @remi-php74
php-pdo.x86_64 7.4.27-1.el7.remi @remi-php74
php-pear.noarch 1:1.10.13-1.el7.remi @remi-php72
php-pecl-ssh2.x86_64 1.3.1-1.el7.remi.7.4 @remi-php74
php-pgsql.x86_64 7.4.27-1.el7.remi @remi-php74
php-process.x86_64 7.4.27-1.el7.remi @remi-php74
php-snmp.x86_64 7.4.27-1.el7.remi @remi-php74
php-sodium.x86_64 7.4.27-1.el7.remi @remi-php74
php-xml.x86_64 7.4.27-1.el7.remi @remi-php74
I've tried to add 'extension_ts = ixed.7.4ts.lin' to /etc/php.ini to see if it helps (following Source Guardian documentation from here (page 44, 3.4 Zend extension support):
https://sourceguardian.com/demofiles/fi ... Manual.pdf
.. it didn't help :/
If I change in /etc/php.ini 'extension = ixed.7.4.ts.lin' < to > 'extension = ixed.7.4.lin' and restart web server, then:
Code: Select all
php -v
PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0
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 SourceGuardian v11.4.1, Copyright (c) 2000-2020, by SourceGuardian Ltd.
with Zend OPcache v7.4.27, Copyright (c), by Zend Technologies
output from php -v looks better, but Nagios web doesn't work, I just get a message saying that I have to download latest SourceGuardian libraries and restart web server ..
Re: Object not found in NagiosXI
Posted: Thu Feb 10, 2022 3:27 pm
by pbroste
Hello
@z003w4ep
Not sure where the module 'ixed.7.4ts.lin' came from, but we are using the Source Guardian module 'ixed.7.4.lin' in our VM test environments.
Let's have you run through the Source Guardian install from the Nagios XI installer:
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
bash -x install-sourceguardian-extension.sh
- bash -x to watch it or ./ to straight out run it
Verify that the '/etc/php.ini' is referencing "extension=ixed.7.4.lin" and comment out the #ixed.7.4ts.lin
Thanks,
Perry
Re: Object not found in NagiosXI
Posted: Fri Feb 11, 2022 2:52 am
by z003w4ep
Code: Select all
[ ~]$ cd /tmp
[ tmp]$ sudo rm -rf /tmp/nagiosxi/
[ tmp]$ wget https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
--2022-02-11 08:45:53-- https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
Resolving ...
Connecting
Proxy request sent, awaiting response... 200 OK
Length: 68678660 (65M) [application/x-gzip]
Saving to: ‘xi-latest.tar.gz.1’
100%[===================================================================================================================================================================================================>] 68,678,660 6.22MB/s in 13s
2022-02-11 08:46:06 (5.22 MB/s) - ‘xi-latest.tar.gz.1’ saved [68678660/68678660]
[ tmp]$ tar zxf xi-latest.tar.gz
[ tmp]$ cd /tmp/nagiosxi
[ nagiosxi]$ sudo rm -rf /etc/php.d/sourceguardian.ini
[ nagiosxi]$ sudo ./init.sh
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
[ nagiosxi]$ sudo sed -i '/^PHP script/d' xi-sys.cfg
[ nagiosxi]$ sudo sed -i '/^1)/d' xi-sys.cfg
[ nagiosxi]$ sudo sed -i '/^2)/d' xi-sys.cfg
[ nagiosxi]$ sudo sed -i '/^3)/d' xi-sys.cfg
[ nagiosxi]$ sudo bash -x install-sourceguardian-extension.sh
+ . ./xi-sys.cfg
++ apachegroup=apache
++ apacheuser=apache
++ chownbin=/bin/chown
++ groupaddbin=/usr/sbin/groupadd
++ groupdelbin=/usr/sbin/groupdel
++ htpasswdbin=/usr/bin/htpasswd
++ httpdconfdir=/etc/httpd/conf.d
++ httpdconf=/etc/httpd/conf/httpd.conf
++ httpdroot=/var/www/html
++ httpd=httpd
++ ntpd=ntpd
++ crond=crond
++ mkdirbin=/bin/mkdir
++ mrtgcfg=/etc/mrtg/mrtg.cfg
++ mysqlpass=nagiosxi
++ pgsqlrootpass=postgres
++ pgsqlpass=nagiosxi
++ nagioscmdgroup=nagcmd
++ nagiosgroup=nagios
++ nagiosuser=nagios
++ nagioswebpwd=nagiosadmin
++ nagioswebuser=nagiosadmin
++ phpconfd=/etc/php.d
++ phpini=/etc/php.ini
++ proddir=/usr/local/nagiosxi
++ useraddbin=/usr/sbin/useradd
++ usermodbin=/usr/sbin/usermod
++ userdelbin=/usr/sbin/userdel
++ mibsdir=/usr/share/snmp/mibs
++ phpconfdcli=/etc/php.d
++ xiver=5.8.7
++ distro=CentOS
++ version=7.9.2009
++ ver=7
++ architecture=x86_64
++ dist=el7
++ arch=x86_64
++ php_extension_dir=/usr/lib64/php/modules
++ mysqld=mariadb
++ cfg__base_url=/nagiosxi
++ cfg__root_dir=/usr/local/nagiosxi
++ cfg__script_dir=/usr/local/nagiosxi/scripts
++ cfg__xidpe_dir=/usr/local/nagios/var/spool/xidpe/
++ cfg__perfdata_spool=/usr/local/nagios/var/spool/perfdata/
++ cfg__nom_checkpoints_dir=/usr/local/nagiosxi/nom/checkpoints/nagioscore/
++ cfg__use_https=0
++ cfg__port_number=0
++ cfg__dbtype=
++ cfg__dbserver=localhost
++ cfg__db_conn_persistent=1
++ cfg__db_info__nagiosxi__dbtype=mysql
++ cfg__db_info__nagiosxi__dbserver=
++ cfg__db_info__nagiosxi__user=nagiosxi
++ cfg__db_info__nagiosxi__pwd=qWsnTrDRrZB4e2HVsm5u
++ cfg__db_info__nagiosxi__db=nagiosxi
++ cfg__db_info__nagiosxi__charset=utf8
++ cfg__db_info__nagiosxi__dbmaint__max_auditlog_age=180
++ cfg__db_info__nagiosxi__dbmaint__max_commands_age=480
++ cfg__db_info__nagiosxi__dbmaint__max_events_age=480
++ cfg__db_info__nagiosxi__dbmaint__optimize_interval=60
++ cfg__db_info__nagiosxi__dbmaint__repair_interval=0
++ cfg__db_info__ndoutils__dbtype=mysql
++ cfg__db_info__ndoutils__dbserver=localhost
++ cfg__db_info__ndoutils__user=ndoutils
++ cfg__db_info__ndoutils__pwd=ww54lli8RazrWXE9wBRt
++ cfg__db_info__ndoutils__db=nagios
++ cfg__db_info__ndoutils__charset=utf8
++ cfg__db_info__ndoutils__dbmaint__max_externalcommands_age=7
++ cfg__db_info__ndoutils__dbmaint__max_logentries_age=90
++ cfg__db_info__ndoutils__dbmaint__max_statehistory_age=730
++ cfg__db_info__ndoutils__dbmaint__max_notifications_age=90
++ cfg__db_info__ndoutils__dbmaint__max_timedevents_age=5
++ cfg__db_info__ndoutils__dbmaint__max_systemcommands_age=5
++ cfg__db_info__ndoutils__dbmaint__max_servicechecks_age=5
++ cfg__db_info__ndoutils__dbmaint__max_hostchecks_age=5
++ cfg__db_info__ndoutils__dbmaint__max_eventhandlers_age=5
++ cfg__db_info__ndoutils__dbmaint__optimize_interval=60
++ cfg__db_info__ndoutils__dbmaint__repair_interval=0
++ cfg__db_info__nagiosql__dbtype=mysql
++ cfg__db_info__nagiosql__dbserver=localhost
++ cfg__db_info__nagiosql__user=nagiosql
++ cfg__db_info__nagiosql__pwd=5IsYBewxHdYABFFpjSMh
++ cfg__db_info__nagiosql__db=nagiosql
++ cfg__db_info__nagiosql__charset=utf8
++ cfg__db_info__nagiosql__dbmaint__max_logbook_age=480
++ cfg__db_info__nagiosql__dbmaint__optimize_interval=60
++ cfg__db_info__nagiosql__dbmaint__repair_interval=0
++ cfg__db_prefix__ndoutils=nagios_
++ cfg__db_prefix__nagiosxi=xi_
++ cfg__db_prefix__nagiosql=tbl_
++ cfg__component_info__nagioscore__root_dir=/usr/local/nagios
++ cfg__component_info__nagioscore__cgi_dir=/usr/local/nagios/sbin
++ cfg__component_info__nagioscore__import_dir=/usr/local/nagios/etc/import
++ cfg__component_info__nagioscore__static_dir=/usr/local/nagios/etc/static
++ cfg__component_info__nagioscore__plugin_dir=/usr/local/nagios/libexec
++ cfg__component_info__nagioscore__cgi_config_file=/usr/local/nagios/etc/cgi.cfg
++ cfg__component_info__nagioscore__cmd_file=/usr/local/nagios/var/rw/nagios.cmd
++ cfg__component_info__nagioscore__log_file=/usr/local/nagios/var/nagios.log
++ cfg__component_info__nagioscore__nom_checkpoint_interval=1440
++ cfg__component_info__pnp__perfdata_dir=/usr/local/nagios/share/perfdata
++ cfg__component_info__pnp__share_dir=/usr/local/nagios/share/pnp
++ cfg__component_info__pnp__direct_url=/nagios/pnp
++ cfg__component_info__pnp__username=nagiosxi
++ cfg__component_info__pnp__password=nagiosadmin
++ cfg__component_info__perfdata__rrdtool_path=/usr/bin/rrdtool
++ cfg__component_info__nagvis__share_dir=/usr/local/nagios/share/nagvis
++ cfg__component_info__nagvis__direct_url=/nagios/nagvis
++ cfg__component_info__nagvis__username=nagiosadmin
++ cfg__component_info__nagvis__password=nagiosadmin
++ cfg__demo_mode=0
++ cfg__dashlet_refresh_multiplier=1000
++ cfg__dashlet_refresh_rates__available_updates=86400
++ cfg__dashlet_refresh_rates__systat_eventqueuechart=5
++ cfg__dashlet_refresh_rates__sysstat_monitoringstats=30
++ cfg__dashlet_refresh_rates__systat_monitoringperf=30
++ cfg__dashlet_refresh_rates__sysstat_monitoringproc=30
++ cfg__dashlet_refresh_rates__perfdata_chart=60
++ cfg__dashlet_refresh_rates__network_outages=30
++ cfg__dashlet_refresh_rates__host_status_summary=60
++ cfg__dashlet_refresh_rates__service_status_summary=60
++ cfg__dashlet_refresh_rates__hostgroup_status_overview=60
++ cfg__dashlet_refresh_rates__hostgroup_status_grid=60
++ cfg__dashlet_refresh_rates__servicegroup_status_overview=60
++ cfg__dashlet_refresh_rates__servicegroup_status_grid=60
++ cfg__dashlet_refresh_rates__hostgroup_status_summary=60
++ cfg__dashlet_refresh_rates__servicegroup_status_summary=60
++ cfg__dashlet_refresh_rates__sysstat_componentstates=7
++ cfg__dashlet_refresh_rates__sysstat_serverstats=5
++ cfg__dashlet_refresh_rates__network_outages_summary=30
++ cfg__dashlet_refresh_rates__network_health=30
++ cfg__dashlet_refresh_rates__host_status_tac_summary=30
++ cfg__dashlet_refresh_rates__service_status_tac_summary=30
++ cfg__dashlet_refresh_rates__feature_status_tac_summary=30
++ cfg__dashlet_refresh_rates__admin_tasks=60
++ cfg__dashlet_refresh_rates__getting_started=60
++ cfg__dashlet_refresh_rates__pagetop_alert_content=30
++ cfg__dashlet_refresh_rates__tray_alert=30
++ cfg__memcached_enable=0
++ cfg__memcached_hosts__0=127.0.0.1
++ cfg__memcached_port=11211
++ cfg__memcached_compress=0
++ cfg__memcached_ttl=10
++ cfg__use_basic_authentication=0
++ cfg__subsystem_basic_auth_username=nagiosxi
++ cfg__subsystem_basic_auth_password=somepassword
++ cfg__default_language=en_US
++ cfg__default_theme=
++ cfg__languages__en_US=English
++ cfg__default_instance_id=1
++ cfg__default_result_records=100000
++ cfg__online_help_url=https://support.nagios.com/
++ cfg__feedback_url=https://api.nagios.com/feedback/
++ cfg__privacy_policy_url=https://www.nagios.com/legal/privacypolicy/
++ cfg__db_version=113
++ cfg__htaccess_file=/usr/local/nagiosxi/etc/htpasswd.users
++ cfg__htpasswd_path=/usr/bin/htpasswd
++ make_j_flag=4
++ php -v
++ head -n 1
++ cut -d ' ' -f 2
++ cut -d . -f 1,2
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
+ phpver=7.4
+ ixedfile=ixed.7.4.lin
+ entry=extension=ixed.7.4.lin
+ '[' x86_64 = x86_64 ']'
+ zipfile=sourceguardian/ixed4.lin.x86-64.zip
++ command -v php-config
+ '[' /bin/php-config ']'
++ php-config --extension-dir
+ php_extension_dir=/usr/lib64/php/modules
+ unzip -o sourceguardian/ixed4.lin.x86-64.zip ixed.7.4.lin -d /usr/lib64/php/modules
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.7.4.lin
+ '[' -f /usr/lib64/php/modules/ixed.7.4.lin ']'
+ echo 'Sourceguardian extension found for PHP version 7.4'
Sourceguardian extension found for PHP version 7.4
+ grep -q extension=ixed.7.4.lin /etc/php.ini /etc/php.d/10-opcache.ini /etc/php.d/20-bz2.ini /etc/php.d/20-calendar.ini /etc/php.d/20-ctype.ini /etc/php.d/20-curl.ini /etc/php.d/20-dom.ini /etc/php.d/20-exif.ini /etc/php.d/20-fileinfo.ini /etc/php.d/20-ftp.ini /etc/php.d/20-gd.ini /etc/php.d/20-gettext.ini /etc/php.d/20-iconv.ini /etc/php.d/20-imap.ini /etc/php.d/20-json.ini /etc/php.d/20-ldap.ini /etc/php.d/20-mbstring.ini /etc/php.d/20-mysqlnd.ini /etc/php.d/20-pdo.ini /etc/php.d/20-pgsql.ini /etc/php.d/20-phar.ini /etc/php.d/20-posix.ini /etc/php.d/20-shmop.ini /etc/php.d/20-simplexml.ini /etc/php.d/20-snmp.ini /etc/php.d/20-sockets.ini /etc/php.d/20-sodium.ini /etc/php.d/20-sqlite3.ini /etc/php.d/20-sysvmsg.ini /etc/php.d/20-sysvsem.ini /etc/php.d/20-sysvshm.ini /etc/php.d/20-tokenizer.ini /etc/php.d/20-xml.ini /etc/php.d/20-xmlwriter.ini /etc/php.d/20-xsl.ini /etc/php.d/30-mysqli.ini /etc/php.d/30-pdo_mysql.ini /etc/php.d/30-pdo_pgsql.ini /etc/php.d/30-pdo_sqlite.ini /etc/php.d/30-xmlreader.ini /etc/php.d/40-ssh2.ini /etc/php.d/opcache-default.blacklist
+ echo 'Adding Sourceguardian extension to php.ini'
Adding Sourceguardian extension to php.ini
+ echo extension=ixed.7.4.lin
+ '[' CentOS == Ubuntu ']'
+ '[' CentOS == Debian ']'
[ nagiosxi]$ 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.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 SourceGuardian v11.4.1, Copyright (c) 2000-2020, by SourceGuardian Ltd.
with Zend OPcache v7.4.27, Copyright (c), by Zend Technologies
Re: Object not found in NagiosXI
Posted: Fri Feb 11, 2022 1:18 pm
by pbroste
Hello
@z003w4ep
Thanks for following up with the results.
Verify the module:
Code: Select all
php -m | grep -Ei 'sourceguardian'
Where is the Sourceguardian module path:
Code: Select all
php -r "print phpinfo();" | grep "sourceguardian"
Results:
/etc/php.d/sourceguardian.ini
sourceguardian.restrict_unencoded => 0 => 0
Check permissions, wondering if it is getting hit by 'nagios' by setting chmod 755 on the ixed.7.4ts.lin and ixed.7.4.lin.
Please let us know how things look,
Perry