[nagios] remember to remove coloamer from nagios

This commit is contained in:
Stephen Smoogen 2019-09-24 21:59:40 +00:00 committed by Pierre-Yves Chibon
parent 61f292705c
commit e1abdfc8bd
5 changed files with 1 additions and 57 deletions

View file

@ -44,15 +44,6 @@ define servicedependency {
execution_failure_criteria w,c
}
define servicedependency {
host_name 67.203.2.67-coloamerica
service_description https
dependent_host_name 67.203.2.67-coloamerica
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
}
define servicedependency {
host_name 8.43.85.73-virthost-cc-rdu02
service_description http

View file

@ -353,7 +353,6 @@
template: src=nagios/hosts/{{item}}.j2 dest=/etc/nagios/hosts/{{item}} mode=0644 owner=root group=root
with_items:
- cloud-hosts.cfg
- coloamer-hosts.cfg
- dedicatedsolutions-hosts.cfg
- host1plus-hosts.cfg
- gateway-hosts.cfg

View file

@ -24,7 +24,7 @@ define hostgroup{
define hostgroup{
hostgroup_name routers
alias routers
members phx2-gw, ibiblio-gw, cloud-gw, coloamer-gw, dedicated-gw, host1plus-gw, internetx-gw, osuosl-gw, rdu-gw, rdu-cc-gw
members phx2-gw, ibiblio-gw, cloud-gw, dedicated-gw, host1plus-gw, internetx-gw, osuosl-gw, rdu-gw, rdu-cc-gw
}

View file

@ -1,32 +0,0 @@
{% for host in groups['all']|sort %}
{% if hostvars[host].datacenter == 'coloamer' and hostvars[host].nagios_Check_Services['ping'] == true %}
define host {
{% if vars['nagios_location'] == 'internal' %}
use defaulttemplate
{% else %}
use mincheck
{% endif %}
host_name {{ host }}
{% if hostvars[host].ansible_hostname is defined %}
alias {{ hostvars[host].ansible_hostname }}
{% else %}
alias {{ host }}
{% endif %}
{% if hostvars[host].eth0_ip is defined %}
address {{ hostvars[host].eth0_ip }}
{% elif hostvars[host].ansible_default_ipv4 is defined %}
{% if hostvars[host].ansible_default_ipv4.address is defined %}
address {{ hostvars[host].ansible_default_ipv4.address }}
{% endif %}
{% else %}
address {{ host }}
{% endif %}
{% if hostvars[host]['vmhost'] is defined %}
parents {{ hostvars[host]['vmhost'] }}
{% elif hostvars[host].datacenter is defined %}
parents coloamer-gw
{% endif %}
}
{% endif %}
{% endfor %}

View file

@ -44,20 +44,6 @@ define host {
{% endif %}
}
define host {
host_name coloamer-gw
alias coloamerica gateway
use mincheck
check_command check-host-alive4
address 67.203.2.65
{% if vars['nagios_location'] == 'internal' %}
parents phx2-gw
{% else %}
parents ibiblio-gw
{% endif %}
}
#'dedicatedsolutions'
define host {
host_name dedicated-gw