Files
athq-vm-management/templates/icinga_host.conf.j2

33 lines
692 B
Django/Jinja

object Host "{{ hostname }}" {
import "generic-host"
name = "{{ hostname }}"
address = "{{ address }}"
vars.remote = "true"
vars.linux = "true"
max_check_attempts = 7
retry_interval = 1m
# TODO condition template?
# vars.notification["mail"] = {
# groups = ["icingaadmins"]
# }
{% for website_name, url in websites %}
vars.http_vhosts["{{ website_name }}"] = {
{% if url %}
http_uri = "{{ url }}"
{% else %}
http_uri = "/"
{% endif %}
http_address = "{{ website_name }}"
http_ssl = true
http_onredirect = "follow"
}
{% endfor %}
}