PDA

View Full Version : missing ndo.sock


druid
10-10-2008, 12:35 AM
Hello,

this my system: Ubuntu 8.04, Nagios 3.0.3, Centreon 2.0-RC5
my installation is based on this instructions: http://en.doc.centreon.com/Nagios3_Centreon2_Ubuntu

Nagios works fine, I have defined 12 hosts, but in Centreon I can'not see the hosts, the log report:

Oct 9 23:21:15 nagios nagios: ndomod: Still unable to connect to data sink. 15799 items lost, 5000 queued items to flush.

ndo.sock is not present in /usr/local/nagios/var ... (the directory is writable) but when I try /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg and I start ndo the file not appear...

can you help me?
thanks in advance ... sorry for bad english

massimo
10-10-2008, 09:16 AM
Does the user running ndo2db have permissions to write to the directory? Can you post the config file.

naparuba
10-10-2008, 09:42 AM
Hi,

Have you configured your ndo for a unix sock usage? (parameter output_type of ndomod.cfg and socket_type for ndo2db.cfg). If you do not set socket_type=unix in ndo2db.cfg, the socket file will not be created if think (I don't remember who create the sock).

I've got problem with the "socket_type=unix" in the past (but a previous version of ndo) so i switch socket_type=tcp in ndo2db and output_type=tcpsocket and output=127.0.0.1 into ndomod.cfg. It's just local so no performance loose and you can see with a netstat of lsof if the port is listening.

You can try and see if it's ok.

Ps: sorry for my english too ;)

druid
10-10-2008, 01:24 PM
Hello again,

reading the tutorial written by Felipe Ferreira I have found this:

cp src/ndo2db-3x src/log2ndo src/file2sock /usr/local/nagios/bin/

during my installation I have not copied file2sock and log2ndo

now all works!

Thank you Felipe :)

druid
10-10-2008, 02:59 PM
Hello,

finally I have solved using the guide written by Felipe

Thank you Felipe :)

druid
10-14-2008, 10:02 AM
Hello,

using the guide written by Felipe Ferreira (http://felipeferreira.net/?p=33) all works

thank you Felipe ;)

vcarp
10-14-2008, 04:27 PM
Did you view and edit your ndo2db conf file ?
You have to specifie you use a unixsocket and where to create it:


socket_type=unix
socket_name=/var/opt/nagios/var/ndo.sock