move nagios ipa file to template to make less phx2 dependent
This commit is contained in:
parent
8802fc1823
commit
df9fcb477d
4 changed files with 4 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
define servicegroup {
|
||||
servicegroup_name freemedia
|
||||
alias FreeMedia
|
||||
members {% for host in groups['sundries'] %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-freemedia-internal{% if not loop.last %}, {% endif %}{% endif %} {% endfor %}
|
||||
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,4 @@
|
|||
define servicegroup {
|
||||
servicegroup_name ipa
|
||||
alias IPA Servers
|
||||
members {% for host in groups['ipa'] %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, IPA Replication Status{% if not loop.last %}, {% endif %}{% endif%}{% endfor %}
|
||||
|
||||
}
|
||||
|
|
7
roles/nagios_server/templates/nagios/services/ipa.cfg.j2
Normal file
7
roles/nagios_server/templates/nagios/services/ipa.cfg.j2
Normal file
|
@ -0,0 +1,7 @@
|
|||
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
|
||||
servicegroups ipa
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue