mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 05:41:35 +01:00
35 lines
736 B
Django/Jinja
35 lines
736 B
Django/Jinja
object Host "async_icinga" {
|
|
|
|
import "generic-host"
|
|
|
|
address = "localhost"
|
|
name = "async_icinga"
|
|
vars.async = "true"
|
|
vars.linux = "true"
|
|
|
|
vars.ssl_address = "async-icinga.atlantishq.de"
|
|
vars.ssl_port = "443"
|
|
|
|
check_command = "http"
|
|
|
|
max_check_attempts = 5
|
|
retry_interval = 1m
|
|
|
|
# TODO: conditional template in pyansible
|
|
# vars.notification["mail"] = {
|
|
# groups = ["icingaadmins"]
|
|
# }
|
|
|
|
}
|
|
|
|
{% for service in asyncIcingaConf.keys() %}
|
|
apply Service "{{ service }}" {
|
|
import "generic-service"
|
|
check_command = "gateway"
|
|
vars.protocol = "https"
|
|
vars.host = "async-icinga.atlantishq.de"
|
|
vars.service_name = "{{ service }}"
|
|
assign where host.name == "async_icinga"
|
|
}
|
|
{% endfor %}
|