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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by tmcdonald »

majed wrote: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.
Reinstall vs new VM should have the same effect. The multiple Cores was based on your output and the symptoms, almost sounds like the source and repo versions are conflicting.
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 »

i wish that were true, it would be an easy fix.
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 »

majed wrote:i wish that were true, it would be an easy fix.
Did the new VM not work?
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 »

i will post the results when i have time to do this venture.
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 »

Alright then. I know it's a bit of a hassle, but a clean slate is always easier to work with.
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 »

ok i install debian with nagios 4 from source and ndo2db. it worked for a while but after a while the same problem.

in /usr/local/nagios/var/nagios.log
ndomod: Still unable to connect to data sink. 10098 items lost, 5000 queued items to flush
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 »

What versions of Debian, Nagios, and MySQL are you running? And for that matter, how many checks?

And is this a true Debian install or a derivative like Ubuntu?
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 »

root@oversun:~# uname -r
3.2.0-4-486
installed from debian-live-7.4-i386-lxde-desktop.iso
nagios is the latest version 4.0.7
mysql version : Server version: 5.5.37-0+wheezy1 (Debian)
i am checking 10 hosts

it's probably a true debain install
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
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 »

What is the output of:

Code: Select all

ps -ef | grep ndo2db
Try stopping nagios and ndo2db, then run:

Code: Select all

/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
/etc/init.d/nagios start
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:~# ps -ef | grep ndo2db
root 26468 26418 0 21:32 pts/0 00:00:00 grep ndo2db

root@oversun:~# /etc/init.d/ndo2db stop
ndo2db was not running... could not stop

root@oversun:~# /etc/init.d/nagios stop
Stopping nagios: .done.



root@oversun:~# /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
Could not bind socket: Address already in use
root@oversun:~# /etc/init.d/ndo2db start Starting ndo2db:Could not bind socket: Address already in use
done.
root@oversun:~# /etc/init.d/nagios start Starting nagios: done.
root@oversun:~#

any ideas?
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
Locked