why did i have hostgroups in servicegroups directory

This commit is contained in:
Stephen Smoogen 2017-04-29 22:47:09 +00:00
parent 625efe673a
commit 0f44ad08bd
4 changed files with 14 additions and 21 deletions

View file

@ -1,6 +1,6 @@
define service {
hostgroup_name virtservers
service_description Disk Space /
service_description Disk_Space_/
check_command check_by_nrpe!check_disk_/
use disktemplate
}

View file

@ -0,0 +1,11 @@
###############
# KVM Servers
###############
define hostgroup {
hostgroup_name virtservers
alias Virtual ServiceGroup
members {% for host in groups['virtservers'] %} {{host}}, Disk space /, {{host}}, Total Processes, {{host}}, Check Raid, {{host}}, Swap, {{host}}, SSH,{% endif %}{% endfor %}
}

View file

@ -1,5 +1,5 @@
define servicegroup {
servicegroup_name retrace
define hostgroup {
hostgroup_name retrace
alias Retrace Hosts
members {% for host in groups['retrace'] %}{{host}}, Disk space /,{{host}},Total Processes,{{host}}, Check Raid, {{host}}, Swap, {{host}}, SSH, {% endfor %}

View file

@ -1,18 +0,0 @@
###############
# KVM Servers
###############
define hostgroup {
hostgroup_name phx-virt
alias PHX Virtual ServiceGroup
members {% for host in groups['virtservers'] %}{% if hostvars[host].datacenter == 'phx2'%} {{host}}, Disk space /, {{host}}, Total Processes, {{host}}, Check Raid, {{host}}, Swap, {{host}}, SSH,{% endif %}{% endfor %}
}
define hostgroup {
hostgroup_name remote-virt
alias PHX Virtual ServiceGroup
members {% for host in groups['virtservers'] %}{% if hostvars[host].datacenter != 'phx2'%} {{host}}, Disk space /, {{host}}, Total Processes, {{host}}, Check Raid, {{host}}, Swap, {{host}}, SSH,{% endif %}{% endfor %}
}