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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by abrist »

Well, I was was "curious" about the version as I was going to try to reproduce your problem. . . . .
What version of ubuntu/debian are you running?
What version of ndodutils are you running?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
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 I found a folder named ndoutils-2.0.0, must be version 2.0 and the folder where I installed from.

Code: Select all

root@oversun:~# uname -r
3.11.0-18-generic
in ubuntu desktop, it is written 12.04 LTS
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by abrist »

NDOUTILS 2.0 "make install" does not support nagios 3.x.x by default. You need to copy the compiled nagios 3 ndomod to the proper location as the core 4 version is installed by default:

Code: Select all

cd <path/to/ndo/source>
cp src/ndo2db-3x /usr/local/nagios/bin/ndo2db
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
majed
Posts: 98
Joined: Mon Mar 17, 2014 5:29 am

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by majed »

Code: Select all

root@oversun:~# cd /var/tmp/ndoutils-2.0.0/ndoutils-2.0.0/src
root@oversun:/var/tmp/ndoutils-2.0.0/ndoutils-2.0.0/src# cp ndo2db-3x /usr/local/nagios/bin/ndo2db
root@oversun:/var/tmp/ndoutils-2.0.0/ndoutils-2.0.0/src#
root@oversun:/var/tmp/ndoutils-2.0.0/ndoutils-2.0.0/src# service ndoutils restart
Restarting ndoutils: ndoutils.
ndoutils.
root@oversun:/var/tmp/ndoutils-2.0.0/ndoutils-2.0.0/src# service nagios3 restart
 * Restarting nagios3 monitoring daemon nagios3     
Waiting for nagios3 daemon to die... 

/var/log/nagios3/nagios.log

[1398537542] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
[1398537542] Finished daemonizing... (New PID=30005)
[1398537558] ndomod: Still unable to connect to data sink. 459 items lost, 50000 queued items to flush.
[1398537574] ndomod: Still unable to connect to data sink. 582 items lost, 50000 queued items to flush.
[1398537590] ndomod: Still unable to connect to data sink. 660 items lost, 50000 queued items to flush.
[1398537606] ndomod: Still unable to connect to data sink. 759 items lost, 50000 queued items to flush.

i didn't like nagios 4 as it still lacks a working init.d script.

what else is there to do?
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by abrist »

majed wrote:[1398537606] ndomod: Still unable to connect to data sink. 759 items lost, 50000 queued items to flush.
majed wrote:what else is there to do?
At this point, you may want to attempt to run a 1.x ndo install just to make sure it is not a bug in 2.0.
majed wrote:i didn't like nagios 4 as it still lacks a working init.d script.
This was fixed in the last release.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
majed
Posts: 98
Joined: Mon Mar 17, 2014 5:29 am

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by majed »

thanks about the news about nagios 4, i installed it some time ago and it is working fine. Now i found the time to work with ndo utils again and this time i played with mysql. i created a user named nagios with password nagios and a database named nagios. i also followed the instructions on another site and installed ndo2db. but i still get the same error except that this time i have ndo.sock, ndo2db.debug, ndo2db.lock files created.
the error still is :

Code: Select all

[1400289206] ndomod: Still unable to connect to data sink.  11407835 items lost, 50000 queued items to flush. 
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by abrist »

Nagios core 4 requires ndoutils 2.x.
What version of ndoutils are you running. Which ndo bin did you install from the source dir?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
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 it is still from the same folder caller ndutils 2.0. I didn't try out the earlier version. I was hoping that the problem was with nagios 3 but, up to now, i guess it is not.

Mod note: Please keep discussions on topic and nagios related. All posts have been modified, not just yours.
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by abrist »

If you are running core 4:

Code: Select all

cd /var/tmp/ndoutils-2.0.0/ndoutils-2.0.0/src
 cp ndo2db-4x /usr/local/nagios/bin/ndo2db
If you are running core 3:

Code: Select all

cd /var/tmp/ndoutils-2.0.0/ndoutils-2.0.0/src
 cp ndo2db-3x /usr/local/nagios/bin/ndo2db
And then restart ndo:

Code: Select all

service nagios restart
service ndo2db restart
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
majed
Posts: 98
Joined: Mon Mar 17, 2014 5:29 am

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by majed »

it's a pitty the forum is censored like wikipedia, you can go ahead and kill me. if you still have comments you still can send them to me.
i already did what you suggested while reinstalling ndoutills and ndo2db. I went ahead and did what you said one more time.
after starting ndo2db it gave an error.

Code: Select all

service ndo2db start
Starting ndo2db:Could not bind socket: Address already in use
the error can only be fixed by the kill command.
Anyway, the problem remains.
Hopefully my word reached your heart.
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
Locked