Nagios Core 3.2.0
NDO2DB 1.4b9
MySQL 5.0.17
Redhat AS4 U6
I have the dreaded "ndomod: Could not open data sink!" problem. Nagios
itself is running happily, and I am trying to integrate Nagvis.
These are my Nagios processes, and socket file
nagios 29946 1 0 10:50 ? 00:00:00
/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 29990 1 0 10:50 ? 00:00:08
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
srwxrwx--- 1 nagios nagios 0 Feb 16 12:36 /usr/local/nagios/var/ndo.sock
No Nagios data is going through to the mysql Nagios tables though. They
are all created, but none have been populated. I've gone through all the
numerous other posts on this topic, but nothing has worked.
I can write to my mysql d/b using the db_user/db_pass in ndo2db.cfg.
This is from my Nagios log (coincidently, I can never get anything written
to the ndo2db.debug file).
[1266317457] ndomod: Could not open data sink! I'll keep trying, but some
output may get lost...
[1266317457] Event broker module '/usr/local/nagios/bin/ndomod.o'
initialized successfully.
[1266321105] ndomod: Still unable to connect to data sink. 32292 items
lost, 5000 queued items to flush.
The ndo2db.cfg and nagios.cfg are below.
Any help much appreciated.
Regards
Nigel
[ndo2db.cfg]
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
use_ssl=0
db_servertype=mysql
db_host=localhost
db_port=3306
db_name=nagios
db_prefix=nagios_
db_user=ndouser
db_pass=xxxxxx
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=1
debug_file=/usr/local/nagios/var/ndo2db.debug
max_debug_file_size=1000000
[nagios.cfg]
log_file=/var/log/nagios/nagios.log
cfg_file=/usr/local/nagios/etc/objects/linux-remote.cfg
cfg_file=/usr/local/nagios/etc/objects/commands.cfg
cfg_file=/usr/local/nagios/etc/objects/contacts.cfg
cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg
cfg_file=/usr/local/nagios/etc/objects/templates.cfg
cfg_file=/usr/local/nagios/etc/objects/localhost.cfg
object_cache_file=/usr/local/nagios/var/objects.cache
precached_object_file=/usr/local/nagios/var/objects.precache
resource_file=/usr/local/nagios/etc/resource.cfg
status_file=/usr/local/nagios/var/status.dat
status_update_interval=10
nagios_user=nagios
nagios_group=nagios
check_external_commands=1
command_check_interval=-1
command_file=/usr/local/nagios/var/rw/nagios.cmd
external_command_buffer_slots=4096
lock_file=/usr/local/nagios/var/nagios.lock
temp_file=/usr/local/nagios/var/nagios.tmp
temp_path=/tmp
event_broker_options=-1
broker_module=/usr/local/nagios/bin/ndomod.o
config_file=/usr/local/nagios/etc/ndomod.cfg
log_rotation_method=d
log_archive_path=/var/log/nagios/archives
use_syslog=1
log_notifications=1
log_service_retries=1
log_host_retries=1
log_event_handlers=1
log_initial_states=1
log_external_commands=1
log_passive_checks=1
service_inter_check_delay_method=s
max_service_check_spread=30
service_interleave_factor=s
host_inter_check_delay_method=s
max_host_check_spread=30
max_concurrent_checks=0
check_result_reaper_frequency=10
max_check_result_reaper_time=30
check_result_path=/usr/local/nagios/var/spool/checkresults
max_check_result_file_age=3600
cached_host_check_horizon=15
cached_service_check_horizon=15
enable_predictive_host_dependency_checks=1
enable_predictive_service_dependency_checks=1
soft_state_dependencies=0
auto_reschedule_checks=0
auto_rescheduling_interval=30
auto_rescheduling_window=180
sleep_time=0.25
service_check_timeout=60
host_check_timeout=30
event_handler_timeout=30
notification_timeout=30
ocsp_timeout=5
perfdata_timeout=5
retain_state_information=1
state_retention_file=/usr/local/nagios/var/retention.dat
retention_update_interval=60
use_retained_program_state=1
use_retained_scheduling_info=1
retained_host_attribute_mask=0
retained_service_attribute_mask=0
retained_process_host_attribute_mask=0
retained_process_service_attribute_mask=0
retained_contact_host_attribute_mask=0
retained_contact_service_attribute_mask=0
interval_length=60
check_for_updates=1
bare_update_check=0
use_aggressive_host_checking=0
execute_service_checks=1
accept_passive_service_checks=1
execute_host_checks=1
accept_passive_host_checks=1
enable_notifications=1
enable_event_handlers=1
process_performance_data=0
obsess_over_services=0
obsess_over_hosts=0
translate_passive_host_checks=0
passive_host_checks_are_soft=0
check_for_orphaned_services=1
check_for_orphaned_hosts=1
check_service_freshness=1
service_freshness_check_interval=60
check_host_freshness=0
host_freshness_check_interval=60
additional_freshness_latency=15
enable_flap_detection=1
low_service_flap_threshold=5.0
high_service_flap_threshold=20.0
low_host_flap_threshold=5.0
high_host_flap_threshold=20.0
date_format=us
p1_file=/usr/local/nagios/bin/p1.pl
enable_embedded_perl=1
use_embedded_perl_implicitly=1
illegal_object_name_chars=`~!$%^&*|'"<>?,()=
illegal_macro_output_chars=`~$&|'"<>
use_regexp_matching=0
use_true_regexp_matching=0
admin_email=nag...@localhost
admin_pager=pagenag...@localhost
daemon_dumps_core=0
use_large_installation_tweaks=0
enable_environment_macros=1
debug_level=0
debug_verbosity=1
debug_file=/usr/local/nagios/var/nagios.debug
max_debug_file_size=1000000
Nigel Leach
Grid Engineer | Front Office Risk Systems | BNP Paribas
___________________________________________________________
This communication is confidential, may be privileged and is meant only for the
intended recipient. If you are not the intended recipient, please notify the
sender by reply and delete the message from your system. Any unauthorised
dissemination, distribution or copying hereof is prohibited.
BNP Paribas Trust Corporation UK Limited, BNP Paribas UK Limited, BNP Paribas
Commodity Futures Limited, BNP Paribas Asset Management UK Limited and
Investment Fund Services Limited are authorised and regulated by the Financial
Services Authority.
BNP Paribas London Branch and BNP Paribas Wealth Management London Branch are
authorised by the CECEI and supervised by the Commission Bancaire.
BNP Paribas London Branch is authorised and subject to limited regulation by
the Financial Services Authority. Details about the extent of our authorisation
and regulation by the Financial Services Authority are available from us on
request. BNP Paribas is also a member of the London Stock Exchange.
BNP Paribas Wealth Management London Branch is subject to limited regulation by
the Financial Services Authority. Details about the extent of our
authorisation and regulation by the Financial Services Authority are available
from us on request.
BNP Paribas Securities Services London Branch is authorised by the CECEI and
supervised by the AMF, and subject to limited regulation by the Financial
Services Authority. Details on the extent of our regulation by the Financial
Services Authority are available from us on request. BNP Paribas Securities
Services is also a member of the London Stock Exchange.
BNP Paribas Trust Corporation UK Limited is registered in England and Wales
(registered no. 4042668) at registered office 55 Moorgate, London EC2R 6PA.
BNP Paribas UK Limited is registered in England and Wales (registered no.
1488108) at registered office 10 Harewood Avenue, London NW1 6AA.
BNP Paribas Commodity Futures Limited is registered in England and Wales
(registered no. 2391477) at registered office 10 Harewood Avenue, London NW1
6AA.
BNP Paribas Asset Management UK Limited is registered in England and Wales
(registered no. 2474627) at registered office 10 Harewood Avenue, London NW1
6AA.
Investment Fund Services Limited is registered in England and Wales (registered
no. 6110770) at registered office 55 Moorgate, London EC2R 6PA.
BNP Paribas London Branch is registered in England and Wales (registered no.
FC13447) at registered office 10 Harewood Avenue, London NW1 6AA.
BNP Paribas Wealth Management London Branch is registered in England and Wales
(registered no. FC023926) at registered office 10 Harewood Avenue, London NW1
6AA.
BNP Paribas Securities Services London Branch is registered in England and
Wales (registered no. BR006393) at registered office 55 Moorgate, London, EC2R
6PA.
BNP Paribas Lease Group Plc is registered in England and Wales (registered no.
2341989) at registered office Northern Cross, Basing View, Basingstoke,
Hampshire RG21 4HL.
____________________________________________________________
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null