{{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}}
