Nagios and NDOutil 1.4b8

Installing NDOutil add-on for Nagios sometimes might be a painful process… for most case it’s just permission issue, specially mysql and NDO sock…

most of the time, you might get the following error message:

ndomod: Error writing to data sink! Some output may get lost…
ndomod: Successfully flushed 73 queued items to data sink.

ndomod: Could not open data sink! I’ll keep trying, but some output may get lost…

first of all, make sure that you use unix socket in your config file and not TCP.. it’s recommend to use unix socket…

I think that ndo2db is hard coded to look for mysql.sock in /var/lib/mysql/mysql.sock under Debian 5.0, mysql.sock in located in /var/run/mysql.sock

so you need to create a symbolic link:
# ln -s /var/run/mysql/mysql.sock /var/lib/mysql/mysql.sock

After creating the link, I highly recommend that you just re-install NDOutil.. I was trying to resolve the error messages for hours, the minutes I re-installed NDO everything worked perfectly fine…

before you re-install the NDO delete the following files:

/usr/local/nagios/bin# rm ndo2db-3x
/usr/local/nagios/bin# rm ndomod-3x.o

hope this helps

You must be logged in to post a comment.