web-availability-discovery.j2 620 B

12345678910111213
  1. {% if ansible_prolog -%}
  2. {% from 'templates/ansible/prolog.j2' import prolog with context %}
  3. {{ prolog() }}
  4. {% endif -%}
  5. {% if zabbix_plugins_config.discovery.web.availability is defined %}
  6. {% for key in zabbix_plugins_config.discovery.web.availability %}
  7. {{ key }}:
  8. url: '{{ zabbix_plugins_config.discovery.web.availability[key]['url'] }}'
  9. status: {{ zabbix_plugins_config.discovery.web.availability[key]['status'] }}
  10. timeout: {{ zabbix_plugins_config.discovery.web.availability[key]['timeout'] }}
  11. regexp: '{{ zabbix_plugins_config.discovery.web.availability[key]['regexp'] }}'
  12. {% endfor %}
  13. {% endif %}