icinga2/test/config/5872.conf

55 lines
1.1 KiB
Plaintext

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