Re: Ports down in Nagios whereas Up on network switch end
Posted: Tue Feb 22, 2022 10:47 am
Okay, so the backend Nagios Core is showing properly, it looks like it's probably the DB that isn't being updated (nagios_servicestatus):
Please try this:
Then make sure that this command:
Is not showing these errors anymore:
Send the output of this command as well:
Please try this:
Code: Select all
yum reinstall php-pgsql
yum install php-pdo-dblib php-process
systemctl restart nagios httpd crondCode: Select all
tail -Fn0 /usr/local/nagiosxi/var/cmdsubsys.logCode: 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 0Code: 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;'