NDO2DB :unable to connect to data sink


#1

Hi,

I have restarted the demon and cross check all 3 files but still getting following messages

[1225408153] Event broker module ‘/usr/local/nagios/bin/ndomod-3x.o’ initialized successfully.
[1225408153] Finished daemonizing… (New PID=22962)
[1225408153] ndomod: Still unable to connect to data sink. 307 items lost, 5000 queued items to flush.

I have attached allthe 3 files.

I have nagios 3.0.2 installed.

Following is th configuration entries for NDO2dbutil

  1. nagios.cfg

Uncomment the line below if you’re running Nagios 3.x

broker_module=/usr/local/nagios/bin/ndomod-3x.o config_file=/usr/local/nagios/etc/ndomod.cfg

#That directive will cause the Nagios daemon to send data to the NDOMOD module. Without that option, NDOMOD won’t get any information.
event_broker_options=-1

  1. ndomod.cfg

output_type=unixsocket
output=/usr/local/nagios/var/ndo.sock
buffer_file=/usr/local/nagios/var/ndomod.tmp (Note: there is no such file at this path?)
data_processing_options=-1
config_output_options=2

  1. ndo2db.cfg
    socket_type=unix
    socket_name=/usr/local/nagios/var/ndo.sock

Note: the DB connection information is fine I have cross check.

Pls let me know wht 's wrong with the configuration

Pls help me.

I am facing this issue from weeks its really urgent for me.
thanks
Novin


#2

Problem solved.

I am new to linxu. the actual solution was to restart nd2db i was searching for the port to kill the process to restart.

But it was a unix socket.

Follwoing cmd work remove the socket file to stop the ndo2db
rm /usr/local/nagios/var/ndo.sock
/usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg

thanks
Novin