try to make this work in iad2

This commit is contained in:
Stephen Smoogen 2020-06-09 10:45:02 -04:00
parent 92e1344a1e
commit bcda2606fe
3 changed files with 6 additions and 8 deletions

View file

@ -9,9 +9,9 @@ define servicedependency {
}
define servicedependency {
host_name 209.132.181.16-phx2
host_name 38.145.60.20-iad2
service_description https
dependent_host_name 209.132.181.16-phx2
dependent_host_name 38.145.60.20-iad2
dependent_service_description bodhi, elections, docs.fedoraproject.org, mirrors.fedoraproject.org - mirrorlist, mirrors.fedoraproject.org - publiclist, start.fedoraproject.org, accounts, fedoraproject.org, fedoraproject.org - wiki
notification_failure_criteria w,c
execution_failure_criteria w,c

View file

@ -1,5 +1,5 @@
define service {
host_name bastion02.iad2.fedoraproject.org, bastion01.phx2.fedoraproject.org, sundries01.phx2.fedoraproject.org, sundries02.phx2.fedoraproject.org, wiki01.phx2.fedoraproject.org, wiki02.phx2.fedoraproject.org
host_name bastion01.iad2.fedoraproject.org, sundries01.iad2.fedoraproject.org, wiki01.iad2.fedoraproject.org
service_description nrpe
check_command test_nrpe
max_check_attempts 2

View file

@ -140,12 +140,10 @@ define host {
alias iad2 cage gateway
use mincheck
check_command check-host-alive4
address 209.132.185.254
{% if vars['nagios_location'] == 'phx2_internal' %}
parents phx2-gw
{% elif vars['nagios_location'] == 'iad2_internal' %}
parents iad2-gw
{% if vars['nagios_location'] == 'iad2_internal' %}
address 10.3.163.254
{% else %}
address 209.132.185.254
parents ibiblio-gw
{% endif %}