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.
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 »

Without some form of ndo2db service, the ndo module for nagios will have nothing to connect to. Try listing /etc/init.d/ for us and see if anything pops out there:

Code: Select all

ls -lva /etc/init.d
ls -lva /etc/rc.d
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 »

Code: Select all

root@oversun:~# ls -lva /etc/init.d
total 248
drwxr-xr-x   2 root root  4096 Mar 14 04:20 .
drwxr-xr-x 138 root root 12288 Apr 11 15:53 ..
-rw-r--r--   1 root root     0 Feb  4 15:58 .legacy-bootordering
-rw-r--r--   1 root root  2427 Jul 26  2012 README
lrwxrwxrwx   1 root root    21 Mar  8 14:12 acpid -> /lib/init/upstart-job
-rwxr-xr-x   1 root root   652 Sep 13  2012 acpi-support
lrwxrwxrwx   1 root root    21 Mar  8 14:12 alsa-restore -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 alsa-store -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 anacron -> /lib/init/upstart-job
-rwxr-xr-x   1 root root  7621 Feb  7  2012 apache2
-rwxr-xr-x   1 root root  4596 Sep 25  2012 apparmor
lrwxrwxrwx   1 root root    21 Mar  8 14:12 apport -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 atd -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 avahi-daemon -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 bluetooth -> /lib/init/upstart-job
-rwxr-xr-x   1 root root  2444 Apr 14  2012 bootlogd
-rwxr-xr-x   1 root root  2125 Mar  1  2011 brltty
lrwxrwxrwx   1 root root    21 Mar  8 14:12 console-setup -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 cron -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 cups -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 dbus -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 dmesg -> /lib/init/upstart-job
-rwxr-xr-x   1 root root  1242 Dec 13  2011 dns-clean
lrwxrwxrwx   1 root root    21 Mar  8 14:12 failsafe-x -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 friendly-recovery -> /lib/init/upstart-job
-rwxr-xr-x   1 root root  1105 Dec  6 13:52 grub-common
-rwxr-xr-x   1 root root  1329 Apr 14  2012 halt
lrwxrwxrwx   1 root root    21 Mar  8 14:12 hostname -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 hwclock -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 hwclock-save -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 irqbalance -> /lib/init/upstart-job
-rwxr-xr-x   1 root root  1893 Apr 19  2012 kerneloops
-rwxr-xr-x   1 root root  1293 Apr 14  2012 killprocs
lrwxrwxrwx   1 root root    21 Mar  8 14:12 lightdm -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 modemmanager -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 module-init-tools -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Jan 22 02:09 mysql -> /lib/init/upstart-job
-rwxr-xr-x   1 root root  5777 Feb 15  2012 nagios3
-rwxr-xr-x   1 root root  2015 May 31  2013 nagios-nrpe-server
-rwxr-xr-x   1 root root  2602 Nov 24  2011 ndoutils
-rwxr-xr-x   1 root root  2797 Feb 13  2012 networking
lrwxrwxrwx   1 root root    21 Mar  8 14:12 network-interface -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 network-interface-container -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 network-interface-security -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 network-manager -> /lib/init/upstart-job
-rwxr-xr-x   1 root root   882 Apr 14  2012 ondemand
lrwxrwxrwx   1 root root    21 Mar  8 14:12 passwd -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 plymouth -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 plymouth-log -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 plymouth-ready -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 plymouth-splash -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 plymouth-stop -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 plymouth-upstart-bridge -> /lib/init/upstart-job
-rwxr-xr-x   1 root root  7355 Feb 20  2013 postfix
-rwxr-xr-x   1 root root   561 Feb  4  2011 pppd-dns
lrwxrwxrwx   1 root root    21 Mar  8 14:12 procps -> /lib/init/upstart-job
-rwxr-xr-x   1 root root  2180 Sep 26  2013 pulseaudio
-rwxr-xr-x   1 root root  8635 Jul 26  2012 rc
-rwxr-xr-x   1 root root   801 Apr 14  2012 rc.local
-rwxr-xr-x   1 root root   117 Jul 26  2012 rcS
-rwxr-xr-x   1 root root   639 Apr 14  2012 reboot
lrwxrwxrwx   1 root root    21 Mar  8 14:12 resolvconf -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 rfkill-restore -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 rfkill-store -> /lib/init/upstart-job
-rwxr-xr-x   1 root root  4395 Nov  8  2011 rsync
lrwxrwxrwx   1 root root    21 Mar  8 14:12 rsyslog -> /lib/init/upstart-job
-rwxr-xr-x   1 root root  2344 Dec  5  2011 saned
-rwxr-xr-x   1 root root 33742 Sep 20  2013 sendmail
-rwxr-xr-x   1 root root  4321 Apr 14  2012 sendsigs
lrwxrwxrwx   1 root root    21 Mar  8 14:12 setvtrgb -> /lib/init/upstart-job
-rwxr-xr-x   1 root root   590 Apr 14  2012 single
-rw-r--r--   1 root root  4304 Jul 26  2012 skeleton
-rwxr-xr-x   1 root root  2107 May 16  2011 speech-dispatcher
-rwxr-xr-x   1 root root  4371 Apr 11  2013 ssh
-rwxr-xr-x   1 root root   567 Apr 14  2012 stop-bootlogd
-rwxr-xr-x   1 root root  1143 Apr 14  2012 stop-bootlogd-single
-rwxr-xr-x   1 root root   700 Oct 27  2011 sudo
lrwxrwxrwx   1 root root    21 Mar  8 14:12 udev -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 udevmonitor -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 udevtrigger -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 udev-fallback-graphics -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 udev-finish -> /lib/init/upstart-job
lrwxrwxrwx   1 root root    21 Mar  8 14:12 ufw -> /lib/init/upstart-job
-rwxr-xr-x   1 root root  2800 Apr 14  2012 umountfs
-rwxr-xr-x   1 root root  2211 Apr 14  2012 umountnfs.sh
-rwxr-xr-x   1 root root  2926 Apr 14  2012 umountroot
-rwxr-xr-x   1 root root  1039 Nov  9  2011 unattended-upgrades
-rwxr-xr-x   1 root root  1985 Apr 14  2012 urandom
lrwxrwxrwx   1 root root    21 Mar  8 14:12 whoopsie -> /lib/init/upstart-job
-rwxr-xr-x   1 root root  2666 Mar 22  2012 x11-common
lrwxrwxrwx   1 root root    21 Dec  7  2010 xinetd -> /lib/init/upstart-job

