Check period does not work

Hi everyone,

I have a service that I want to check at certain time only once a day .
I created time period like this :

object TimePeriod "AReports_Timeperiod" {
    import "legacy-timeperiod"
    prefer_includes = true
    display_name = "AReports"
    ranges = {
        "friday"	= "07:45-08:00"
        "monday"	= "07:45-08:00"
        "saturday"	= "07:45-08:00"
        "sunday"	= "07:45-08:00"
        "thursday"	= "07:45-08:00"
        "tuesday"	= "07:45-08:00"
        "wednesday"	= "07:45-08:00"
    }
}

My service template is like this :

template Service "A_Reports_Check_Template_Clone" {
    max_check_attempts = "1"
    check_period = "AReports_Timeperiod"
    command_endpoint = null
}

And my service :


object Service "Test3" { 
host_name = "Icinga-Test-Server" 
import "A_Reports_Check_Template_Clone" 
check_command = "A_Report_Check" 
}

Icinga still checks this service every 5 minutes , it ignores timeperiod and check period

Hello :slight_smile:
check_interval (e.g. every 5 min) and check_period are two different settings.

With the config you have posted the check should (at this time of day) show a “next check a 7:45 tomorrow”. And then it will run the check in a defined interval.
Example for setting the intervals:

template Service "generic-service" {
  check_interval = 5m
  retry_interval = 1m
}