Page 1 of 1

Wrong "Next Scheduled Check"

Posted: Mon Aug 13, 2012 9:15 am
by nagniot
Hi

I don't know if it is a bug, but is very strange.

I have defined service with should be checked every monday at 8 am. My config looks like:

define timeperiod{
timeperiod_name monday_at_8
alias monday_at_8
monday 08:00-08:20
}
My service:
normal_check_interval 60
check_period monday_at_8
max_check_attempts 5
retry_interval 3

Today is monday. I use "Re-schedule the next check of this service" and after check Nagios set up Next Scheduled Check: 08-13-2012 17:03:39 . But should be date of next monday 08-20-2012 8:00.
If i change timeperiod on e.g tuesday, or monday but at e.g 20:00 it looks fine.

Please help
Thank you

Re: Wrong "Next Scheduled Check"

Posted: Mon Aug 13, 2012 9:38 am
by nagniot
I have modified it but problem still occurs.

define timeperiod{
timeperiod_name monday_at_8
alias monday_at_8
monday 08:00-08:20
exclude without_monday_at_8
}

define timeperiod{
timeperiod_name without_monday_at_8
alias without_monday_at_8
monday 00:00-08:00,08:20-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
sunday 00:00-24:00
}

Re: Wrong "Next Scheduled Check"

Posted: Mon Aug 13, 2012 4:34 pm
by agriffin
What version of Nagios are you using?

Re: Wrong "Next Scheduled Check"

Posted: Tue Aug 14, 2012 2:08 am
by nagniot
Version 3.3.1

I think that it could be a bug, but i can't update Nagios independently. :(

Re: Wrong "Next Scheduled Check"

Posted: Wed Aug 15, 2012 9:49 am
by mguthrie
Would it be easier to just schedule a passive check with NSCA to run on a cron?