summaryrefslogtreecommitdiffstats
path: root/test/config/templates.conf
blob: 4a15bb8012db5472c87b72ea5830732b352243ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/**
 * test templates
 */

template Service "test-generic-service" {
  max_check_attempts = 3
  check_interval = 5m
  retry_interval = 1m
}

template Host "test-generic-host" {
  check_command = "hostalive"
}

template User "test-generic-user" {

}

template Notification "test-mail-host-notification" {
  command = "mail-host-notification"

  states = [ Up, Down ]
  types = [ Problem, Acknowledgement, Recovery, Custom,
            FlappingStart, FlappingEnd,
            DowntimeStart, DowntimeEnd, DowntimeRemoved ]

  period = "test-24x7"

  user_groups = [ "test-icingaadmins" ]
}

/**
 * Provides default settings for service notifications.
 * By convention all service notifications should import
 * this template.
 */
template Notification "test-mail-service-notification" {
  command = "mail-service-notification"

  states = [ OK, Warning, Critical, Unknown ]
  types = [ Problem, Acknowledgement, Recovery, Custom,
            FlappingStart, FlappingEnd,
            DowntimeStart, DowntimeEnd, DowntimeRemoved ]

  period = "test-24x7"

  user_groups = [ "test-icingaadmins" ]
}


/* users */

object User "test-icingaadmin" {
  import "test-generic-user"

  display_name = "Test Icinga 2 Admin"
  groups = [ "test-icingaadmins" ]

  email = "icinga@localhost"
}

object UserGroup "test-icingaadmins" {
  display_name = "Test Icinga 2 Admin Group"
}

/* timeperiods */
object TimePeriod "test-24x7" {
  display_name = "Test Icinga 2 24x7 TimePeriod"

  ranges = {
    "monday"    = "00:00-24:00"
    "tuesday"   = "00:00-24:00"
    "wednesday" = "00:00-24:00"
    "thursday"  = "00:00-24:00"
    "friday"    = "00:00-24:00"
    "saturday"  = "00:00-24:00"
    "sunday"    = "00:00-24:00"
  }
}