From 1a52301d02f8b83ca46f14749efa9970796d3ddd Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Feb 22 2020 20:52:51 +0000 Subject: nagios: fix up aws group template Signed-off-by: Kevin Fenzi --- diff --git a/roles/nagios_server/templates/nagios/hosts/aws-hosts.cfg.j2 b/roles/nagios_server/templates/nagios/hosts/aws-hosts.cfg.j2 index 63b49a9..4018a74 100644 --- a/roles/nagios_server/templates/nagios/hosts/aws-hosts.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hosts/aws-hosts.cfg.j2 @@ -1,12 +1,6 @@ {% for host in groups['ec2']|sort %} -{% if hostvars[host].nagios_Check_Services['ping'] %} define host { -{% if vars['nagios_location'] == 'internal' %} - use aws -{% else %} - use aws -{% endif %} - + use aws host_name {{ host }} {% if hostvars[host].ansible_hostname is defined %} alias {{ hostvars[host].ansible_hostname }} @@ -15,5 +9,4 @@ define host { {% endif %} address {{ host }} } -{% endif %} {% endfor %}