Page 1 of 1

ndo2db not starting

Posted: Tue Mar 21, 2017 3:43 pm
by blariv
hi,

fresh install. have been importing all my old nagios configs, etc... noticed this red on system status. I cannot get it to start. I have tried everything from this thread with no luck. I have since reverted to a vm snapshot prior to these changes so I can start troubleshooting fresh.

System:

Nagios XI Version : 5.4.2
nagiosxi.na.hasbro.com 3.10.0-514.10.2.el7.x86_64 x86_64
Red Hat Enterprise Linux Server release 7.3 (Maipo)


[[email protected] ~]$ sudo /usr/local/nagiosxi/scripts/manage_services.sh 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 Tue 2017-03-21 16:33:34 EDT; 3min 27s ago
Docs: http://www.nagios.org/documentation
Process: 2678 ExecStopPost=/bin/rm -f /usr/local/nagios/var/ndo2db.pid (code=exited, status=0/SUCCESS)
Process: 2672 ExecStart=/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -f (code=exited, status=1/FAILURE)
Main PID: 2672 (code=exited, status=1/FAILURE)

Mar 21 16:33:34 nagiosxi.na.hasbro.com systemd[1]: Started Nagios Data Out Daemon.
Mar 21 16:33:34 nagiosxi.na.hasbro.com systemd[1]: Starting Nagios Data Out Daemon...
Mar 21 16:33:34 nagiosxi.na.hasbro.com ndo2db[2672]: Could not bind socket: Address already in use
Mar 21 16:33:34 nagiosxi.na.hasbro.com systemd[1]: ndo2db.service: main process exited, code=exited, status=1/FAILURE
Mar 21 16:33:34 nagiosxi.na.hasbro.com systemd[1]: Unit ndo2db.service entered failed state.
Mar 21 16:33:34 nagiosxi.na.hasbro.com systemd[1]: ndo2db.service failed

Re: ndo2db not starting

Posted: Tue Mar 21, 2017 3:47 pm
by avandemore
Please try the following commands and report your result:

Code: Select all

service nagios stop
service ndo2db stop
rm -f /usr/local/nagios/var/ndo2db.lock /usr/local/nagios/var/ndo.sock
service ndo2db start
service nagios start

Re: ndo2db not starting

Posted: Tue Mar 21, 2017 3:50 pm
by blariv
ok, that fixed it

what was the issue?

Re: ndo2db not starting

Posted: Tue Mar 21, 2017 4:02 pm
by dwhitfield
The answer to your question is as follows:
Mar 21 16:33:34 nagiosxi.na.hasbro.com ndo2db[2672]: Could not bind socket: Address already in use
The more interesting question is what caused it. The answer there is multiple services running, but that of course leads us down the cause rabbit hole.

One thing I'm interested in if you wanted to dig a bit deeper is
I have tried everything from this thread with no luck.
Did you mean to leave a link?

We'd also want to look at your install.log, but unless you keep having these issues, there's no real reason to be concerned if it happens once.

Re: ndo2db not starting

Posted: Wed Mar 22, 2017 6:38 am
by blariv
ha sorry

https://support.nagios.com/forum/viewto ... 1&start=10

yes it only happened once. I will keep my eye on it though.

Re: ndo2db not starting

Posted: Wed Mar 22, 2017 9:02 am
by cdienger
Is it okay then if we close the thread for the time being? If it occurs again you can request to reopen it by PMing me.

Re: ndo2db not starting

Posted: Wed Mar 22, 2017 9:40 am
by blariv
yes you can close, thank you