Re: [Nagios-users] ndomod: Could not open data sink!
On 11/8/2010 3:07 AM, shacky wrote: Hi. I'm succesfully using Nagios 3.2.3 and I installed ndoutils-1.4b9 to have data in a MySQL db. I configured ndomod and ndo2db and I made a lot of tries, but it does not work. I have this in nagios.log: [1289212021] Nagios 3.2.3 starting... (PID=1583) [1289212021] Local time is Mon Nov 08 11:27:01 CET 2010 [1289212021] LOG VERSION: 2.0 [1289212021] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 Nagios Core Development Team and Community Contributors [1289212021] ndomod: Could not open data sink! I'll keep trying, but some output may get lost... [1289212021] Event broker module '/opt/nagios/bin/ndomod.o' initialized successfully. [1289212021] Finished daemonizing... (New PID=1584) Forgive me if I'm asking an obvious question, but is nod2db running? Also, since you've specified localhost in your config, can you still connect to the DB as nagios of you specify that hostname when you connect (I'd think you could, but don't have a similar config I can try that on)? -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book Blueprint to a Billion shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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
[Nagios-users] ndomod: Could not open data sink!
Hi. I'm succesfully using Nagios 3.2.3 and I installed ndoutils-1.4b9 to have data in a MySQL db. I configured ndomod and ndo2db and I made a lot of tries, but it does not work. I have this in nagios.log: [1289212021] Nagios 3.2.3 starting... (PID=1583) [1289212021] Local time is Mon Nov 08 11:27:01 CET 2010 [1289212021] LOG VERSION: 2.0 [1289212021] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 Nagios Core Development Team and Community Contributors [1289212021] ndomod: Could not open data sink! I'll keep trying, but some output may get lost... [1289212021] Event broker module '/opt/nagios/bin/ndomod.o' initialized successfully. [1289212021] Finished daemonizing... (New PID=1584) This is my ndomod.cfg file: # # NDOMOD CONFIG FILE # # Last Modified: 09-05-2007 # instance_name=default output_type=unixsocket output=/opt/nagios/var/ndo.sock tcp_port=5668 use_ssl=0 output_buffer_items=5000 buffer_file=/opt/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 data_processing_options=-1 config_output_options=2 And this is my ndo2db.cfg file: # # NDO2DB DAEMON CONFIG FILE # # Last Modified: 01-02-2009 # lock_file=/opt/nagios/var/ndo2db.lock ndo2db_user=nagios ndo2db_group=nagios socket_type=unix socket_name=/opt/nagios/var/ndo.sock tcp_port=5668 use_ssl=0 db_servertype=mysql db_host=localhost db_port=3306 db_name=nagios db_prefix=nagios_ db_user=nagios db_pass=password 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=2 debug_file=/tmp/ndo2db.debug max_debug_file_size=100 I can succesfully log to the MySQL db with the data specified in ndo2db.cfg file: server:/opt/nagios/etc# mysql -unagios -p nagios Enter password: Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7649 Server version: 5.0.51a-24+lenny4 (Debian) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql show tables; ++ | Tables_in_nagios | ++ | nagios_acknowledgements| | nagios_commands| | nagios_commenthistory | | nagios_comments| | nagios_configfiles | | nagios_configfilevariables | | nagios_conninfo| | nagios_contact_addresses | | nagios_contact_notificationcommands| | nagios_contactgroup_members| | nagios_contactgroups | | nagios_contactnotificationmethods | | nagios_contactnotifications| | nagios_contacts| | nagios_contactstatus | | nagios_customvariables | | nagios_customvariablestatus| | nagios_dbversion | | nagios_downtimehistory | | nagios_eventhandlers | | nagios_externalcommands| | nagios_flappinghistory | | nagios_host_contactgroups | | nagios_host_contacts | | nagios_host_parenthosts| | nagios_hostchecks | | nagios_hostdependencies| | nagios_hostescalation_contactgroups| | nagios_hostescalation_contacts | | nagios_hostescalations | | nagios_hostgroup_members | | nagios_hostgroups | | nagios_hosts | | nagios_hoststatus | | nagios_instances | | nagios_logentries | | nagios_notifications | | nagios_objects | | nagios_processevents | | nagios_programstatus | | nagios_runtimevariables| | nagios_scheduleddowntime | | nagios_service_contactgroups | | nagios_service_contacts| | nagios_servicechecks | | nagios_servicedependencies | | nagios_serviceescalation_contactgroups | | nagios_serviceescalation_contacts | | nagios_serviceescalations | | nagios_servicegroup_members| | nagios_servicegroups | | nagios_services| | nagios_servicestatus | |
Re: [Nagios-users] ndomod: Could not open data sink
Michael Friedrich michael.friedrich at univie.ac.at writes: nigel.leach at uk.bnpparibas.com wrote: 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 debug level in ndo2db.cfg to highest, what says ndo2db.debug? Nothing unfortunately,what ever debug options I set, this file is always empty The ndo2db.cfg and nagios.cfg are below. and ndomod.cfg? here it is, cheers instance_name=default output_type=tcpsocket output=127.0.0.1 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 -- 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 Nagios-users@lists.sourceforge.net 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
Re: [Nagios-users] ndomod: Could not open data sink
Marc Powell marc at ena.com writes: On Feb 16, 2010, at 8:13 AM, nigel.leach at uk.bnpparibas.com wrote: Nagios Core 3.2.0 NDO2DB 1.4b9 MySQL 5.0.17 Redhat AS4 U6 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. Hints of what you've tried will keep us from offering up repeats.. Moved btw TCP socket, and Unix socket – same results – no data in d/b Recompiled mysql Checked for extra space in broker_module parameters Changed between v4 and v5 mysql password types Plus lots of checks to confirm my configuration appears correct I can write to my mysql d/b using the db_user/db_pass in ndo2db.cfg. Into the NDO tables? Yes This is from my Nagios log (coincidently, I can never get anything written to the ndo2db.debug file). Check /var/log/messages or wherever LOG_ERR goes to for possible clues. I get the contents of my nagios.log mirrored in /var/log/messages, but nothing that appears to relate to ndo debug -- Marc p.s. posting the same question more than once in a 24 hour period could be considered to be rude. The mailbox is full. The email was rejected. suggests a second post may be necessary -- 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 Nagios-users at lists.sourceforge.net 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 -- 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 Nagios-users@lists.sourceforge.net 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
Re: [Nagios-users] ndomod: Could not open data sink
NIgel Leach wrote: Nothing unfortunately,what ever debug options I set, this file is always empty good. then ndo2db does not fork itsself meaning ndomod cannot connect over the socket. so the current problem is ndomod and/or the socket from which ndo2db should read then. and ndomod.cfg? here it is, cheers instance_name=default output_type=tcpsocket output=127.0.0.1 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 How does that match with this? [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 Kind regards, Michael -- DI (FH) Michael Friedrich michael.friedr...@univie.ac.at Tel: +43 1 4277 14359 Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria -- 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 Nagios-users@lists.sourceforge.net 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
Re: [Nagios-users] ndomod: Could not open data sink
sorry Michael Tom, blame that on all my testing getting a bit out of sync. I've updated my ndomod.cfg as below, restarted mysql/nagios/ndo, and my problems persist instance_name=default 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 The mysql port is confirmed as 3306 tcp0 0 0.0.0.0:33060.0.0.0:* LISTEN 17380/mysqld unix 2 [ ACC ] STREAM LISTENING 79686764 17380/mysqld /tmp/mysql.sock And the table prefixs are (I think correct as nagios_) mysql show tables; ++ | Tables_in_nagios ++ | nagios_acknowledgements | nagios_commands | nagios_commenthistory | nagios_comments ... mysql show grants for 'ndouser'@'localhost'; +---+ | Grants for ndou...@localhost +---+ | GRANT USAGE ON *.* TO 'ndouser'@'localhost' IDENTIFIED BY PASSWORD '4da1ca1e5c4de6f2' | GRANT ALL PRIVILEGES ON `nagios`.* TO 'ndouser'@'localhost' +---+ 2 rows in set (0.00 sec) Many thanks for all your help Nigel Leach Grid Engineer | Front Office Risk Systems | BNP Paribas , 5Y021 @ Harewood Avenue ( Internal 711 3634 ! Mobile +44 (0)7789 077 946 ! Direct Dial +44 (0)207 595 3634 * nigel.le...@bnpparibas.com Group Mail: cmitp.f...@bnpparibas.com | Remedy Requests: CMITP FORS | Pickup 711 0350 Internet michael.friedr...@univie.ac.at 17/02/2010 12:21 To Nigel LEACH cc nagios-users@lists.sourceforge.net Subject Re: [Nagios-users] ndomod: Could not open data sink NIgel Leach wrote: Nothing unfortunately,what ever debug options I set, this file is always empty good. then ndo2db does not fork itsself meaning ndomod cannot connect over the socket. so the current problem is ndomod and/or the socket from which ndo2db should read then. and ndomod.cfg? here it is, cheers instance_name=default output_type=tcpsocket output=127.0.0.1 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 How does that match with this? [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 Kind regards, Michael -- DI (FH) Michael Friedrich michael.friedr...@univie.ac.at Tel: +43 1 4277 14359 Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria ___ 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
Re: [Nagios-users] ndomod: Could not open data sink
all working now, worryingly I resorted to the Microsoft solution, and rebooted the server. Everything came up sweet, and mysql is now being populated. No idea why really, but hey ho, hopefully it will remain stable. Now need to get Nagvis working. Many thanks again for all your help. Regards, Nigel 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 Nagios-users@lists.sourceforge.net 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
[Nagios-users] ndomod: Could not open data sink
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=xx 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=100 [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
[Nagios-users] ndomod: Could not open data sink
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 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 Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin
Re: [Nagios-users] ndomod: Could not open data sink
On Feb 16, 2010, at 8:13 AM, nigel.le...@uk.bnpparibas.com wrote: Nagios Core 3.2.0 NDO2DB 1.4b9 MySQL 5.0.17 Redhat AS4 U6 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. Hints of what you've tried will keep us from offering up repeats.. I can write to my mysql d/b using the db_user/db_pass in ndo2db.cfg. Into the NDO tables? This is from my Nagios log (coincidently, I can never get anything written to the ndo2db.debug file). Check /var/log/messages or wherever LOG_ERR goes to for possible clues. -- Marc p.s. posting the same question more than once in a 24 hour period could be considered to be rude. -- 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 Nagios-users@lists.sourceforge.net 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
Re: [Nagios-users] ndomod: Could not open data sink
nigel.le...@uk.bnpparibas.com wrote: 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. debug level in ndo2db.cfg to highest, what says ndo2db.debug? The ndo2db.cfg and nagios.cfg are below. and ndomod.cfg? Regards, Michael Any help much appreciated. Regards Nigel -- 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 Nagios-users@lists.sourceforge.net 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
Re: [Nagios-users] ndomod: Could not open data sink!
Hello Asim, please post your nagios.cfg, ndomod.cfg and ndo2db.cfg christian -- I sense much NT in you, NT leads to Blue Screen. Blue Screen leads to downtime, downtime leads to suffering. NT is the path to the darkside. - Unknown Unix Jedi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of asim hafeez Sent: Sunday, February 03, 2008 2:20 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] ndomod: Could not open data sink! Hi, I'm having problem with ndo, getting this error. Feb 3 06:16:40 nexnag nagios: Caught SIGTERM, shutting down... Feb 3 06:16:40 nexnag nagios: Successfully shutdown... (PID=3912) Feb 3 06:16:40 nexnag nagios: ndomod: Shutdown complete. Feb 3 06:16:40 nexnag nagios: Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully. Feb 3 06:16:40 nexnag nagios: Nagios 2.10 starting... (PID=5269) Feb 3 06:16:40 nexnag nagios: LOG VERSION: 2.0 Feb 3 06:16:40 nexnag nagios: ndomod: NDOMOD 1.4b7 (10-31-2007) Copyright (c) 2005-2007 Ethan Galstad ([EMAIL PROTECTED]) Feb 3 06:16:40 nexnag nagios: ndomod: Could not open data sink! I'll keep trying, but some output may get lost... Feb 3 06:16:40 nexnag nagios: Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully. Feb 3 06:16:40 nexnag nagios: Finished daemonizing... (New PID=5270) ndo ver=1.4b7 nagios ver=2.10 srwxr-xr-x 1 nagios nagios 0 Feb 3 06:19 ndo.sock I've read on some forums about ndo.sock permission, please advice what should be permission on ndo.sock I've test db and i can connect it through shell. -- Best Regards Asim -- --- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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
Re: [Nagios-users] ndomod: Could not open data sink!
Hi Masopust, nagios.cfg ## # # NAGIOS.CFG - Sample Main Config File for Nagios 2.10 # # Read the documentation for more information on this configuration # file. I've provided some comments here, but things may not be so # clear without further explanation. # # Last Modified: 12-21-2006 # ## # LOG FILE # This is the main log file where service and host events are logged # for historical purposes. This should be the first option specified # in the config file!!! log_file=/usr/local/nagios/var/nagios.log # OBJECT CONFIGURATION FILE(S) # This is the configuration file in which you define hosts, host # groups, contacts, contact groups, services, etc. I guess it would # be better called an object definition file, but for historical # reasons it isn't. You can split object definitions into several # different config files by using multiple cfg_file statements here. # Nagios will read and process all the config files you define. # This can be very useful if you want to keep command definitions # separate from host and contact definitions... # Command definitions cfg_file=/usr/local/nagios/etc/commands.cfg # Host and service definitions for monitoring this machine #cfg_file=/usr/local/nagios/etc/localhost.cfg #cfg_file=/usr/local/nagios/etc/test/test.cfg # You can split other types of object definitions across several # config files if you wish (as done here), or keep them all in a # single config file. cfg_file=/usr/local/nagios/etc/test/contactgroups.cfg cfg_file=/usr/local/nagios/etc/test/contacts.cfg cfg_file=/usr/local/nagios/etc/test/hostgroups.cfg cfg_file=/usr/local/nagios/etc/test/hosts.cfg cfg_file=/usr/local/nagios/etc/test/services.cfg cfg_file=/usr/local/nagios/etc/test/timeperiods.cfg cfg_file=/usr/local/nagios/etc/test/service-ext.cfg cfg_file=/usr/local/nagios/etc/test/host-ext.cfg ## #cfg_file=/usr/local/nagios/etc/contactgroups.cfg #cfg_file=/usr/local/nagios/etc/contacts.cfg #cfg_file=/usr/local/nagios/etc/dependencies.cfg #cfg_file=/usr/local/nagios/etc/escalations.cfg #cfg_file=/usr/local/nagios/etc/hostgroups.cfg #cfg_file=/usr/local/nagios/etc/hosts.cfg #cfg_file=/usr/local/nagios/etc/services.cfg #cfg_file=/usr/local/nagios/etc/timeperiods.cfg # Extended host/service info definitions are now stored along with # other object definitions: #cfg_file=/usr/local/nagios/etc/hostextinfo.cfg #cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg # You can also tell Nagios to process all config files (with a .cfg # extension) in a particular directory by using the cfg_dir # directive as shown below: #cfg_dir=/usr/local/nagios/etc/servers #cfg_dir=/usr/local/nagios/etc/printers #cfg_dir=/usr/local/nagios/etc/switches #cfg_dir=/usr/local/nagios/etc/routers # OBJECT CACHE FILE # This option determines where object definitions are cached when # Nagios starts/restarts. The CGIs read object definitions from # this cache file (rather than looking at the object config files # directly) in order to prevent inconsistencies that can occur # when the config files are modified after Nagios starts. object_cache_file=/usr/local/nagios/var/objects.cache # RESOURCE FILE # This is an optional resource file that contains $USERx$ macro # definitions. Multiple resource files can be specified by using # multiple resource_file definitions. The CGIs will not attempt to # read the contents of resource files, so information that is # considered to be sensitive (usernames, passwords, etc) can be # defined as macros in this file and restrictive permissions (600) # can be placed on this file. resource_file=/usr/local/nagios/etc/resource.cfg # STATUS FILE # This is where the current status of all monitored services and # hosts is stored. Its contents are read and processed by the CGIs. # The contents of the status file are deleted every time Nagios # restarts. status_file=/usr/local/nagios/var/status.dat # NAGIOS USER # This determines the effective user that Nagios should run as. # You can either supply a username or a UID. nagios_user=nagios # NAGIOS GROUP # This determines the effective group that Nagios should run as. # You can either supply a group name or a GID. nagios_group=nagios # EXTERNAL COMMAND OPTION # This option allows you to specify whether or not Nagios should check # for external commands (in the command file defined below). By default # Nagios will *not* check for external commands, just to be on the # cautious side. If you want to be able to use the CGI command interface # you will have to enable this. Setting this value to 0 disables command # checking (the default), other values enable it. check_external_commands=1 # EXTERNAL COMMAND CHECK INTERVAL # This is the interval at which
Re: [Nagios-users] ndomod: Could not open data sink!
Hi Masopust, Thanks for your help I've resolve the issue actually i did not mention the complete path in nagios.cfg if you look in nagios.cfg you'll too know about it what i had wrote into it. broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg Thanks Regards Asim - asimhafeez hafeez (asimhafeez) --- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?tx_maillisttofaq_pi1[showUid]=8983 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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
Re: [Nagios-users] ndomod: Could not open data sink!
Hello Asim, yes, you're right, I had a similar problem with nagios.cfg as I wrote ...ndomod.o -c ...ndomod.cfg and searched for days to find this :-)) Sorry that i couldn't answer yesterday but I was out of office and my VPN to my company didn't work.. christian -- I sense much NT in you, NT leads to Blue Screen. Blue Screen leads to downtime, downtime leads to suffering. NT is the path to the darkside. - Unknown Unix Jedi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of asimhafeez hafeez Sent: Monday, February 04, 2008 3:35 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] ndomod: Could not open data sink! Hi Masopust, Thanks for your help I've resolve the issue actually i did not mention the complete path in nagios.cfg if you look in nagios.cfg you'll too know about it what i had wrote into it. broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg Thanks Regards Asim - asimhafeez hafeez (asimhafeez) --- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?tx_maill isttofaq_pi1[showUid]=8983 -- --- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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
[Nagios-users] ndomod: Could not open data sink!
Hi, I'm having problem with ndo, getting this error. Feb 3 06:16:40 nexnag nagios: Caught SIGTERM, shutting down... Feb 3 06:16:40 nexnag nagios: Successfully shutdown... (PID=3912) Feb 3 06:16:40 nexnag nagios: ndomod: Shutdown complete. Feb 3 06:16:40 nexnag nagios: Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully. Feb 3 06:16:40 nexnag nagios: Nagios 2.10 starting... (PID=5269) Feb 3 06:16:40 nexnag nagios: LOG VERSION: 2.0 Feb 3 06:16:40 nexnag nagios: ndomod: NDOMOD 1.4b7 (10-31-2007) Copyright (c) 2005-2007 Ethan Galstad ([EMAIL PROTECTED]) Feb 3 06:16:40 nexnag nagios: ndomod: Could not open data sink! I'll keep trying, but some output may get lost... Feb 3 06:16:40 nexnag nagios: Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully. Feb 3 06:16:40 nexnag nagios: Finished daemonizing... (New PID=5270) ndo ver=1.4b7 nagios ver=2.10 srwxr-xr-x 1 nagios nagios 0 Feb 3 06:19 ndo.sock I've read on some forums about ndo.sock permission, please advice what should be permission on ndo.sock I've test db and i can connect it through shell. -- Best Regards Asim - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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
Re: [Nagios-users] ndomod: Could not open data sink! I'll keep trying, but some output may get lost...
On Mon, 2007-05-14 at 12:30 -0400, Jimmy wrote: anyone have any suggestions why ndomod cannot connect to data sink? im using default setup with mysql with user ndouser:ndopassword There are about a billion things that can cause this, from a database that hasn't been set up yet to invalid credentials to a database that's not running yet. You'd probably get a better answer if you could pass on what troubleshooting steps you've tried so far. Are you able to log into the database with that username and password from the command line? If not, that may tell you where your problem lies. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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
Re: [Nagios-users] ndomod: Could not open data sink! I'll keep trying, but some output may get lost...
Yes I guess that is the only thing I have tried. I even ran ./installdb as the user specified in ndo2db.cfg, i have tried changing the name and password in ndo2db.cfg and granting a new user privs to the database in mysql thinking that maybe the default ndouser and ndopassword is specially blocked, but still to no avail if you can think of any other troubleshooting suggestions i would appreciate it Jimmy Patrick Morris wrote: On Mon, 2007-05-14 at 12:30 -0400, Jimmy wrote: anyone have any suggestions why ndomod cannot connect to data sink? im using default setup with mysql with user ndouser:ndopassword There are about a billion things that can cause this, from a database that hasn't been set up yet to invalid credentials to a database that's not running yet. You'd probably get a better answer if you could pass on what troubleshooting steps you've tried so far. Are you able to log into the database with that username and password from the command line? If not, that may tell you where your problem lies. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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