]> granicus.if.org Git - icinga2/blob - test/config/templates.conf
Merge pull request #6999 from Icinga/bugfix/compiler-warnings
[icinga2] / test / config / templates.conf
1 /**
2  * test templates
3  */
4
5 template Service "test-generic-service" {
6   max_check_attempts = 3
7   check_interval = 5m
8   retry_interval = 1m
9 }
10
11 template Host "test-generic-host" {
12   check_command = "hostalive"
13 }
14
15 template User "test-generic-user" {
16
17 }
18
19 template Notification "test-mail-host-notification" {
20   command = "mail-host-notification"
21
22   states = [ Up, Down ]
23   types = [ Problem, Acknowledgement, Recovery, Custom,
24             FlappingStart, FlappingEnd,
25             DowntimeStart, DowntimeEnd, DowntimeRemoved ]
26
27   period = "test-24x7"
28
29   user_groups = [ "test-icingaadmins" ]
30 }
31
32 /**
33  * Provides default settings for service notifications.
34  * By convention all service notifications should import
35  * this template.
36  */
37 template Notification "test-mail-service-notification" {
38   command = "mail-service-notification"
39
40   states = [ OK, Warning, Critical, Unknown ]
41   types = [ Problem, Acknowledgement, Recovery, Custom,
42             FlappingStart, FlappingEnd,
43             DowntimeStart, DowntimeEnd, DowntimeRemoved ]
44
45   period = "test-24x7"
46
47   user_groups = [ "test-icingaadmins" ]
48 }
49
50
51 /* users */
52
53 object User "test-icingaadmin" {
54   import "test-generic-user"
55
56   display_name = "Test Icinga 2 Admin"
57   groups = [ "test-icingaadmins" ]
58
59   email = "icinga@localhost"
60 }
61
62 object UserGroup "test-icingaadmins" {
63   display_name = "Test Icinga 2 Admin Group"
64 }
65
66 /* timeperiods */
67 object TimePeriod "test-24x7" {
68   display_name = "Test Icinga 2 24x7 TimePeriod"
69
70   ranges = {
71     "monday"    = "00:00-24:00"
72     "tuesday"   = "00:00-24:00"
73     "wednesday" = "00:00-24:00"
74     "thursday"  = "00:00-24:00"
75     "friday"    = "00:00-24:00"
76     "saturday"  = "00:00-24:00"
77     "sunday"    = "00:00-24:00"
78   }
79 }
80