Browse Source

roles/icinga2-monitoring: allow remote ssh agents

python3
Zolfa 4 years ago
parent
commit
905928cd9c
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      roles/icinga2-monitoring/templates/host.conf.j2

+ 4
- 0
roles/icinga2-monitoring/templates/host.conf.j2 View File

@ -6,6 +6,10 @@ object Host "{{ item.key }}" {
vars.os = "Linux"
vars.sla = "24x7"
{% if ('agent_type' in item.value) and (item.value.agent_type == 'ssh') %}
vars.agent_type = "ssh"
{% endif %}
{% if 'vhosts' in item.value %}
{% for vhost in item.value.vhosts %}
vars.http_vhosts["{{ vhost }}"] = {


Loading…
Cancel
Save