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 {
|
define service {
|
||||||
hostgroup_name virtservers
|
hostgroup_name all,!cloud
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
||||||
define service {
|
define service {
|
||||||
hostgroup_name virtservers,proxies
|
hostgroup_name all,!cloud
|
||||||
service_description Disk Space /boot
|
service_description Disk Space /boot
|
||||||
check_command check_by_nrpe!check_disk_/boot
|
check_command check_by_nrpe!check_disk_/boot
|
||||||
use disktemplate
|
use disktemplate
|
||||||
|
|
|
@ -4,14 +4,12 @@
|
||||||
## {{ env }}
|
## {{ env }}
|
||||||
|
|
||||||
{% for key, value in groups.iteritems() %}
|
{% for key, value in groups.iteritems() %}
|
||||||
{% if groups[key] and key !='all' %}
|
|
||||||
define hostgroup{
|
define hostgroup{
|
||||||
hostgroup_name {{ key }}
|
hostgroup_name {{ key }}
|
||||||
alias {{ key }}
|
alias {{ key }}
|
||||||
members {% for host in groups[key] %}{{host}}, {% endfor %}
|
members {% for host in groups[key] %}{{host}}, {% endfor %}
|
||||||
|
|
||||||
}
|
}
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue