Debugging Nagios?

Bonaparte, Klaus Klaus.Bonaparte at GlobalCrossing.com
Wed Jun 13 21:18:03 CEST 2007


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:lavalamp at spiritual-machines.org] 
Sent: Wednesday, June 13, 2007 9:40 AM
To: Bonaparte, Klaus
Cc: nagios-users at lists.sourceforge.net
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 <bseklecki at collaborativefusion.com>
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
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





More information about the Users mailing list