feat: generate icinga2 service conf for async

This commit is contained in:
2023-01-05 20:43:49 +01:00
parent 12992050f3
commit fe66cb713f
2 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
object Host "AsyncIcinga" {
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
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 %}