EUREEKA!!! Thanks to some other users for pointing this out and helping me resolve... Somehow when I converted config files from Nagios 1.x to 2.9, my timeperiods.cfg was messed up and had the 24x7 entry going from 0:00-0:00 everyday, when it should have been 0:00-24:00 everyday. This caused all my checks to be scheduled at midnight everyday. Thanks for all the help with debugging flags and config files.
Klaus -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bonaparte, Klaus Sent: Wednesday, June 13, 2007 12:18 PM To: [email protected] Subject: Re: [Nagios-users] Debugging Nagios? nagios.log and syslog were of no value, but I was able to build with debug (./configure --enable-DEBUGALL) and see where Nagios is forcing all checks to occur at midnight tomorrow. I've seen several posts on this with questions, but no answers. Does anyone know how to fix the scheduling in Nagios so it does not schedule all checks at midnight every day? output below is from running 'bin/nagios -s etc/nagios.cfg' with debug on. Notice that all checks are scheduled for midnight tomorrow. Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 Preferred Time: 1181761343 --> Wed Jun 13 19:02:23 2007 Next Valid Time: 1181779200 --> Thu Jun 14 00:00:00 2007 ... Host 'snazphoe04' should not be scheduled Host 'sncaanah01' should not be scheduled Host 'sncaanah02' should not be scheduled Host 'sncaanah03' should not be scheduled Host 'sncasacr01' should not be scheduled Host 'sncasacr02' should not be scheduled ... Total scheduled service checks: 502 Service check interval total: 928800 Average service check interval: 1850.20 sec Service inter-check delay: 3.59 sec Total scheduled service checks: 502 Total hosts: 61 Service Interleave factor: 9 Total scheduled services: 502 Service Interleave factor: 9 Total service interleave blocks: 56 Service inter-check delay: 3.6 -----Original Message----- From: Brian A. Seklecki [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 9:40 AM To: Bonaparte, Klaus Cc: [email protected] Subject: Re: [Nagios-users] Debugging Nagios? What a great question! Well there's nagios.log in /var/spool/nagios, use_syslog=1 log_event_handlers=1 log_initial_states=1 log_external_commands=1 log_passive_checks=1 log_notifications=1 log_service_retries=1 But getting debug out the schedule probably requires a debug build of the binary. ~~BAS PS It could be worse, you could be trying to debug a plugin/module. On Tue, 2007-06-12 at 18:57 -0400, Bonaparte, Klaus wrote: > ou debug Nagios to determine why it is no longer running any checks? > > I see checks scheduled in the queue, but then time passes and they get > removed from the top of the queue as if they were run but their status > never changes, nothing is logged in nagios.log or syslogs, and once in > a while you can see nagios processes running? > > > > Any help? Debug flags or common things to look for? > -- Brian A. Seklecki <[EMAIL PROTECTED]> Collaborative Fusion, Inc. ------------------------------------------------------------------------ - 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 [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 ------------------------------------------------------------------------- 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 [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
