Import test config for existing issues.

This commit is contained in:
Michael Friedrich 2014-05-02 01:03:03 +02:00
parent 2ad2e7f6db
commit c4a8678963
5 changed files with 107 additions and 0 deletions

54
test/config/5872.conf Normal file
View File

@ -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"
}

14
test/config/5912.conf.dis Normal file
View File

@ -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",
}

23
test/config/6105.conf Normal file
View File

@ -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"
}

2
test/config/README Normal file
View File

@ -0,0 +1,2 @@
Contains various test configuration for fixed issues.
May be used for regression tests too.

View File

@ -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"
}