Nagios ndo2db: Could not bind socket

May 21, 2008 – 20:15 by Hannes Van de Vel

When using the ndoutil in nagios (when you want nagios to connect to a mysql database) you’ll get an error when starting up following proces:

/usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg
Could not bind socket: Address already in use

This is because there is still a lock file of this process. Remove the ‘ndo.sock’ and restart the process.

rm /usr/local/nagios/var/ndo.sock
/usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg

The process will start normally.

  1. 4 Responses to “Nagios ndo2db: Could not bind socket”

  2. ça marche nickel
    merci bien

    By reki on Mar 10, 2009

  3. Hi Hannes,

    Thank you very much for this information.

    I was really desperate looking all over the internet for a solution on how to restart the daemon.

    I’m a bit new to linux so it was really hard to figure it out but thanks to you it worked.

    Kind regards,

    Dennis.

    By Dennis on Jul 7, 2009

  4. Hi,

    Thanks for the help. You are the only person who a simple solution to this problem.

    I would of never looked at removing any of the files.

    Once again. thank you.

    if ever need Networking expertice you can always ask me. hz6574@sbcglobal.net

    By deepa on Jul 31, 2009

  5. Parfait ! Merci

    By Anthony Clerget on Nov 7, 2011

Post a Comment