In ndo2db.cfg, is the username and password to connect to the db correct?<div><pre style="word-wrap:break-word;white-space:pre-wrap">db_user=nagios
db_pass=nagios</pre><pre style="word-wrap:break-word;white-space:pre-wrap"><br></pre>I had a similar error, and that was how I fixed it.</div><div><br></div><div><br><div class="gmail_quote">On Fri, Feb 3, 2012 at 12:37 PM, FTL Nagios <span dir="ltr"><<a href="mailto:ftlnagios@gmail.com">ftlnagios@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="color:#1f497d">Ok so for no apparent reason as nothing has changed from me writing the original email the log has now logged something new<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">[1328289822] ndomod: Successfully reconnected to data sink! 0 items lost, 328 queued items to flush.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">[1328289822] ndomod: Error writing to data sink! Some output may get lost. 47 queued items to flush.<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">[13282898</span><span style="color:#1f497d">38</span><span style="color:#1f497d">]</span><span style="color:#1f497d"> ndomod: Successfully reconnected to data sink! 0 items lost, 189 queued items to flush.</span><span style="color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">[13282898</span><span style="color:#1f497d">38</span><span style="color:#1f497d">]</span><span style="color:#1f497d"> ndomod: Successfully flushed 189 queued items to data sink.</span><span style="color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">[13282898</span><span style="color:#1f497d">38</span><span style="color:#1f497d">]</span><span style="color:#1f497d"> ndomod: Error writing to data sink! Some output may get lost…</span><span style="color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">[13282898</span><span style="color:#1f497d">38</span><span style="color:#1f497d">]</span><span style="color:#1f497d"> ndomod: Please check remote ndo2db log, database connection or SSL parameters</span><span style="color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">[13282898</span><span style="color:#1f497d">54</span><span style="color:#1f497d">]</span><span style="color:#1f497d"> ndomod: Successfully reconnected to data sink! 0 items lost, 192 queued items to flush.</span><span style="color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">[13282898</span><span style="color:#1f497d">54</span><span style="color:#1f497d">]</span><span style="color:#1f497d"> ndomod: Successfully flushed 192 queued items to data sink.</span><span style="color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">[13282898</span><span style="color:#1f497d">54</span><span style="color:#1f497d">]</span><span style="color:#1f497d"> ndomod: Error writing to data sink! Some output may get lost…</span><span style="color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">[13282898</span><span style="color:#1f497d">54</span><span style="color:#1f497d">]</span><span style="color:#1f497d"> ndomod: Please check remote ndo2db log, database connection or SSL parameters<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">So it started at least flushing stuff if not logging<u></u><u></u></span></p><p class="MsoNormal">
<span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">But then a few minutes later back to normal<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">[132829041</span><span style="color:#1f497d">4</span><span style="color:#1f497d">]</span><span style="color:#1f497d"> ndomod: Successfully reconnected to data sink! 0 items lost, 397 queued items to flush</span><span style="color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">[132829041</span><span style="color:#1f497d">4</span><span style="color:#1f497d">]</span><span style="color:#1f497d"> ndomod: Error writing to data sink! Some output may get lost. 139 queued items to flush<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Nothing at all has changed.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">This will drive me drink, I know it!!!!</span><span style="color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Andrew Thompson <a href="mailto:[mailto:andrew@fulgent.co.uk]" target="_blank">[mailto:andrew@fulgent.co.uk]</a> <br>
<b>Sent:</b> 03 February 2012 17:06<br><b>To:</b> <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br><b>Subject:</b> [Nagios-users] NDOUtils Error writing to data sink! Some output may get lost. xxx queued items to flush<u></u><u></u></span></p>
</div></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Hi all,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Ubuntu 11.04 32bit Desktop edition<u></u><u></u></p><p class="MsoNormal">
NDOUtils 1.4b9<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Im trying to install NDOUtils so I can get Nagios writing its log files to MYSQL.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">But im not having much luck.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I have followed the install guide to the letter: <a href="http://nagios.sourceforge.net/docs/ndoutils/NDOUtils.pdf" target="_blank">http://nagios.sourceforge.net/docs/ndoutils/NDOUtils.pdf</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">When all said and done that fires out this entry in the nagios.log:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">[1328283956] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright © 2009 Nagios Core Development Team and Community Contributors<u></u><u></u></p>
<p class="MsoNormal">[1328283956] ndomod: Could not open data sink! I’ll keep trying, but some output may get lost…<u></u><u></u></p><p class="MsoNormal">[1328283956] Event broker module ‘/usr/local/nagios/bin/ndomod-3x.o’ initialized successfully.<u></u><u></u></p>
<p class="MsoNormal">[1328283956] Finished daemonizing… (New PID=5771)<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
So did a bit of googling and then :-<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Chmod 755 /usr/local/nagios/bin/ndo2db-3x<u></u><u></u></p><p class="MsoNormal">Chmod 755 /usr/local/nagios/bin/ndomod-3x.o<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Restarted the ndomod and nagios services/processes and got somewhere<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">[1328284715] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright © 2009 Nagios Core Development Team and Community Contributors<u></u><u></u></p><p class="MsoNormal">[1328284715] ndomod: Successfully connected to data sink. 0 queued items to flush.<u></u><u></u></p>
<p class="MsoNormal">[1328284715] Event broker module ‘/usr/local/nagios/bin/ndomod-3x.o’ initialized successfully.<u></u><u></u></p><p class="MsoNormal">[1328284715] ndomod: Error writing to data sink! Some output may get lost…<u></u><u></u></p>
<p class="MsoNormal">[1328284715] Please check remote ndo2db log, database connection or SSL Parameters<u></u><u></u></p><p class="MsoNormal">[1328284715] Finished daemonizing… (New PID=13760)<u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">So did a bit more googling and I then:-<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
Chmod 775 /usr/local/nagios/etc/ndo2db.cfg<u></u><u></u></p><p class="MsoNormal">Chmod 775 /usr/local/nagios/etc/ndomod.cfg<u></u><u></u></p><p class="MsoNormal">Chown nagios:nagios /usr/local/nagios.etc.ndo*<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Restarted the ndomod and nagios services/processes and got a bit further – No check log/db/parameters error<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">[1328285023] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright © 2009 Nagios Core Development Team and Community Contributors<u></u><u></u></p>
<p class="MsoNormal">[1328285023] ndomod: Successfully connected to data sink. 2793 queued items to flush.<u></u><u></u></p><p class="MsoNormal">[1328285023] ndomod: Error writing to data sink! Some output may get lost. 2554 queued items to flush<u></u><u></u></p>
<p class="MsoNormal">[1328285023] Event broker module ‘/usr/local/nagios/bin/ndomod-3x.o’ initialized successfully.<u></u><u></u></p><p class="MsoNormal">[1328285023] Finished daemonizing… (New PID=17107)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Then read to change the perms on the ndo.sock file, so:<u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">Chmod 775 /usr/local/nagios/var/ndo.sock<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">But still the same output:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">[1328285748] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright © 2009 Nagios Core Development Team and Community Contributors<u></u><u></u></p><p class="MsoNormal">[1328285748] ndomod: Successfully connected to data sink. 957 queued items to flush.<u></u><u></u></p>
<p class="MsoNormal">[1328285748] ndomod: Error writing to data sink! Some output may get lost. 2374 queued items to flush<u></u><u></u></p><p class="MsoNormal">[1328285748] Event broker module ‘/usr/local/nagios/bin/ndomod-3x.o’ initialized successfully.<u></u><u></u></p>
<p class="MsoNormal">[1328285748] Finished daemonizing… (New PID=19520)<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">My 2 config files can be found here:<u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">Ndomod.cfg - <a href="http://dl.dropbox.com/u/895609/ndomod.cfg" target="_blank">http://dl.dropbox.com/u/895609/ndomod.cfg</a><u></u><u></u></p><p class="MsoNormal">Ndo2db.cfg - <a href="http://dl.dropbox.com/u/895609/ndo2db.cfg" target="_blank">http://dl.dropbox.com/u/895609/ndo2db.cfg</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Can anybody please help me? This has to be permission related im sure of it but I cannot solve it.<u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">Thankyou in advance<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>------------------------------------------------------------------------------<br>
Try before you buy = See our experts in action!<br>
The most comprehensive online learning library for Microsoft developers<br>
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,<br>
Metro Style Apps, more. Free future releases when you subscribe now!<br>
<a href="http://p.sf.net/sfu/learndevnow-dev2" target="_blank">http://p.sf.net/sfu/learndevnow-dev2</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br></div>