From: Michael Friedrich Date: Thu, 1 May 2014 23:03:03 +0000 (+0200) Subject: Import test config for existing issues. X-Git-Tag: v0.0.11~100 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4a86789630b544afa9e4bd409d8754f4becdd36;p=icinga2 Import test config for existing issues. --- diff --git a/test/config/5872.conf b/test/config/5872.conf new file mode 100644 index 000000000..2dab7c1f4 --- /dev/null +++ b/test/config/5872.conf @@ -0,0 +1,54 @@ + +object HostGroup "5872-windows-servers"{ + display_name = "5872-windows-servers" + assign where match("5872-*", host.name) +} + +apply Service "5872-ping4" { + import "test-generic-service" + check_command = "ping4" + assign where match("5872-*", host.name) +} + +object Host "5872-server" { + import "test-generic-host" + address = "192.168.1.5", +} + +object Host "5872-pc" { + import "test-generic-host" + address = "192.168.1.101", +} + +object Host "5872-router" { + import "test-generic-host" + address = "192.168.1.1", +} + +object Host "5872-switch" { + import "test-generic-host" + address = "192.168.1.2", +} + +apply Dependency "5872-switch" to Host { + child_host_name = "5872-switch" + parent_host_name = "5872-router" + disable_checks = true + assign where host.name == "5872-switch" +} + +apply Dependency "5872-pc" to Host { + child_host_name = "5872-pc" + parent_host_name = "5872-switch" + disable_checks = true + assign where host.name == "5872-pc" +} + +apply Dependency "5872-server" to Host { + child_host_name = "5872-server" + parent_host_name = "5872-switch" + disable_checks = true + assign where host.name == "5872-server" +} + + diff --git a/test/config/5912.conf.dis b/test/config/5912.conf.dis new file mode 100644 index 000000000..0366b06a5 --- /dev/null +++ b/test/config/5912.conf.dis @@ -0,0 +1,14 @@ + +apply Service "5912-ping4" { + import "test-generic-service" + check_command = "ping4" + host_name = "foo" + service_name = "bar" + assign where match("5912-*", host.name) +} + +object Host "5912-server" { + import "test-generic-host" + address = "192.168.1.5", +} + diff --git a/test/config/6105.conf b/test/config/6105.conf new file mode 100644 index 000000000..32a803628 --- /dev/null +++ b/test/config/6105.conf @@ -0,0 +1,23 @@ + + +object HostGroup "6105-bar" { + assign where match("6105-keks*", host.name) +} + +object Host "6105-keks" { + import "test-generic-host" + address = "12.3.4" +} + +apply Service "6105-foo" { + import "test-generic-service" + check_command = "ping4" + assign where "6105-bar" in host.groups +} + +object ServiceGroup "6105-bar" { + assign where service.name == "6105-foo" +} + + + diff --git a/test/config/README b/test/config/README new file mode 100644 index 000000000..5e8385fb8 --- /dev/null +++ b/test/config/README @@ -0,0 +1,2 @@ +Contains various test configuration for fixed issues. +May be used for regression tests too. diff --git a/test/config/templates.conf b/test/config/templates.conf new file mode 100644 index 000000000..983062b91 --- /dev/null +++ b/test/config/templates.conf @@ -0,0 +1,14 @@ +/** + * test templates + */ + +template Service "test-generic-service" { + max_check_attempts = 3 + check_interval = 5m + retry_interval = 1m +} + +template Host "test-generic-host" { + check_command = "hostalive" +} +