<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.17">
<TITLE>RE : [Nagios-users] Time periods Issue</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hello,<BR>
<BR>
Maybe it is because Nagios first schedule check with inter_check_delay method, and then test it according to timeperiod.<BR>
I try to explain myself:<BR>
When Nagios initialy schedule all checks, it first try to schedule them using intercheck_delay and interleaving to calculate a first time. It then test this time against timeperiod, and if not match then reschedule it at the first valid time. There is no interleaving when rescheduling at earlier valid time.<BR>
So if the timeperiod is define a couple of minutes ahead and the inter_check_delay method also make the checks schedule a couple of minutes ahead, it may be a valid time. So Nagios don't need to reschedule it at the beginning of the timeperiod.<BR>
If valid check time is far in the futur, then inter_check_delay will never fall in a valid time, so every check will be reschedule at the beginning of the timeperiod.<BR>
<BR>
Do you have high normal_check_interval (more than 15 minutes) that may cause the calculated inter_check_delay high ?<BR>
<BR>
<BR>
Hope it will help<BR>
<BR>
Regards,<BR>
<BR>
Florent<BR>
<BR>
>It's 20:00 o'clock right now and I defined a time period like this:<BR>
><BR>
>define timeperiod{<BR>
> timeperiod_name night<BR>
> alias Check at night only<BR>
> sunday 22:00-23:00<BR>
> monday 22:00-23:00<BR>
> tuesday 22:00-23:00<BR>
> wednesday 22:00-23:00<BR>
> thursday 22:00-23:00<BR>
> friday 22:00-23:00<BR>
> saturday 22:00-23:00<BR>
> }<BR>
><BR>
>using this settings, i restarted Nagios and it schedules all plug-ins at<BR>
>22:00 without interleaving them.<BR>
><BR>
>But if i set the timeperiod to:<BR>
>define timeperiod{<BR>
> timeperiod_name night<BR>
> alias Check at night only<BR>
> sunday 20:15-21:15<BR>
> monday 20:15-21:15<BR>
> tuesday 20:15-21:15<BR>
> wednesday 20:15-21:15<BR>
> thursday 20:15-21:15<BR>
> friday 20:15-21:15<BR>
> saturday 20:15-21:15<BR>
> }<BR>
><BR>
>and restart nagios, on the web interface I can see Nagios interleaving all<BR>
>the checks right away.<BR>
>Why if i schedule it couple hours ahead Nagios doesn't interleave the chekcs<BR>
>but if i schedule it couple minutes ahead, it interleaves all the check?<BR>
><BR>
> these are my configuration:<BR>
>service_interleave_factor=s<BR>
>max_service_check_spread=60<BR>
>service_inter_check_delay_method=s<BR>
><BR>
><BR>
>Regards,<BR>
>Adi Yesaya<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>