2 object EventCommand "5927-handle" {
3 command = "echo \"event handler triggered.\""
6 object NotificationCommand "5927-notification" {
7 command = "echo \"notification triggered.\""
10 object HostGroup "5927-bar" {
11 assign where match("5927-keks*", host.name)
14 object Host "5927-keks" {
15 import "test-generic-host"
16 event_command = "5927-handle"
20 apply Service "5927-foo" {
21 import "test-generic-service"
22 check_command = "ping4"
23 event_command = "5927-handle"
24 assign where "5927-bar" in host.groups
27 apply Notification "5927-host-notification" to Host {
28 import "test-mail-host-notification"
29 command = "5927-notification"
30 assign where "5927-bar" in host.groups
33 apply Notification "5927-service-notification" to Service {
34 import "test-mail-service-notification"
35 command = "5927-notification"
36 assign where "5927-bar" in host.groups
39 object ServiceGroup "5927-bar" {
40 assign where service.name == "5927-foo"