Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
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:
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 debug file many sql queries.
In my nagios 2000 hosts and services but in db after start ndoutils only 7 records instead 2000:
Thanks for the reply.
I add string data_processing_options=-1 in ndomod.cfg.
After that in mysql became 12 records, is better . But should be at least 1800-1900 records.
May have to wait a while?
I have no more ideas
Also, do you see any query errors in the ndo2db.debug log?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Did the database get populated with the 1800-1900? I noticed the Could no open data sink in your ndo2db log and found another core user that had same error message. It came to file ownership of /usr/local/nagios/etc/ndomod.cfg being root:root and it should be apache.nagios. Check out this thread:
I change right on /usr/local/etc/nagios/ndo2db.cfg and /usr/local/etc/nagios/ndomod.cfg to www:nagios.
Kill ndo, restart nagios and then start ndo.
In nagios.log:
Nagios 3.4.1 starting... (PID=37254)
Local time is Wed Mar 04 13:10:01 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 state change 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=37902)
ndomod: Successfully connected to data sink. 16579 items lost, 5000 queued items to flush.
ndomod: Error writing to data sink! Some output may get lost. 4981 queued items to flush.
ndomod: Still unable to reconnect to data sink. 16579 items lost, 4981 queued items to flush.
ndomod: Successfully reconnected to data sink! 2582 items lost, 5000 queued items to flush.
In debug many queries and in messages nothing strange.
After each restart of nagios in db is added 2-3 entries.
And another bug - when running ndo, nagios does not update statistics of switches and services.
To solve this problem, ndo need to kill and then restart nagios.
It's normally?