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