<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-html" lang="x-unicode">
Dear Sirs,<br>
<br>
<pre wrap=""><big>I have problem with NDOUtils that got below error after restart Nagios service
"ndomod: Error writing to data sink! Some output may get lost."
###################
##Background Information###
###################
</big><big>I installed
</big>
<big>OS : FreeBSD 8.0
App : nagios-3.2.0_1 (by Port)
ndoutils-1.4b9 (by source)
mysql-server-5.0.89 (by Port)
###########
##ndo2db.cfg##
###########
ndo2db_user=nagios
ndo2db_group=nagios
socket_type=unix
socket_name=/var/spool/nagios/ndo.sock
tcp_port=5668
use_ssl=0
db_servertype=mysql
db_host=localhost
db_port=3306
db_name=nagios
db_prefix=nagios_
db_user=xxxx
db_pass=xxxx
max_timedevents_age=1440
max_systemcommands_age=10080
max_servicechecks_age=10080
max_hostchecks_age=10080
max_eventhandlers_age=44640
max_externalcommands_age=44640
debug_level=-1
debug_verbosity=2
debug_file=/var/spool/nagios/ndo2db.debug
max_debug_file_size=1000000
###########
##ndomod.cfg##
###########
instance_name=default
output_type=unixsocket
output=/var/spool/nagios/ndo.sock
tcp_port=5668
use_ssl=0
output_buffer_items=5000
buffer_file=/var/spool/nagios/ndomod.tmp
file_rotation_interval=14400
file_rotation_timeout=60
reconnect_interval=15
reconnect_warning_interval=15
data_processing_options=-1
config_output_options=2
###########
##nagios.cfg###
###########
<big><big><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="font-family: sans-serif; font-size: 13px; line-height: 19px;">Compiled Nagios with support for the event broker</span></span></big></big>
event_broker_options=-1
broker_module=/usr/local/bin/ndomod.o config_file=/usr/local/etc/nagios/ndomod.cfg
############
##Permissions##
############
#ls -alh /usr/local/bin | grep ndo
-r-xr-xr-x 1 root wheel 99K Feb 12 15:13 ndo2db
-r-xr-xr-x 1 root wheel 99K Feb 12 15:13 ndo2db-3x
-r-xr-xr-x 1 root wheel 63K Feb 12 15:13 ndomod-3x.o
-r-xr-xr-x 1 root wheel 63K Feb 12 15:13 ndomod.o
#############
##Start ndo2db##
#############
#/usr/local/bin/ndo2db -c /usr/local/etc/nagios/ndo2db.cfg
# ps -aux | grep ndo2db
nagios 26488 0.0 0.1 3940 1596 ?? Ss 11:49AM 0:00.03 /usr/local/bin/ndo2db -c /usr/local/etc/nagios/ndo2db.cfg
root 26988 0.0 0.1 3492 1076 0 S+ 12:06PM 0:00.00 grep ndo2db
#################
##After restart Nagios##
#################
# /usr/local/etc/rc.d/nagios restart && tail -f /var/spool/nagios/nagios.log
Performing sanity check of nagios configuration: OK
nagios not running? (check /var/spool/nagios/nagios.lock).
Performing sanity check of nagios configuration: OK
Starting nagios.
[1269234211] LOG VERSION: 2.0
[1269234211] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1269234211] ndomod: Successfully connected to data sink. 177 queued items to flush.
[1269234214] Nagios 3.2.0 starting... (PID=26958)
[1269234214] Local time is Mon Mar 22 12:03:34 ICT 2010
[1269234214] LOG VERSION: 2.0
[1269234214] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1269234214] ndomod: Successfully connected to data sink. 0 queued items to flush.
[1269234214] Event broker module '/usr/local/bin/ndomod.o' initialized successfully.
[1269234214] Finished daemonizing... (New PID=26960)
[1269234214] ndomod: Error writing to data sink! Some output may get lost...
[1269234214] ndomod: Please check remote ndo2db log, database connection or SSL Parameters
Any more configuration else??
Thks your for you big help.
Regards,
Witchaphon S.
</big>
</pre>
</div>
</body>
</html>