]> granicus.if.org Git - icinga2/blob - test/config/6479.conf
Merge pull request #6544 from gunnarbeutner/fix/deprecated-strstream-header
[icinga2] / test / config / 6479.conf
1
2 object EventCommand "6479-handle" {
3   command = "echo \"event handler triggered.\""
4 }
5
6 object NotificationCommand "6479-notification" {
7   command = "echo \"notification triggered.\""
8 }
9
10 object HostGroup "6479-bar" {
11   assign where match("6479-keks*", host.name)
12 }
13
14 object Host "6479-keks" {
15   import "test-generic-host"
16   event_command = "6479-handle"
17   address = "1.2.3.4"
18 }
19
20 apply Service "6479-foo" {
21   import "test-generic-service"
22   check_command = "ping4"
23   event_command = "6479-handle"
24   assign where "6479-bar" in host.groups
25 }
26
27 apply Notification "6479-host-notification" to Host {
28   import "test-mail-host-notification"
29   command = "6479-notification"
30   assign where "6479-bar" in host.groups
31 }
32
33 apply Notification "6479-service-notification" to Service {
34   import "test-mail-service-notification"
35   command = "6479-notification"
36   assign where "6479-bar" in host.groups
37 }
38
39 object ServiceGroup "6479-bar" {
40   assign where service.name == "6479-foo"
41 }
42
43
44