]> granicus.if.org Git - icinga2/blob - test/config/5980.conf
Merge pull request #6544 from gunnarbeutner/fix/deprecated-strstream-header
[icinga2] / test / config / 5980.conf
1
2
3 object Host "5980-host" {
4   import "test-generic-host"
5   address = "127.0.0.1"
6 }
7
8 object Service "5980-service1" {
9   import "test-generic-service"
10   host_name = "5980-host"
11   check_command = "dummy"
12 }
13
14 object Service "5980-service2" {
15   import "test-generic-service"
16   host_name = "5980-host"
17   check_command = "dummy"
18 }
19
20
21 template ScheduledDowntime "5980-test-downtime" {
22   author = "icingaadmin"
23   comment = "Scheduled downtime for tests"
24
25   ranges = {
26     monday = "02:00-03:00"
27     tuesday = "02:00-03:00"
28     wednesday = "02:00-03:00"
29     thursday = "02:00-03:00"
30     friday = "02:00-03:00"
31     saturday = "02:00-03:00"
32     sunday = "02:00-03:00"
33   }
34 }
35
36
37 apply ScheduledDowntime "5980-test-service-downtime" to Host {
38   import "5980-test-downtime"
39   comment = "Scheduled host downtime for tests"
40
41   ranges = {
42     tuesday = "09:37-09:40"
43   }
44
45   assign where host.name == "5980-host"
46 }
47
48 apply ScheduledDowntime "5980-test-service-downtime" to Service {
49   import "5980-test-downtime"
50   comment = "Scheduled service downtime for tests"
51
52   ranges = {
53     tuesday = "09:37-09:40"
54   }
55
56   assign where host.name == "5980-host"
57 }
58