blob: e4c6da67d9932afbda0cd77975dc1195ff4f6af5 (
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
|
{{range .GenericPrefixes}}
object CheckCommand "{{.}}-checkcommand" {
command = ["true"]
}
object EventCommand "{{.}}-eventcommand" {
command = ["true"]
}
object NotificationCommand "{{.}}-notificationcommand" {
command = ["true"]
}
object Endpoint "{{.}}-endpoint" {}
object Zone "{{.}}-zone" {
parent = "master"
endpoints = ["{{.}}-endpoint"]
}
object Host "{{.}}-host" {
check_command = "hostalive"
}
object HostGroup "{{.}}-hostgroup" {}
object Service "{{.}}-service" {
host_name = "{{.}}-host"
check_command = "dummy"
}
object ServiceGroup "{{.}}-servicegroup" {}
object TimePeriod "{{.}}-timeperiod" {}
object User "{{.}}-user" {}
object UserGroup "{{.}}-usergroup" {}
{{end}}
{{range .NotificationUserGroups}}
object UserGroup "{{.}}" {
}
{{end}}
{{range $user, $groups := .NotificationUsers}}
object User "{{$user}}" {
groups = [
{{range $group, $_ := $groups}}
"{{$group}}",
{{end}}
]
}
{{end}}
|