Hi people!
I’ve installed Nagios 3.0.2 on my Debian 4. I also installed NDOUtils 1.4b7.
The problem is related with NDOUtils. I can not populate the nagios database. I followed all steps and rechecked everything. According to my search, probably there is a bug. (Not sure). I also found some topics here, but nothing helped.
I just found people asking for some help, sometimes I got useful hints, but I did not find the root cause of my problem.
I’ve tried several things, but did not work.
- I could connect to the nagios database using the user nagios and its password. I checked the files to make sure that it is with the correct user, password and database name.
- I checked the owner (user) and group that the files belong to (nagios:nagios).
- I checked the permitions of the files
- I tried to use both TCP and unix in the socket_type and got the same error.
- I just stoped nagios and NDOUtils. I started the NDOUtils and then nagios. Did not work
- I got no errors in the installation.
I really appreciate any help.
Below, the last part of the Nagios log:
1220472069] ndomod: Error writing to data sink! Some output may get lost…
[1220472085] ndomod: Successfully reconnected to data sink! 0 items lost, 84 queued items to flush.
[1220472085] ndomod: Successfully flushed 84 queued items to data sink.
[1220472085] ndomod: Error writing to data sink! Some output may get lost…
[1220472101] ndomod: Successfully reconnected to data sink! 0 items lost, 80 queued items to flush.
[1220472101] ndomod: Successfully flushed 80 queued items to data sink.
[1220472101] ndomod: Error writing to data sink! Some output may get lost…
[1220472117] ndomod: Successfully reconnected to data sink! 0 items lost, 80 queued items to flush.
[1220472117] ndomod: Successfully flushed 80 queued items to data sink.
[1220472117] ndomod: Error writing to data sink! Some output may get lost…
Below, the file ndo2db.cfg
ndo2db_user=nagios
ndo2db_group=nagios
socket_type=unix
#socket_type=tcp
socket_name=/usr/local/nagios/var/ndo.sock
tcp_port=5668
db_servertype=mysql
db_host=localhost
db_port=3306
db_name=nagios
db_prefix=nagios_
db_user=nagios
db_pass=nagios
max_timedevents_age=1440
max_systemcommands_age=10080
max_servicechecks_age=10080
max_hostchecks_age=10080
max_eventhandlers_age=44640
Below, the ndomod.cfg
instance_name=default
output_type=unixsocket
output=/usr/local/nagios/var/ndo.sock
tcp_port=5668
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
And below, part of nagios.cfg
event_broker_options=-1
broker_module=/usr/local/nagios/bin/ndomod-3x.o config_file=/usr/local/nagios/etc/ndomod.cfg
To initialize the NDOUtils service I just use:
/usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg (it starts normaly)
Thanks in advance.