Filter the mincheckgrp hostgroup

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard
2025-06-23 10:43:38 +02:00
parent 3ab4e21dbc
commit 72881d29d2

View File

@@ -33,7 +33,7 @@ define hostgroup{
define hostgroup{
hostgroup_name mincheckgrp
alias mincheckgrp
members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Check_Services['nrpe'] != true and hostvars[host].nagios_Can_Connect == true %}{{host}}, {% endif %}{% endfor %}
members {% for host in groups['all']|sort %}{% if hostvars[host].datacenter == datacenter and hostvars[host].nagios_Check_Services['nrpe'] != true and hostvars[host].nagios_Can_Connect == true %}{{host}}, {% endif %}{% endfor %}
}