problem installing ndo2db/ndoutils on nagios 3.2.3

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by lmiltchev »

OK, try running:

Code: Select all

rm -f /usr/local/nagios/var/ndo.sock
/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
Be sure to check out our Knowledgebase for helpful articles and solutions!
majed
Posts: 98
Joined: Mon Mar 17, 2014 5:29 am

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by majed »

root@oversun:~# rm -f /usr/local/nagios/var/ndo.sock
root@oversun:~# /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
root@oversun:~# /etc/init.d/ndo2db start
ndo2db already started...
root@oversun:~# /etc/init.d/ndo2db restart
Stopping ndo2db: head: cannot open `/usr/local/nagios/var/ndo2db.lock' for reading: No such file or directory
done.
Starting ndo2db: done.
root@oversun:~# /etc/init.d/nagios restart
Running configuration check...
Stopping nagios: .done.
Starting nagios: done.
root@oversun:~#

log file /usr/local/nagios/var/nagios.log

Code: Select all

ndomod: NDOMOD 2.0.0 (02-28-2014) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1404421290] ndomod: Successfully connected to data sink.  4589 queued items to flush.
i guess it worked. i will see for how long
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by tmcdonald »

Still holding up?
Former Nagios employee
majed
Posts: 98
Joined: Mon Mar 17, 2014 5:29 am

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by majed »

today i checked, i isn't working since july 6
still unable to connect to data sink. must be because the system restarted. so must i remove the socket every time i restart the system?
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by sreinhardt »

You should only have to remove a socket file if the application using it was not stopped properly. A proper reboot should stop all services gracefully, it sounds like you are having issues with hard reboots that are not doing this, which will absolutely cause issues such as this.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
majed
Posts: 98
Joined: Mon Mar 17, 2014 5:29 am

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by majed »

well you are right, it is not a normal shutdown, the virtual machine is being closed/ beyond my knowledge by whom. buy nothing is affected except mrtg and ndo2db. i presume enhancements need to be made to this software. So much time has passed since i installed ndo2db, what is it supposed to do again?
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by slansing »

Yeah, NDO will not be happy when the power is pulled, I suggest you research NDO2DB before continuing to set it up as there will be pointers in there as well.

http://nagios.sourceforge.net/docs/ndou ... OUtils.pdf
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by slansing »

So much time has passed since i installed ndo2db, what is it supposed to do again?
Well... that is what you asked for. :)

I'm going to split your question off to a new thread as it sounds like NDO itself has been installed properly now. In your new thread, let us know if this is not the case.

The new thread is here: http://support.nagios.com/forum/viewtop ... =7&t=28185
Locked