mirror of
https://github.com/Icinga/icingadb.git
synced 2026-02-03 20:40:34 -05:00
54 lines
942 B
Text
54 lines
942 B
Text
{{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}}
|