why did i have hostgroups in servicegroups directory
This commit is contained in:
parent
625efe673a
commit
0f44ad08bd
4 changed files with 14 additions and 21 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
}
|
||||
|
|
@ -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 %}
|
||||
|
|
@ -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 %}
|
||||
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue