mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-19 19:46:38 +08:00
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 <kevin@scrye.com>
This commit is contained in:
@@ -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 %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user