I followed these directions to a tee:
Everything was going well until I actually tried to run this command (there is a typo in the article, I've corrected it here):
/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
My results:
# /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
Could not bind socket: Permission denied
I'm running this command as root already. I chose to use the UNIX socket rather than TCP. The Nagios log shows the following after a fresh reboot but nothing if I try to run that command manually.
[1371152186] ndomod: NDOMOD 1.5.2 (06-08-2012) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1371152186] ndomod: Could not open data sink! I'll keep trying, but some output may get lost...
[1371152186] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
Looking at the process tree, I see no "ndo" process of any kind running.
Looking at netstat, I see this:
unix 2 [ ACC ] STREAM LISTENING 841374 /var/run/saslauthd/mux
unix 2 [ ACC ] STREAM LISTENING 840356 @/com/ubuntu/upstart
unix 2 [ ] DGRAM 840610 @/org/kernel/udev/udevd
unix 10 [ ] DGRAM 841162 /dev/log
unix 2 [ ACC ] STREAM LISTENING 841337 /var/lib/mysql/mysql.sock
unix 2 [ ] DGRAM 857504
unix 2 [ ] DGRAM 847472
unix 2 [ ] DGRAM 841625
unix 2 [ ] DGRAM 841584
unix 2 [ ] DGRAM 841534
unix 2 [ ] DGRAM 841517
unix 2 [ ] DGRAM 841373
unix 2 [ ] DGRAM 841212
unix 3 [ ] DGRAM 840614
unix 3 [ ] DGRAM 840613
I tried to enable debugging for this utilility:
debug_level=-1
debug_verbosity=1
debug_file=/usr/local/nagios/var/ndo2db.debug
max_debug_file_size=1000000
But nothing is written to /usr/local/nagios/var/ndo2db.debug
.