We have recently migrated 2 Nagios servers from our datacenter in Lorain Ohio to IBM datacenter in the cloud.
A bit level copy of the servers was performed, however when we attempted to bring up the new "target servers" ndo2db would not start.
All other nagios services were able to start, and UI was accessible from web.
[nagios@ln001xsedb0002 etc]$ 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 Thu 2020-01-16 14:12:31 EST; 6min ago
Docs: http://www.nagios.org/documentation
Process: 39579 ExecStopPost=/bin/rm -f /usr/local/nagios/var/ndo2db.pid (code=exited, status=0/SUCCESS)
Process: 39577 ExecStart=/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -f (code=exited, status=1/FAILURE)
Main PID: 39577 (code=exited, status=1/FAILURE)
[nagios@ln001xsedb0002 etc]$
ndo2db will not start after server migration
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: ndo2db will not start after server migration
Hello @mxthunder,
Try doing a restart and remove the lock files. Run through the following commands.
If the issue perissts, please send us your system profile to review. Thanks.
To send us your system profile.
Login to the Nagios XI GUI using a web browser
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share this in a private message and then reply to this post to bring it up in the queue.
Try doing a restart and remove the lock files. Run through the following commands.
Code: Select all
systemctl stop nagios
systemctl stop ndo2db
pkill -9 -u nagios
rm -f /usr/local/nagios/var/rw/nagios.cmd
rm -f /usr/local/nagios/var/nagios.lock
rm -f /usr/local/nagios/var/ndo.sock
rm -f /usr/local/nagios/var/ndo2db.lock
rm -f /usr/local/nagiosxi/var/reconfigure_nagios.lock
systemctl start ndo2db
systemctl start nagios
To send us your system profile.
Login to the Nagios XI GUI using a web browser
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share this in a private message and then reply to this post to bring it up in the queue.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: ndo2db will not start after server migration
Thank you, removing the .sock file fixed the issue.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: ndo2db will not start after server migration
Great!mxthunder wrote:Thank you, removing the .sock file fixed the issue.
Locking thread