use a different syntax for service groups to clean up phx2 ness
This commit is contained in:
parent
df9fcb477d
commit
d82e99371c
8 changed files with 23 additions and 25 deletions
|
@ -0,0 +1,5 @@
|
||||||
|
define servicegroup {
|
||||||
|
servicegroup_name freemedia
|
||||||
|
alias FreeMedia
|
||||||
|
}
|
||||||
|
|
|
@ -435,11 +435,9 @@
|
||||||
template: src=nagios/servicegroups/{{item}}.j2 dest=/etc/nagios/servicegroups/{{item}} mode=0644 owner=root group=root
|
template: src=nagios/servicegroups/{{item}}.j2 dest=/etc/nagios/servicegroups/{{item}} mode=0644 owner=root group=root
|
||||||
with_items:
|
with_items:
|
||||||
- bodhi.cfg
|
- bodhi.cfg
|
||||||
- freemedia.cfg
|
|
||||||
- mgmt-https.cfg
|
- mgmt-https.cfg
|
||||||
- fas.cfg
|
- fas.cfg
|
||||||
- fp-wiki.cfg
|
- fp-wiki.cfg
|
||||||
- ipa.cfg
|
|
||||||
- mgmt-http.cfg
|
- mgmt-http.cfg
|
||||||
- mirrorlist.cfg
|
- mirrorlist.cfg
|
||||||
when: nagios_location == "internal"
|
when: nagios_location == "internal"
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
define servicegroup {
|
|
||||||
servicegroup_name freemedia
|
|
||||||
alias FreeMedia
|
|
||||||
members {% for host in groups['sundries']|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-freemedia-internal{% if not loop.last %}, {% endif %}{% endif %} {% endfor %}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
define servicegroup {
|
define servicegroup {
|
||||||
servicegroup_name mgmt-http
|
servicegroup_name mgmt-http
|
||||||
alias mgmt interfaces on http
|
alias mgmt interfaces on http
|
||||||
members {% for host in vars['phx2_management_hosts'] %}{{ host }},{{ host }}-http {% if not loop.last %} , {% endif %}{% endfor %}
|
members {% for host in vars['phx2_management_hosts'] %}{{ host }},{{ host }}-http {% if not loop.last %} , {% endif %}{% endfor %}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
define service {
|
define service {
|
||||||
host_name {% for host in groups['ipa'] %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}},{% endif%}{% endfor %}
|
host_name {% for host in groups['ipa'] %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}},{% endif%}{% endfor %}
|
||||||
|
|
||||||
service_description IPA Replication Status
|
service_description IPA Replication Status
|
||||||
check_command check_by_nrpe!check_ipa_replication
|
check_command check_by_nrpe!check_ipa_replication
|
||||||
use lighttemplate
|
use lighttemplate
|
||||||
|
|
|
@ -1,20 +1,19 @@
|
||||||
# HTTP
|
# HTTP
|
||||||
|
|
||||||
{% for host in vars['phx2_management_hosts'] %}
|
{% for host in vars['phx2_management_hosts'] %}
|
||||||
define service {
|
define service {
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
service_description {{ host }}-http
|
service_description {{ host }}-http
|
||||||
check_command check_http!{{ host }}
|
check_command check_http!{{ host }}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
}
|
}
|
||||||
|
|
||||||
define service {
|
define service {
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
service_description {{ host }}-https
|
service_description {{ host }}-https
|
||||||
check_command check_https!{{ host }}
|
check_command check_https!{{ host }}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ define service {
|
||||||
service_description http-mirrors.fedoraproject.org-mirrorlist
|
service_description http-mirrors.fedoraproject.org-mirrorlist
|
||||||
check_command check_website!mirrors.fedoraproject.org!/mirrorlist?repo=rawhide&arch=x86_64&country=global!development
|
check_command check_website!mirrors.fedoraproject.org!/mirrorlist?repo=rawhide&arch=x86_64&country=global!development
|
||||||
use websitetemplate
|
use websitetemplate
|
||||||
|
servicegroups mirrorlist
|
||||||
}
|
}
|
||||||
|
|
||||||
define service {
|
define service {
|
||||||
|
@ -290,6 +291,7 @@ define service {
|
||||||
service_description http-freemedia-internal
|
service_description http-freemedia-internal
|
||||||
check_command check_website!localhost!/freemedia/FreeMedia-form.html!Media
|
check_command check_website!localhost!/freemedia/FreeMedia-form.html!Media
|
||||||
use internalwebsitetemplate
|
use internalwebsitetemplate
|
||||||
|
servicegroups freemedia
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue