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
|
@ -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,4 +0,0 @@
|
|||
define servicegroup {
|
||||
servicegroup_name ipa
|
||||
alias IPA Servers
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
define servicegroup {
|
||||
servicegroup_name mgmt-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 {
|
||||
host_name {% for host in groups['ipa'] %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}},{% endif%}{% endfor %}
|
||||
|
||||
service_description IPA Replication Status
|
||||
check_command check_by_nrpe!check_ipa_replication
|
||||
use lighttemplate
|
||||
|
|
|
@ -1,20 +1,19 @@
|
|||
# HTTP
|
||||
|
||||
{% for host in vars['phx2_management_hosts'] %}
|
||||
define service {
|
||||
host_name {{ host }}
|
||||
service_description {{ host }}-http
|
||||
check_command check_http!{{ host }}
|
||||
use defaulttemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name {{ host }}
|
||||
service_description {{ host }}-https
|
||||
check_command check_https!{{ host }}
|
||||
use defaulttemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name {{ host }}
|
||||
service_description {{ host }}-http
|
||||
check_command check_http!{{ host }}
|
||||
use defaulttemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name {{ host }}
|
||||
service_description {{ host }}-https
|
||||
check_command check_https!{{ host }}
|
||||
use defaulttemplate
|
||||
}
|
||||
|
||||
|
||||
{% endfor %}
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ define service {
|
|||
service_description http-mirrors.fedoraproject.org-mirrorlist
|
||||
check_command check_website!mirrors.fedoraproject.org!/mirrorlist?repo=rawhide&arch=x86_64&country=global!development
|
||||
use websitetemplate
|
||||
servicegroups mirrorlist
|
||||
}
|
||||
|
||||
define service {
|
||||
|
@ -290,6 +291,7 @@ define service {
|
|||
service_description http-freemedia-internal
|
||||
check_command check_website!localhost!/freemedia/FreeMedia-form.html!Media
|
||||
use internalwebsitetemplate
|
||||
servicegroups freemedia
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue