Page 6 of 8

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Posted: Wed May 21, 2014 12:33 pm
by slansing
Looks like you have a lock file hanging around, run the following and then it should start normally:

Code: Select all

rm /usr/local/nagios/var/ndo.sock
/usr/local/nagios/bin/ndo2db-4x -c /usr/local/nagios/etc/ndo2db.cfg

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Posted: Thu May 22, 2014 1:05 am
by majed
that didn't help

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Posted: Thu May 22, 2014 4:12 pm
by sreinhardt
Did you get any additional output from it, or still the bind socket issue?

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Posted: Tue May 27, 2014 6:29 am
by majed
same issue

root@oversun:~# /etc/init.d/ndo2db restart
ndo2db was not running... could not stop
Starting ndo2db:Could not bind socket: Address already in use
done.
root@oversun:~#

ndo2db cannot be restart without a kill.

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Posted: Tue May 27, 2014 5:05 pm
by abrist
Is the lock file stuck?

Code: Select all

ls -la /usr/local/nagios/var/ndo2db.lock
If so, remove it and try to restart it:

Code: Select all

rm /usr/local/nagios/var/ndo2db.lock
service ndo2db start

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Posted: Wed May 28, 2014 4:04 pm
by majed

Code: Select all

root@oversun:~# ls -la /usr/local/nagios/var/ndo2db.lock
-rw-r--r-- 1 nagios nagios 0 May 27 15:24 /usr/local/nagios/var/ndo2db.lock

Code: Select all

root@oversun:~# rm /usr/local/nagios/var/ndo2db.lock
root@oversun:~# /etc/init.d/ndo2db restart
ndo2db was not running... could not stop
Starting ndo2db:Could not bind socket: Address already in use
 done.
root@oversun:~#
in nagios.log

Code: Select all

[1401310792] ndomod: Still unable to connect to data sink.  19388011 items lost, 50000 queued items to flush.

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Posted: Thu May 29, 2014 12:53 pm
by scottwilkerson
Too many thins happening at the same time and I would guess we have multiple copies running...

Let run the following in order

Code: Select all

/etc/init.d/ndo2db stop
killall -9 ndo2db
rm -f /usr/local/nagios/var/ndo2db.lock
rm /usr/local/nagios/var/ndo.sock
/etc/init.d/ndo2db start

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Posted: Mon Jun 02, 2014 12:00 am
by majed

Code: Select all

root@oversun:~# /etc/init.d/ndo2db stop
ndo2db was not running... could not stop
root@oversun:~# killall -9 ndo2db
root@oversun:~# rm -f /usr/local/nagios/var/ndo2db.lock
root@oversun:~# rm /usr/local/nagios/var/ndo.sock
rm: cannot remove `/usr/local/nagios/var/ndo.sock': No such file or directory
root@oversun:~# rm /var/cache/nagios3/ndo.sock
root@oversun:~# /etc/init.d/ndo2db start
Starting ndo2db: done.
root@oversun:~# /etc/init.d/nagios restart
Running configuration check...
Stopping nagios: .done.
Starting nagios: done.
root@oversun:~#
1401685003] ndomod: Still unable to connect to data sink. 22297835 items lost, 50000 queued items to flush.
[1401685005] ndomod: Still unable to connect to data sink. 22282591 items lost, 50000 queued items to flush.

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Posted: Mon Jun 02, 2014 4:27 pm
by tmcdonald
Seeing as you have multiple versions of Core running (in various functional states), would it be possible to reinstall Ubuntu and start over with a clean system? That way we can move forward with installing Core and ndo* using the same methods (either both from source or both from apt-get).

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Posted: Tue Jun 03, 2014 12:57 am
by majed
i don't have multiple cores running and it is not wise to reinstall ubuntu. It's better to make a new virtual machine with new ubuntu and install both from source. I will repost after doing it.