Code: Select all

root@oversun:~# ls -lva /etc/rc.d
ls: cannot access /etc/rc.d: No such file or directory
root@oversun:~# ls -lva /etc/rc0.d
total 20
drwxr-xr-x   2 root root  4096 Mar 14 04:21 .
drwxr-xr-x 138 root root 12288 Apr 11 15:53 ..
lrwxrwxrwx   1 root root    17 Mar  8 16:28 K09apache2 -> ../init.d/apache2
lrwxrwxrwx   1 root root    29 Mar  8 14:12 K10unattended-upgrades -> ../init.d/unattended-upgrades
lrwxrwxrwx   1 root root    17 Mar  8 16:29 K18nagios3 -> ../init.d/nagios3
lrwxrwxrwx   1 root root    18 Mar 10 03:53 K19sendmail -> ../init.d/sendmail
lrwxrwxrwx   1 root root    28 Mar  9 23:59 K20nagios-nrpe-server -> ../init.d/nagios-nrpe-server
lrwxrwxrwx   1 root root    18 Mar 14 04:21 K20ndoutils -> ../init.d/ndoutils
lrwxrwxrwx   1 root root    17 Mar 10 03:52 K20postfix -> ../init.d/postfix
lrwxrwxrwx   1 root root    27 Mar  8 14:12 K20speech-dispatcher -> ../init.d/speech-dispatcher
-rw-r--r--   1 root root   353 Jul 26  2012 README
lrwxrwxrwx   1 root root    18 Mar  8 14:12 S20sendsigs -> ../init.d/sendsigs
lrwxrwxrwx   1 root root    17 Mar  8 14:12 S30urandom -> ../init.d/urandom
lrwxrwxrwx   1 root root    22 Mar  8 14:12 S31umountnfs.sh -> ../init.d/umountnfs.sh
lrwxrwxrwx   1 root root    20 Mar  8 14:12 S35networking -> ../init.d/networking
lrwxrwxrwx   1 root root    18 Mar  8 14:12 S40umountfs -> ../init.d/umountfs
lrwxrwxrwx   1 root root    20 Mar  8 14:12 S60umountroot -> ../init.d/umountroot
lrwxrwxrwx   1 root root    14 Mar  8 14:12 S90halt -> ../init.d/halt
root@oversun:~#
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 »

Looks like ubuntu calls it ndoutils instead of ndo2db. So lets start that, restart nagios, and see if you still get the same errors.

Code: Select all

service ndoutils start
servce nagios restart
Look at your logs, and post some back if you could.
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 »

i started again ndoutils and restarted nagios.

after restarting, the following appears in /var/lo/nagios3/nagio.log :

Code: Select all

[1397724599] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
[1397724600] Finished daemonizing... (New PID=12351)
[1397724615] ndomod: Still unable to connect to data sink.  366 items lost, 50000 queued items to flush.
[1397724631] ndomod: Still unable to connect to data sink.  436 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 »

Any further errors concerning data sink, or do you see the message: "Successfully connected to data sink. " in your message log?

Code: Select all

grep "Successfully connected to data sink" /var/log/messages
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 »

root@oversun:~# grep "connected" /var/log/nagios3/nagios.log
root@oversun:~#
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: problem installing ndo2db/ndoutils on nagios 3.2.3

Post by lmiltchev »

At this point, I believe we will need to try to recreate the issue in house, in order to further troubleshoot it. We will get back to you sometime tomorrow with the results. Thanks!
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 »

well thank you. this is the end of the beginning :)
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 »

Just out of curiosity, have you attempted to use ndoutils 1.x instead of 2.x?
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 »

I just installed the version that comes with apt-get.
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
Locked