mirror of https://github.com/Icinga/icinga2.git
51 lines
1.0 KiB
Plaintext
51 lines
1.0 KiB
Plaintext
|
|
|
|
object Host "5980-host" {
|
|
import "test-generic-host"
|
|
address = "127.0.0.1"
|
|
}
|
|
|
|
object Service "5980-service1" {
|
|
import "test-generic-service"
|
|
host_name = "5980-host"
|
|
check_command = "dummy"
|
|
}
|
|
|
|
object Service "5980-service2" {
|
|
import "test-generic-service"
|
|
host_name = "5980-host"
|
|
check_command = "dummy"
|
|
}
|
|
|
|
|
|
template ScheduledDowntime "5980-test-downtime" {
|
|
author = "icingaadmin"
|
|
comment = "Scheduled downtime for tests"
|
|
|
|
ranges = {
|
|
monday = "02:00-03:00"
|
|
tuesday = "02:00-03:00"
|
|
wednesday = "02:00-03:00"
|
|
thursday = "02:00-03:00"
|
|
friday = "02:00-03:00"
|
|
saturday = "02:00-03:00"
|
|
sunday = "02:00-03:00"
|
|
}
|
|
}
|
|
|
|
|
|
apply ScheduledDowntime "5980-test-service-downtime" to Host {
|
|
import "5980-test-downtime"
|
|
comment = "Scheduled host downtime for tests"
|
|
|
|
assign where host.name == "5980-host"
|
|
}
|
|
|
|
apply ScheduledDowntime "5980-test-service-downtime" to Service {
|
|
import "5980-test-downtime"
|
|
comment = "Scheduled service downtime for tests"
|
|
|
|
assign where host.name == "5980-host"
|
|
}
|
|
|