There is a service I want to check only once a day on certain days of
the week. In addition, I want to check it during off hours to reduce
daytime network load.
The problem I am running into is that it gets scheduled during the
day, which is not in the check period window. So it is rescheduled for
the same time the next day, which is still not in the check period window.
Thus the check never happens.
Is there something I am missing that will make this work better? Below
is a portion of the log showing the daily checks, followed by the time
period definition and service definition.
Any suggestions will be appreciated.
--
Jon Harder
[2016-05-17 14:29:13 -0500] notice/CheckerComponent: Skipping check for
object gateway!jsmith backups': not in check_period
[2016-05-17 20:41:20 -0500] notice/CheckerComponent: Skipping check for
object gateway!jsmith backups': not in check_period
[2016-05-18 20:41:20 -0500] notice/CheckerComponent: Skipping check for
object gateway!jsmith backups': not in check_period
[2016-05-19 08:24:21 -0500] notice/CheckerComponent: Skipping check for
object gateway!jsmith backups': not in check_period
[2016-05-20 08:24:21 -0500] notice/CheckerComponent: Skipping check for
object gateway!jsmith backups': not in check_period
[2016-05-21 08:24:21 -0500] notice/CheckerComponent: Skipping check for
object gateway!jsmith backups': not in check_period
object TimePeriod "nights" {
import "legacy-timeperiod"
display_name = "after hours"
ranges = {
monday = "00:00-06:47,21:45-24:00"
tuesday = "00:00-06:47,21:45-24:00"
wednesday = "00:00-06:47,21:45-24:00"
thursday = "00:00-06:47,21:45-24:00"
friday = "00:00-06:47"
sunday = "06:47-24:00"
}
}
template Service "check-backups" {
host_name = "gateway"
groups += [ "backups" ]
check_command = "backup-api"
check_period = "nights"
check_interval = 1d
retry_interval = 1h
max_check_attempts = 1
}
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users