Page 5 of 8
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Fri Apr 25, 2014 9:27 am
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?
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Fri Apr 25, 2014 12:29 pm
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
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Fri Apr 25, 2014 12:39 pm
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
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Sat Apr 26, 2014 1:43 pm
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?
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Mon Apr 28, 2014 9:26 am
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.
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Fri May 16, 2014 8:11 pm
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.
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Mon May 19, 2014 9:58 am
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?
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Mon May 19, 2014 10:40 am
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.
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Mon May 19, 2014 1:48 pm
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
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Tue May 20, 2014 5:51 pm
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.