ndoutils ndomod:Error writing to data sink!

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rnygren
Posts: 20
Joined: Wed May 30, 2012 4:29 pm

ndoutils ndomod:Error writing to data sink!

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: ndoutils ndomod:Error writing to data sink!

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked