Problem with nagios and ndoutils
Posted: Thu Feb 26, 2015 6:09 am
Hi all!
Sorry for my english ))
I have a problem.
I have nagios 3.4.1 and ndoutils 2.0.0 from sourceforge. FreeBSD 9.1.
All installed without problems.
There is my configs:
ndo2db:
ndomod:
I start ndo:
/usr/local/bin/ndo2db-3x -c /usr/local/etc/nagios/ndo2db.cfg
then retstart nagios:
/usr/loca/etc/rc.d/nagios restart
Everything alright.
In logs:
nagios.log
In debug file many sql queries.
In my nagios 2000 hosts and services but in db after start ndoutils only 7 records instead 2000:
What is my fault?
Thanks.
Sorry for my english ))
I have a problem.
I have nagios 3.4.1 and ndoutils 2.0.0 from sourceforge. FreeBSD 9.1.
All installed without problems.
There is my configs:
ndo2db:
Code: Select all
lock_file=/usr/local/nagios/var/ndo2db.lock
ndo2db_user=nagios
ndo2db_group=nagios
socket_type=unix
#socket_type=tcp
socket_name=/usr/local/nagios/var/ndo.sock
tcp_port=5668
use_ssl=0
db_servertype=mysql
db_host=localhost
db_port=3306
db_name=ndo_nagios
db_prefix=nagios_
db_user=ndo
db_pass=********
max_timedevents_age=1440
max_systemcommands_age=10080
max_servicechecks_age=10080
max_hostchecks_age=10080
max_eventhandlers_age=44640
max_externalcommands_age=44640
max_notifications_age=44640
max_contactnotifications=44640
max_contactnotificationmethods=44640
max_logentries_age=129600
max_acknowledgements_age=44640
debug_level=2
debug_verbosity=2
debug_file=/usr/local/nagios/var/ndo2db.debug
max_debug_file_size=1000000Code: Select all
instance_name=default
#output_type=file
#output_type=tcpsocket
output_type=unixsocket
#output=/usr/local/nagios/var/ndo.dat
#output=127.0.0.1
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_command=rotate_ndo_log
file_rotation_timeout=60
reconnect_interval=15
reconnect_warning_interval=15
#reconnect_warning_interval=900
acknowledgement_data=1
adaptive_contact_data=1
adaptive_host_data=1
adaptive_program_data=1
adaptive_service_data=1
aggregated_status_data=1
comment_data=1
contact_status_data=1
downtime_data=1
event_handler_data=1
external_command_data=1
flapping_data=1
host_check_data=1
host_status_data=1
log_data=1
main_config_data=1
notification_data=1
object_config_data=1
process_data=1
program_status_data=1
retention_data=1
service_check_data=1
service_status_data=1
statechange_data=1
system_command_data=1
timed_event_data=1
config_output_options=2/usr/local/bin/ndo2db-3x -c /usr/local/etc/nagios/ndo2db.cfg
then retstart nagios:
/usr/loca/etc/rc.d/nagios restart
Everything alright.
In logs:
nagios.log
Code: Select all
Nagios 3.4.1 starting... (PID=849)
Local time is Thu Feb 26 12:01:50 MSK 2015
LOG VERSION: 2.0
ndomod: NDOMOD 2.0.0 (02-28-2014) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
ndomod: Could not open data sink! I'll keep trying, but some output may get lost...
ndomod registered for process data
ndomod registered for timed event data
ndomod registered for log data'
ndomod registered for system command data'
ndomod registered for event handler data'
ndomod registered for notification data'
ndomod registered for service check data'
ndomod registered for host check data'
ndomod registered for comment data'
ndomod registered for downtime data'
ndomod registered for flapping data'
ndomod registered for program status data'
ndomod registered for host status data'
ndomod registered for service status data'
ndomod registered for adaptive program data'
ndomod registered for adaptive host data'
ndomod registered for adaptive service data'
ndomod registered for external command data'
ndomod registered for aggregated status data'
ndomod registered for retention data'
ndomod registered for contact data'
ndomod registered for contact notification data'
ndomod registered for acknowledgement data'
ndomod registered for contact status data'
ndomod registered for adaptive contact data'
Event broker module '/usr/local/bin/ndomod-3x.o' initialized successfully.
Finished daemonizing... (New PID=861)
ndomod: Still unable to reconnect to data sink. 41336 items lost, 5000 queued items to flush.
ndomod: Successfully reconnected to data sink! 41471 items lost, 5000 queued items to flush.In my nagios 2000 hosts and services but in db after start ndoutils only 7 records instead 2000:
Code: Select all
select * from nagios_hoststatus;Thanks.