summaryrefslogtreecommitdiffstats
path: root/test/config/5980.conf
blob: 494b5bd5bf9438233f87a364c40fd3e076e521c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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"

  ranges = {
    tuesday = "09:37-09:40"
  }

  assign where host.name == "5980-host"
}

apply ScheduledDowntime "5980-test-service-downtime" to Service {
  import "5980-test-downtime"
  comment = "Scheduled service downtime for tests"

  ranges = {
    tuesday = "09:37-09:40"
  }

  assign where host.name == "5980-host"
}