move nagios ipa file to template to make less phx2 dependent

This commit is contained in:
Stephen Smoogen 2020-05-21 14:57:41 -04:00
parent 8802fc1823
commit df9fcb477d
4 changed files with 4 additions and 5 deletions

View file

@ -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 %}
}

View file

@ -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 %}
}

View 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
}