web-availability-discovery.j2 597 B

1234567891011121314
  1. {% if ansible_controlled is defined and ansible_controlled != "" %}
  2. #
  3. # {{ ansible_controlled }}
  4. #
  5. {% endif %}
  6. {% if zabbix_plugins_config.discovery.web is defined %}
  7. {% for key in zabbix_plugins_config.discovery.web.availability %}
  8. {{ key }}:
  9. url: '{{ zabbix_plugins_config.discovery.web.availability[key]['url'] }}'
  10. status: {{ zabbix_plugins_config.discovery.web.availability[key]['status'] }}
  11. timeout: {{ zabbix_plugins_config.discovery.web.availability[key]['timeout'] }}
  12. regexp: '{{ zabbix_plugins_config.discovery.web.availability[key]['regexp'] }}'
  13. {% endfor %}
  14. {% endif %}