Wrong "Next Scheduled Check"

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.
Locked
nagniot
Posts: 11
Joined: Thu Aug 02, 2012 8:26 am

Wrong "Next Scheduled Check"

Post 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
nagniot
Posts: 11
Joined: Thu Aug 02, 2012 8:26 am

Re: Wrong "Next Scheduled Check"

Post 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
}
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Wrong "Next Scheduled Check"

Post by agriffin »

What version of Nagios are you using?
nagniot
Posts: 11
Joined: Thu Aug 02, 2012 8:26 am

Re: Wrong "Next Scheduled Check"

Post by nagniot »

Version 3.3.1

I think that it could be a bug, but i can't update Nagios independently. :(
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Wrong "Next Scheduled Check"

Post by mguthrie »

Would it be easier to just schedule a passive check with NSCA to run on a cron?
Locked