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, check_expect in websites %} vars.http_vhosts["{{ website_name }}"] = { {% if url %} http_uri = "{{ url }}" {% else %} http_uri = "/" {% endif %} http_address = "{{ website_name }}" http_vhost = "{{ website_name }}" http_sni = true http_ssl = true http_onredirect = "follow" {% if check_expect %} http_expect = "{{ ','.join(check_expect) }}" {% endif %} } {% endfor %} }