Page 4 of 8
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Mon Apr 14, 2014 2:16 pm
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
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Mon Apr 14, 2014 6:22 pm
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:~#
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Tue Apr 15, 2014 10:44 am
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.
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Thu Apr 17, 2014 3:52 am
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.
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Thu Apr 17, 2014 4:38 pm
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
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Fri Apr 18, 2014 4:56 pm
by majed
root@oversun:~# grep "connected" /var/log/nagios3/nagios.log
root@oversun:~#
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Mon Apr 21, 2014 1:02 pm
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!
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Tue Apr 22, 2014 5:38 pm
by majed
well thank you. this is the end of the beginning

Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Wed Apr 23, 2014 10:19 am
by abrist
Just out of curiosity, have you attempted to use ndoutils 1.x instead of 2.x?
Re: problem installing ndo2db/ndoutils on nagios 3.2.3
Posted: Fri Apr 25, 2014 3:24 am
by majed
I just installed the version that comes with apt-get.