diff --git a/roles/nagios/client/templates/nrpe.cfg.j2 b/roles/nagios/client/templates/nrpe.cfg.j2 index 64e8a2aa6d..9d582bbc73 100644 --- a/roles/nagios/client/templates/nrpe.cfg.j2 +++ b/roles/nagios/client/templates/nrpe.cfg.j2 @@ -79,7 +79,11 @@ nrpe_group=nrpe # NOTE: This option is ignored if NRPE is running under either inetd or xinetd +{% if env == "staging" %} +allowed_hosts=10.5.126.2,10.5.126.41,192.168.1.10,192.168.1.20,209.132.181.35 +{% else %} allowed_hosts=10.5.126.41,192.168.1.10,192.168.1.20,209.132.181.35 +{% endif %} diff --git a/roles/nagios_client/templates/nrpe.cfg.j2 b/roles/nagios_client/templates/nrpe.cfg.j2 index 64e8a2aa6d..e16e915e3c 100644 --- a/roles/nagios_client/templates/nrpe.cfg.j2 +++ b/roles/nagios_client/templates/nrpe.cfg.j2 @@ -78,9 +78,11 @@ nrpe_group=nrpe # # NOTE: This option is ignored if NRPE is running under either inetd or xinetd - +{% if env == "staging" %} +allowed_hosts=10.5.126.2,10.5.126.41,192.168.1.10,192.168.1.20,209.132.181.35 +{% else %} allowed_hosts=10.5.126.41,192.168.1.10,192.168.1.20,209.132.181.35 - +{% endif %} # COMMAND ARGUMENT PROCESSING