From a5b6a4cfcd438fe388bce204eed3fc3e698b8a50 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Tue, 10 Jan 2017 19:18:31 +0000 Subject: [PATCH] and we put some virthosts into the staging environment but only for mincheck --- .../files/nagios/hosts/gateway-hosts.cfg | 2 +- .../templates/nagios/hosts/phx2-hosts.cfg.j2 | 65 +++++++++++++++++++ 2 files changed, 66 insertions(+), 1 deletion(-) diff --git a/roles/nagios_server/files/nagios/hosts/gateway-hosts.cfg b/roles/nagios_server/files/nagios/hosts/gateway-hosts.cfg index 0d3148a48c..ba103ca0a2 100644 --- a/roles/nagios_server/files/nagios/hosts/gateway-hosts.cfg +++ b/roles/nagios_server/files/nagios/hosts/gateway-hosts.cfg @@ -5,7 +5,7 @@ define host { host_name phx2-gw alias PHX2 Router - use defaulttemplate + use mincheck check_command check-host-alive address 10.5.126.254 } diff --git a/roles/nagios_server/templates/nagios/hosts/phx2-hosts.cfg.j2 b/roles/nagios_server/templates/nagios/hosts/phx2-hosts.cfg.j2 index d6acb55426..ddf9af9691 100644 --- a/roles/nagios_server/templates/nagios/hosts/phx2-hosts.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hosts/phx2-hosts.cfg.j2 @@ -27,6 +27,71 @@ define host { {% endif %} {% endfor %} + +## Staging virthosts +# 'virthost-comm04.qa.fedoraproject.org' +# 'virthost04.phx2.fedoraproject.org' +# 'virthost11.phx2.fedoraproject.org' +# 'virthost12.phx2.fedoraproject.org' +# 'virthost16.phx2.fedoraproject.org' +# 'virthost20.phx2.fedoraproject.org' + + +define host { + host_name virthost-comm04.qa.fedoraproject.org + alias virthost-comm04.qa.fedoraproject.org + use mincheck + check_command check-host-alive + address 10.5.131.10 + parents phx2-gw +} + +define host { + host_name virthost04.phx2.fedoraproject.org + alias virthost04.phx2.fedoraproject.org + use mincheck + check_command check-host-alive + address 10.5.126.144 + parents phx2-gw +} + +define host { + host_name virthost11.phx2.fedoraproject.org + alias virthost11.phx2.fedoraproject.org + use mincheck + check_command check-host-alive + address 10.5.126.104 + parents phx2-gw +} + +define host { + host_name virthost12.phx2.fedoraproject.org + alias virthost12.phx2.fedoraproject.org + use mincheck + check_command check-host-alive + address 10.5.126.152 + parents phx2-gw +} + +define host { + host_name virthost16.phx2.fedoraproject.org + alias virthost16.phx2.fedoraproject.org + use mincheck + check_command check-host-alive + address 10.5.126.156 + parents phx2-gw +} + +define host { + host_name virthost20.phx2.fedoraproject.org + alias virthost20.phx2.fedoraproject.org + use mincheck + check_command check-host-alive + address 10.5.126.160 + parents phx2-gw +} + + {% else %} {% for host in groups['all'] %} {% if hostvars[host].datacenter == 'phx2' %}