put in tests to remove nagios from trying to talk to iad2 boxes
This commit is contained in:
parent
d063026722
commit
3ba920f5bc
7 changed files with 32 additions and 4 deletions
|
@ -130,6 +130,9 @@ phx2_external:
|
||||||
- secondary01.fedoraproject.org
|
- secondary01.fedoraproject.org
|
||||||
- stg.fedoraproject.org
|
- stg.fedoraproject.org
|
||||||
|
|
||||||
|
iad2_external:
|
||||||
|
- proxy-iad01.fedoraproject.org
|
||||||
|
|
||||||
# When you have a group which comes up with empty members in all.cfg, it
|
# When you have a group which comes up with empty members in all.cfg, it
|
||||||
# is because it contains all hosts which aren't pinganble. You may want
|
# is because it contains all hosts which aren't pinganble. You may want
|
||||||
# to add that group to this list. Other items on this list are ones
|
# to add that group to this list. Other items on this list are ones
|
||||||
|
|
|
@ -121,3 +121,19 @@ define host {
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#'iad2'
|
||||||
|
define host {
|
||||||
|
host_name iad2-gw
|
||||||
|
alias iad2 cage gateway
|
||||||
|
use mincheck
|
||||||
|
check_command check-host-alive4
|
||||||
|
address 209.132.185.254
|
||||||
|
{% if vars['nagios_location'] == 'internal' %}
|
||||||
|
parents phx2-gw
|
||||||
|
{% else %}
|
||||||
|
parents ibiblio-gw
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
{% for host in vars["iad2_external"]|sort %}
|
||||||
|
define host {
|
||||||
|
host_name {{ host }}
|
||||||
|
alias {{ host }}
|
||||||
|
use mincheck
|
||||||
|
address {{ host }}
|
||||||
|
parents iad2-gw
|
||||||
|
}
|
||||||
|
{% endfor %}
|
|
@ -1,6 +1,6 @@
|
||||||
define servicegroup {
|
define servicegroup {
|
||||||
servicegroup_name bodhi
|
servicegroup_name bodhi
|
||||||
alias Bodhi
|
alias Bodhi
|
||||||
members {% for host in groups['proxies'] %}{{host}}, http-bodhi2 {% if not loop.last %} , {% endif %} {% endfor %}
|
members {% for host in groups['proxies']|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-bodhi2 {% if not loop.last %} , {% endif %}{% endif %} {% endfor %}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
define servicegroup {
|
define servicegroup {
|
||||||
servicegroup_name fas
|
servicegroup_name fas
|
||||||
alias Fedora Account System
|
alias Fedora Account System
|
||||||
members {% for host in groups['proxies'] %}{{host}}, http-accounts, {% endfor %}{% for host in groups['fas'] %}{{host}}, http-accounts, {% endfor %} db-fas01.phx2.fedoraproject.org,Check FAS DB
|
members {% for host in groups['proxies']|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-accounts, {% endif %}{% endfor %}{% for host in groups['fas'] %}{{host}}, http-accounts, {% endfor %} db-fas01.phx2.fedoraproject.org,Check FAS DB
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
define servicegroup {
|
define servicegroup {
|
||||||
servicegroup_name fp-wiki
|
servicegroup_name fp-wiki
|
||||||
alias Fedora Project Wiki
|
alias Fedora Project Wiki
|
||||||
members {% for host in groups['proxies'] %}{{host}}, http-fedoraproject.org-wiki , {% endfor %}{% for host in groups['proxies'] %}{{host}}, http-fedoraproject.org-wiki-non-cached {% if not loop.last %} , {% endif %} {% endfor %}
|
members {% for host in groups['proxies']|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-fedoraproject.org-wiki , {% endfor %}{% for host in groups['proxies'|sort] %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-fedoraproject.org-wiki-non-cached {% if not loop.last %} , {% endif %} {% endif %}{% endfor %}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
define servicegroup {
|
define servicegroup {
|
||||||
servicegroup_name mirrorlist
|
servicegroup_name mirrorlist
|
||||||
alias Mirrorlist
|
alias Mirrorlist
|
||||||
members {% for host in groups['proxies'] %}{{host}}, http-mirrors.fedoraproject.org-mirrorlist {% if not loop.last %} , {% endif %} {% endfor %}
|
members {% for host in groups['proxies']|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-mirrors.fedoraproject.org-mirrorlist{% if not loop.last %} , {% endif %}{% endif %} {% endfor %}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue