Isso deve ser possível com:
1.Crie a especificação do downtimer em ./conf.d/downtimes.conf como:
apply ScheduledDowntime "backup-downtime" to Service {
author = "icingaadmin"
comment = "Scheduled downtime for backup"
ranges = {
monday = service.vars.backup_downtime
tuesday = service.vars.backup_downtime
wednesday = service.vars.backup_downtime
thursday = service.vars.backup_downtime
friday = service.vars.backup_downtime
saturday = service.vars.backup_downtime
sunday = service.vars.backup_downtime
}
assign where service.vars.backup_downtime != ""
}
2.refer a esta configuração na sua definição de serviço, como:
apply Service for (disk => config in host.vars.disks) {
import "generic-service"
/* Used by the ScheduledDowntime apply rule in 'downtimes.conf'. */
vars.backup_downtime = "03:00-04:30"
check_command = "by_ssh_disk"
vars += config
assign where host.vars.os == "Linux"
ignore where host.name == NodeName
}