I've been using Nagios and NDOUtils for quite some time.
Recently we've decided to use the latest Ubuntu Server LTS (12.0.4 64bits) and to separate the Nagios core server from the NDOUtils Database server.
Both Servers are Ubuntu 12.0.4 Server 64bit.
We are using Nagios 3.5.0 and NDOUtils 1.4b9.
I can use the configured account to access the database from the Nagios' server CLI.
When I restart nagios (having ndo2db already started) and I do a 'tail -f /usr/local/nagios/var/nagios.log' I get:
Code: Select all
[1385747245] Nagios 3.5.0 starting... (PID=28945)
[1385747245] Local time is Fri Nov 29 17:47:25 UTC 2013
[1385747245] LOG VERSION: 2.0
[1385747245] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1385747245] ndomod: Successfully connected to data sink. 61 queued items to flush.
[1385747245] ndomod: Successfully flushed 61 queued items to data sink.
[1385747245] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
[1385747245] Finished daemonizing... (New PID=28947)
[1385747246] ndomod: Error writing to data sink! Some output may get lost...
[1385747246] ndomod: Please check remote ndo2db log, database connection or SSL Parameters
[1385747262] ndomod: Successfully reconnected to data sink! 0 items lost, 96 queued items to flush.
[1385747262] ndomod: Successfully flushed 96 queued items to data sink.
[1385747262] ndomod: Error writing to data sink! Some output may get lost...
[1385747262] ndomod: Please check remote ndo2db log, database connection or SSL Parameters
[1385747278] ndomod: Successfully reconnected to data sink! 0 items lost, 88 queued items to flush.
[1385747278] ndomod: Successfully flushed 88 queued items to data sink.
[1385747278] ndomod: Error writing to data sink! Some output may get lost...
[1385747278] ndomod: Please check remote ndo2db log, database connection or SSL Parameters
...
...
...
Code: Select all
event_broker_options=-1
broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg
My ndo2db.cfg:
Code: Select all
lock_file=/usr/local/nagios/var/ndo2db.lock
ndo2db_user=nagios
ndo2db_group=nagios
socket_type=unix
socket_name=/usr/local/nagios/var/ndo.sock
tcp_port=5668
use_ssl=0
db_servertype=mysql
db_host=x.y.z.135
db_port=3306
db_name=ndoutils
db_prefix=nagios_
db_user=xxxx
db_pass=yyyy
max_timedevents_age=1440
max_systemcommands_age=10080
max_servicechecks_age=57600
max_hostchecks_age=57600
max_eventhandlers_age=44640
max_externalcommands_age=44640
debug_level=1
debug_verbosity=1
debug_file=/usr/local/nagios/var/ndo2db.debug
max_debug_file_size=1000000
Code: Select all
instance_name=myInstance
output_type=unixsocket
output=/usr/local/nagios/var/ndo.sock
tcp_port=5668
use_ssl=0
output_buffer_items=5000
buffer_file=/usr/local/nagios/var/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
Sebastião