diff options
Diffstat (limited to 'test/config/5980.conf')
-rw-r--r-- | test/config/5980.conf | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/test/config/5980.conf b/test/config/5980.conf new file mode 100644 index 0000000..494b5bd --- /dev/null +++ b/test/config/5980.conf @@ -0,0 +1,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" +} + |