try to clean up

This commit is contained in:
Stephen Smoogen 2020-06-09 11:27:52 -04:00
parent cd97509505
commit 6a411fae1b
2 changed files with 10 additions and 1 deletions

View file

@ -24,3 +24,12 @@ openqa_workers: 10
# $ENV{QEMUPORT} = ($options{instance}) * 10 + 20002;
# so for worker 1 it's 20012, for worker 2 it's 20022, etc etc
tcp_ports: ['20013', '20023', '20033', '20043', '20053', '20063', '20073', '20083', '20093', '20103']
nagios_Can_Connect: false
nagios_Check_Services:
nrpe: false
sshd: false
named: false
dhcpd: false
httpd: false
swap: false

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