From 24ecee5ebedb269129cfde787bed2fa14fce346c Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 16 Feb 2026 10:02:47 -0800 Subject: [PATCH] nagios: try and fix the proxy03/14 problem with missing host because they are in rdu3-iso instead of rdu3 Signed-off-by: Kevin Fenzi --- roles/nagios_server/templates/nagios/hosts/rdu3-hosts.cfg.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/nagios_server/templates/nagios/hosts/rdu3-hosts.cfg.j2 b/roles/nagios_server/templates/nagios/hosts/rdu3-hosts.cfg.j2 index f436fd3848..129dcf467c 100644 --- a/roles/nagios_server/templates/nagios/hosts/rdu3-hosts.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hosts/rdu3-hosts.cfg.j2 @@ -1,5 +1,5 @@ {% for host in groups['all']|sort %} -{% if hostvars[host].datacenter == 'rdu3' and hostvars[host].nagios_Can_Connect == true %} +{% if hostvars[host].datacenter == 'rdu3' or if hostvars[host].datacenter == 'rdu3-iso' and hostvars[host].nagios_Can_Connect == true %} define host { {% if hostvars[host].nagios_Check_Services['nrpe'] == true %} use defaulttemplate @@ -26,4 +26,4 @@ define host { {% endif %} } {% endif %} -{% endfor %} \ No newline at end of file +{% endfor %}