2 object EventCommand "6479-handle" {
3 command = "echo \"event handler triggered.\""
6 object NotificationCommand "6479-notification" {
7 command = "echo \"notification triggered.\""
10 object HostGroup "6479-bar" {
11 assign where match("6479-keks*", host.name)
14 object Host "6479-keks" {
15 import "test-generic-host"
16 event_command = "6479-handle"
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
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
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
39 object ServiceGroup "6479-bar" {
40 assign where service.name == "6479-foo"