Database Error
Posted: Mon Jan 08, 2018 10:43 am
I updated the OS on our Naigos instances this morning. One of them came back fine. The other one started throwing a DB error. Here it is:
When I run service postgres status I get the following
Thanks.
I have run the repair multiple times. I have done a DB sweep multiple times. I have even rebooted the box a couple of times. Still shows an error.Databse Error
A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.
Run the following from the CLI as root to attempt to repair the DB:
/usr/local/nagiosxi/scripts/repair_databases.sh
When I run service postgres status I get the following
Any ideas on what I can do to fix this?[root@APNagiosXI ~]# service postgresql status
Redirecting to /bin/systemctl status postgresql.service
â postgresql.service - PostgreSQL database server
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2018-01-08 10:29:55 EST; 10min ago
Process: 10538 ExecStop=/usr/bin/pg_ctl stop -D ${PGDATA} -s -m fast (code=exited, status=0/SUCCESS)
Process: 14916 ExecStart=/usr/bin/pg_ctl start -D ${PGDATA} -s -o -p ${PGPORT} -w -t 300 (code=exited, status=0/SUCCESS)
Process: 14911 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS)
Main PID: 14920 (postgres)
CGroup: /system.slice/postgresql.service
ââ14920 /usr/bin/postgres -D /var/lib/pgsql/data -p 5432
ââ14921 postgres: logger process
ââ14923 postgres: checkpointer process
ââ14924 postgres: writer process
ââ14925 postgres: wal writer process
ââ14926 postgres: autovacuum launcher process
ââ14927 postgres: stats collector process
ââ14928 postgres: nagiosxi nagiosxi 127.0.0.1(59052) idle
ââ14931 postgres: nagiosxi nagiosxi 127.0.0.1(59054) idle
ââ14934 postgres: nagiosxi nagiosxi 127.0.0.1(59056) idle
ââ14937 postgres: nagiosxi nagiosxi 127.0.0.1(59058) idle
ââ14944 postgres: nagiosxi nagiosxi 127.0.0.1(59064) idle
ââ14950 postgres: nagiosxi nagiosxi 127.0.0.1(59068) idle
ââ14953 postgres: nagiosxi nagiosxi 127.0.0.1(59070) idle
ââ15067 postgres: nagiosxi nagiosxi 127.0.0.1(59096) idle
ââ15645 postgres: nagiosxi nagiosxi 127.0.0.1(59104) idle
ââ15822 postgres: nagiosxi nagiosxi 127.0.0.1(59110) idle
ââ18668 postgres: nagiosxi nagiosxi 127.0.0.1(59470) idle
ââ18671 postgres: nagiosxi nagiosxi 127.0.0.1(59472) idle
ââ18672 postgres: nagiosxi nagiosxi 127.0.0.1(59474) idle
ââ18673 postgres: nagiosxi nagiosxi 127.0.0.1(59476) idle
ââ18676 postgres: nagiosxi nagiosxi 127.0.0.1(59480) idle
ââ18699 postgres: nagiosxi nagiosxi 127.0.0.1(59488) idle
Jan 08 10:29:54 APNagiosXI.ltcsvc.com systemd[1]: Starting PostgreSQL database server...
Jan 08 10:29:55 APNagiosXI.ltcsvc.com systemd[1]: Started PostgreSQL database server.
Thanks.