Please try this:
Code: Select all
yum reinstall php-pgsql
yum install php-pdo-dblib php-process
systemctl restart nagios httpd crond
Code: Select all
tail -Fn0 /usr/local/nagiosxi/var/cmdsubsys.log
Code: Select all
PHP Warning: PHP Startup: Unable to load dynamic library 'pgsql' (tried: /usr/lib64/php/modules/pgsql (/usr/lib64/php/modules/pgsql: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/pgsql.so (/usr/pgsql-9.6/lib/libpq.so.5: undefined symbol: simple_string_list_member)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_pgsql' (tried: /usr/lib64/php/modules/pdo_pgsql (/usr/lib64/php/modules/pdo_pgsql: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/pdo_pgsql.so (/usr/pgsql-9.6/lib/libpq.so.5: undefined symbol: simple_string_list_member)) in Unknown on line 0
Code: Select all
mysql -uroot -pnagiosxi nagios -e 'show create table nagios_hoststatus; show create table nagios_servicestatus;show create table nagios_objects; select count(*) from nagios_objects;'