see if nrpe works in cloud hosts with this syntax

Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
Rick Elrod 2018-06-27 22:07:49 +00:00
parent 25487e7b99
commit ed343c68e0

View file

@ -2,7 +2,7 @@
{% if host.startswith('copr') and nagios_location == 'external' %}
{% else %}
define host {
{% if hostvars[host].nagios_Check_Services['nrpe'] == true and nagios_location == 'internal' %}
{% if hostvars[host]['nagios_Check_Services']['nrpe'] and nagios_location == 'internal' %}
use defaulttemplate
{% else %}
use mincheck