ansible/roles/nrpe/templates/nrpe_local.cfg.j2

18 lines
597 B
Django/Jinja

{% if nrpe_server_allowed_hosts is defined %}
# Allowed_hosts
allowed_hosts={{ nrpe_server_allowed_hosts | join(',') }}
{% endif %}
{% if nrpe_command is defined %}
# Commands
{% for command in nrpe_command %}
command[{{ command }}]={{ nrpe_server_plugins_dir }}/{{ nrpe_command[command]["script"] }} {{ nrpe_command[command]["option"] }}
{% endfor %}
{% endif %}
{% if nrpe_command_extra is defined %}
# Extra Commands
{% for command in nrpe_command_extra %}
command[{{ command }}]={{ nrpe_command_extra[command]["script"] }} {{ nrpe_command_extra[command]["option"] }}
{% endfor %}
{% endif %}