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 {
|
define service {
|
||||||
hostgroup_name virtservers
|
hostgroup_name virtservers
|
||||||
service_description Disk Space /
|
service_description Disk_Space_/
|
||||||
check_command check_by_nrpe!check_disk_/
|
check_command check_by_nrpe!check_disk_/
|
||||||
use disktemplate
|
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 {
|
define hostgroup {
|
||||||
servicegroup_name retrace
|
hostgroup_name retrace
|
||||||
alias Retrace Hosts
|
alias Retrace Hosts
|
||||||
members {% for host in groups['retrace'] %}{{host}}, Disk space /,{{host}},Total Processes,{{host}}, Check Raid, {{host}}, Swap, {{host}}, SSH, {% endfor %}
|
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