ndo2db not starting

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

ndo2db not starting

Post 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
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: ndo2db not starting

Post 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
Previous Nagios employee
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Re: ndo2db not starting

Post by blariv »

ok, that fixed it

what was the issue?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: ndo2db not starting

Post 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.
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Re: ndo2db not starting

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: ndo2db not starting

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Re: ndo2db not starting

Post by blariv »

yes you can close, thank you
Locked