NDO, Error writing to data sink

naim abu darwish ad.naim at gmail.com
Wed Feb 28 01:20:49 CET 2007


hi, i googled tried the other fixes people suggested, nothing seems to
work, the ndo2db-2x is running but not socket is created, some configs::

/etc/nagios/ndo2db.cfg::

ndo2db_user=nagios
ndo2db_group=nagios
socket_type=unix
socket_name=/var/nagios/ndo.sock
tcp_port=5668
db_servertype=mysql
db_host=localhost
db_port=3306
db_name=nagios
db_prefix=nagios_
db_user=ndouser
db_pass=some_verified_password
max_timedevents_age=1440
max_systemcommands_age=10080
max_servicechecks_age=10080
max_hostchecks_age=10080
max_eventhandlers_age=44640


localhost nagvis # ls -l /var/nagios/ndo.sock
srwxr-xr-x 1 nagios nagios 0 Feb 27 03:12 /var/nagios/ndo.sock
localhost nagios # fuser 5668/tcp
localhost nagios #



also :: i tried both tcp and unix sockets, changing the output_type
accordingly, no luck

also below is /etc/nagios/ndomod.cfg ::
instance_name=default
output_type=tcpsocket
output=/var/nagios/ndo.sock
tcp_port=5668
output_buffer_items=5000
buffer_file=/var/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

running on nagios 2.5, php5.1.6-pl6, compiled ndoutils-1.4b2 with gcc 4.1.1

Some logs below ::
[1172540517] ndomod: Successfully flushed 113 queued items to data sink.
[1172540517] ndomod: Error writing to data sink! Some output may get
lost...
[1172540533] ndomod: Successfully reconnected to data sink! 0 items lost,
114 queued items to flush.
[1172540533] ndomod: Successfully flushed 114 queued items to data sink.
[1172540533] ndomod: Error writing to data sink! Some output may get
lost...

Any help appreciated

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV




More information about the Developers mailing list