From ed343c68e09249f817182f3c0c69bcb4bc1160d0 Mon Sep 17 00:00:00 2001 From: Rick Elrod Date: Wed, 27 Jun 2018 22:07:49 +0000 Subject: [PATCH] see if nrpe works in cloud hosts with this syntax Signed-off-by: Rick Elrod --- roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 b/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 index 639ae9c70c..2afcf5c70e 100644 --- a/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 @@ -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