summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/nagios_server/templates/nagios/hosts/staging-hosts.cfg.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/nagios_server/templates/nagios/hosts/staging-hosts.cfg.j2 b/roles/nagios_server/templates/nagios/hosts/staging-hosts.cfg.j2
index 256809c85..168c3d476 100644
--- a/roles/nagios_server/templates/nagios/hosts/staging-hosts.cfg.j2
+++ b/roles/nagios_server/templates/nagios/hosts/staging-hosts.cfg.j2
@@ -1,7 +1,11 @@
{% for host in groups['all'] %}
{% if hostvars[host].datacenter == 'staging' %}
define host {
+{% if hostvars[host].nagios_Check_Services['nrpe'] == true %}
use defaulttemplate
+{% else %}
+ use mincheck
+{% endif %}
host_name {{ host }}
{% if hostvars[host].ansible_hostname is defined %}
alias {{ hostvars[host].ansible_hostname }}