Page 1 of 1

ndoutils ndomod:Error writing to data sink!

Posted: Wed Jun 06, 2012 5:18 pm
by rnygren
I restart in full debug mode for ndoutils and the ndo2db.debug file is still 0 bytes and the nagios.log is full of:
1339020577] ndomod: Successfully reconnected to data sink! 0 items lost, 4998 queued items to flush.
[1339020577] ndomod: Error writing to data sink! Some output may get lost. 4776 queued items to flush.
[1339020593] ndomod: Successfully reconnected to data sink! 248 items lost, 5000 queued items to flush.
[1339020593] ndomod: Error writing to data sink! Some output may get lost. 4747 queued items to flush.
[1339020609] ndomod: Successfully reconnected to data sink! 0 items lost, 4946 queued items to flush.

When I kill the ndo2db process :
ndomod: Still unable to connect to data sink. 6522 items lost, 5000 queued items to flush.

So I belive its connecting to the database correctly.
What is the data sink! and Why am I unable to connect?
is this a ndo.sock error and I need to delete it and restart? usually that say port in use

Re: ndoutils ndomod:Error writing to data sink!

Posted: Thu Jun 07, 2012 11:58 am
by lmiltchev
Try increasing the kernel message queue parameters for your system (in /etc/sysctl.conf). I do not know the 'optimal' parameters for your system but in my case I increased my parameters to:

Code: Select all

kernel.msgmax = 131072000
kernel.msgmnb = 131072000
After updating this in the conf file, run:

Code: Select all

/sbin/sysctl -p