]> granicus.if.org Git - icinga2/commitdiff
Import test config for existing issues.
authorMichael Friedrich <Michael.Friedrich@netways.de>
Thu, 1 May 2014 23:03:03 +0000 (01:03 +0200)
committerMichael Friedrich <Michael.Friedrich@netways.de>
Thu, 1 May 2014 23:03:03 +0000 (01:03 +0200)
test/config/5872.conf [new file with mode: 0644]
test/config/5912.conf.dis [new file with mode: 0644]
test/config/6105.conf [new file with mode: 0644]
test/config/README [new file with mode: 0644]
test/config/templates.conf [new file with mode: 0644]

diff --git a/test/config/5872.conf b/test/config/5872.conf
new file mode 100644 (file)
index 0000000..2dab7c1
--- /dev/null
@@ -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 (file)
index 0000000..0366b06
--- /dev/null
@@ -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 (file)
index 0000000..32a8036
--- /dev/null
@@ -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 (file)
index 0000000..5e8385f
--- /dev/null
@@ -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 (file)
index 0000000..983062b
--- /dev/null
@@ -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"
+}
+