put more checks for able to connect

This commit is contained in:
Stephen Smoogen 2020-05-15 19:54:12 -04:00
parent 6dfcc7d2d7
commit cb8b68bc18
3 changed files with 3 additions and 3 deletions

View file

@ -38,7 +38,7 @@ define hostgroup{
define hostgroup{
hostgroup_name routers
alias routers
members phx2-gw, ibiblio-gw, dedicated-gw, host1plus-gw, internetx-gw, osuosl-gw, rdu-gw, rdu-cc-gw
members phx2-gw, ibiblio-gw, dedicated-gw, host1plus-gw, internetx-gw, osuosl-gw, rdu-gw, rdu-cc-gw, iad2-gw
}

View file

@ -1,6 +1,6 @@
define hostgroup {
hostgroup_name CheckSwap
alias Swap-Is-Low
members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Check_Services['swap'] == true and hostvars[host].nagios_Can_Connect == true %}{{host}}{% if not loop.last %},{% endif %} {% endif %} {% endfor %}
members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Can_Connect == true and hostvars[host].nagios_Check_Services['swap'] == true and hostvars[host].nagios_Can_Connect == true %}{{host}}{% if not loop.last %},{% endif %} {% endif %} {% endfor %}
}

View file

@ -1,6 +1,6 @@
define hostgroup {
hostgroup_name nomail
alias Detect For 0 Mail In Queue
members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Check_Services['nrpe'] == true and hostvars[host].nagios_Check_Services['mail'] == true%}{{host}}, {% endif %}{% endfor %}
members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Can_Connect == true and hostvars[host].nagios_Check_Services['nrpe'] == true and hostvars[host].nagios_Check_Services['mail'] == true%}{{host}}, {% endif %}{% endfor %}
}