Page 1 of 1

Backend DataBase

Posted: Wed Dec 19, 2018 3:13 pm
by newdawnccs
on the administration page of the nagiosXI server is displaying an error for the backend database. I checked the status of the service and the output is below

[root@localhost ~]# /usr/bin/systemctl status ndo2db
? ndo2db.service - Nagios Data Out Daemon
Loaded: loaded (/usr/lib/systemd/system/ndo2db.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-12-19 14:57:01 EST; 10min ago
Docs: http://www.nagios.org/documentation
Process: 31756 ExecStopPost=/bin/rm -f /usr/local/nagios/var/ndo2db.pid (code=exited, status=0/SUCCESS)
Process: 31753 ExecStart=/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -f (code=exited, status=1/FAILURE)
Main PID: 31753 (code=exited, status=1/FAILURE)

Dec 19 14:57:00 localhost.localdomain systemd[1]: Started Nagios Data Out Daemon.
Dec 19 14:57:00 localhost.localdomain systemd[1]: Starting Nagios Data Out Daemon...
Dec 19 14:57:01 localhost.localdomain ndo2db[31753]: Could not bind socket: Address al...e
Dec 19 14:57:01 localhost.localdomain systemd[1]: ndo2db.service: main process exited,...E
Dec 19 14:57:01 localhost.localdomain systemd[1]: Unit ndo2db.service entered failed s....
Dec 19 14:57:01 localhost.localdomain systemd[1]: ndo2db.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]#

Re: Backend DataBase

Posted: Wed Dec 19, 2018 4:56 pm
by lmiltchev
Is it possible that you have ndo.sock "left over" after the service stopped? Try the following:

Code: Select all

rm -f /usr/local/nagios/var/ndo.sock

Code: Select all

service ndo2db start
or

Code: Select all

systemctl start ndo2db.service
Did this help?

Re: Backend DataBase

Posted: Thu Dec 20, 2018 5:26 am
by newdawnccs
WOW....that was to simple.....thanks for the help

Re: Backend DataBase

Posted: Thu Dec 20, 2018 10:15 am
by lmiltchev
I am glad I could help! :)