diff --git a/roles/nagios_server/templates/nagios/hosts/gateway-hosts.cfg.j2 b/roles/nagios_server/templates/nagios/hosts/gateway-hosts.cfg.j2 index b004ac774b..708e989d5c 100644 --- a/roles/nagios_server/templates/nagios/hosts/gateway-hosts.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hosts/gateway-hosts.cfg.j2 @@ -12,8 +12,10 @@ define host { {% else %} address 66.187.228.248 {% endif %} +{% if vars['nagios_location'] == 'external' %} + parents ibiblio-gw +{% endif %} - address } #'ibiblio' @@ -25,7 +27,6 @@ define host { address 152.19.134.129 {% if vars['nagios_location'] == 'internal' %} parents phx2-gw -{% else %} {% endif %} }