ansible/roles/nagios_server/templates/nagios/hosts/gateway-hosts.cfg.j2

126 lines
3.8 KiB
Django/Jinja

# TODO: depending on where this file is being put the parents need to
# change to the nocs parent. Also hosts which aren't reachable should
# be not defined on the external nagios.
#
#'ibiblio'
define host {
host_name ibiblio-gw
alias ibiblio gateway
use mincheck
check_command check-host-alive4
address 152.19.134.129
parents iad2-gw
}
#'dedicatedsolutions'
define host {
host_name dedicated-gw
alias dedicated solutions gateway
use mincheck
check_command check-host-alive4
address 67.219.144.65
{% if vars['nagios_location'] == 'iad2_internal' %}
parents iad2-gw
{% elif vars['nagios_location'] == 'external' %}
address 66.187.228.248
parents ibiblio-gw
{% endif %}
}
#'host1plus'
define host {
host_name host1plus-gw
alias host1plus gateway
use mincheck
check_command check-host-alive4
address 185.141.164.1
{% if vars['nagios_location'] == 'iad2_internal' %}
parents iad2-gw
{% elif vars['nagios_location'] == 'external' %}
address 66.187.228.248
parents ibiblio-gw
{% endif %}
}
#'internetx'
define host {
host_name internetx-gw
alias internetx gateway
use mincheck
check_command check-host-alive4
address 85.236.55.1
{% if vars['nagios_location'] == 'iad2_internal' %}
parents iad2-gw
{% elif vars['nagios_location'] == 'external' %}
address 66.187.228.248
parents ibiblio-gw
{% endif %}
}
# 'osuosl'
define host {
host_name osuosl-gw
alias osuosl gateway
use mincheck
check_command check-host-alive4
address 140.211.169.193
{% if vars['nagios_location'] == 'iad2_internal' %}
parents iad2-gw
{% elif vars['nagios_location'] == 'external' %}
address 66.187.228.248
parents ibiblio-gw
{% endif %}
}
#'rdu'
define host {
host_name rdu-gw
alias rdu gateway
use mincheck
check_command check-host-alive4
address 209.132.190.196
{% if vars['nagios_location'] == 'iad2_internal' %}
parents iad2-gw
{% elif vars['nagios_location'] == 'external' %}
address 66.187.228.248
parents ibiblio-gw
{% endif %}
}
#'rdu-cc'
define host {
host_name rdu-cc-gw
alias rdu community cage gateway
use mincheck
check_command check-host-alive4
address 8.43.85.254
{% if vars['nagios_location'] == 'iad2_internal' %}
parents iad2-gw
{% elif vars['nagios_location'] == 'external' %}
address 66.187.228.248
parents ibiblio-gw
{% endif %}
}
#'iad2'
define host {
host_name iad2-gw
alias iad2 cage gateway
use mincheck
check_command check-host-alive4
{% if vars['nagios_location'] == 'iad2_internal' %}
address 10.3.163.254
{% elif vars['nagios_location'] == 'external' %}
address 66.187.228.248
parents ibiblio-gw
{% endif %}
}