NAGIOS NDO2DB: COULD NOT BIND SOCKET
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.