Add mincheckgrp

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-06-23 12:22:30 +00:00
parent 8b23d10aff
commit 961a31313d
2 changed files with 8 additions and 1 deletions

View file

@ -1,5 +1,5 @@
define service {
hostgroup_name all,!cloud,!mincheck
hostgroup_name all,!cloud,!mincheckgrp
service_description Disk_Space_/
check_command check_by_nrpe!check_disk_/
use disktemplate

View file

@ -14,6 +14,13 @@ define hostgroup{
{% endif %}
{% endfor %}
## Services with minimal monitoring
define hostgroup{
hostgroup_name mincheckgrp
alias mincheckgrp
members {% for host in groups[key] %}{% if hostvars[host].nagios_Check_Services['nrpe'] == true %}{{host}}, {% endif %}{% endfor %}
}
##
## Management hardware