Define the / file check for every host but cloud
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
97fc9d2fb9
commit
5075885124
2 changed files with 2 additions and 4 deletions
|
@ -1,12 +1,12 @@
|
|||
define service {
|
||||
hostgroup_name virtservers
|
||||
hostgroup_name all,!cloud
|
||||
service_description Disk_Space_/
|
||||
check_command check_by_nrpe!check_disk_/
|
||||
use disktemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
hostgroup_name virtservers,proxies
|
||||
hostgroup_name all,!cloud
|
||||
service_description Disk Space /boot
|
||||
check_command check_by_nrpe!check_disk_/boot
|
||||
use disktemplate
|
||||
|
|
|
@ -4,14 +4,12 @@
|
|||
## {{ env }}
|
||||
|
||||
{% for key, value in groups.iteritems() %}
|
||||
{% if groups[key] and key !='all' %}
|
||||
define hostgroup{
|
||||
hostgroup_name {{ key }}
|
||||
alias {{ key }}
|
||||
members {% for host in groups[key] %}{{host}}, {% endfor %}
|
||||
|
||||
}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue