]> granicus.if.org Git - icinga2/blob - test/config/5872.conf
Merge pull request #6999 from Icinga/bugfix/compiler-warnings
[icinga2] / test / config / 5872.conf
1
2 object HostGroup "5872-windows-servers"{
3   display_name = "5872-windows-servers"
4   assign where match("5872-*", host.name)
5 }
6
7 apply Service "5872-ping4" {
8   import "test-generic-service"
9   check_command = "ping4"
10   assign where match("5872-*", host.name)
11 }
12
13 object Host "5872-server" {
14   import "test-generic-host"
15   address = "192.168.1.5",
16 }
17
18 object Host "5872-pc" {
19   import "test-generic-host"
20   address = "192.168.1.101",
21 }
22
23 object Host "5872-router" {
24   import "test-generic-host"
25   address = "192.168.1.1",
26 }
27
28 object Host "5872-switch" {
29   import "test-generic-host"
30   address = "192.168.1.2",
31 }
32
33 apply Dependency "5872-host-switch" to Host {
34   parent_host_name = "5872-router"
35   disable_checks = true
36   assign where host.name == "5872-switch"
37 }
38
39 apply Dependency "5872-host-pc" to Host {
40   parent_host_name = "5872-switch"
41   disable_checks = true
42   assign where host.name == "5872-pc"
43 }
44
45 apply Dependency "5872-host-server" to Host {
46   parent_host_name = "5872-switch"
47   disable_checks = true
48   assign where host.name == "5872-server"
49 }
50
51 apply Dependency "5872-service-switch" to Service {
52   parent_host_name = "5872-router"
53   parent_service_name = "5872-ping4"
54   disable_checks = true
55   assign where host.name == "5872-switch"
56 }
57
58 apply Dependency "5872-service-pc" to Service {
59   parent_host_name = "5872-switch"
60   parent_service_name = "5872-ping4"
61   disable_checks = true
62   assign where host.name == "5872-pc"
63 }
64
65 apply Dependency "5872-service-server" to Service {
66   parent_host_name = "5872-switch"
67   parent_service_name = "5872-ping4"
68   states = [ Warning, Critical ]
69   disable_checks = true
70   assign where host.name == "5872-server"
71 }
72