Skip to content
This repository has been archived by the owner on Oct 12, 2019. It is now read-only.

Commit

Permalink
Make adding hostgroup_name all conditional
Browse files Browse the repository at this point in the history
This was supposed to be but I forgot the wrapper. Without adding this
conditionally all hostgroups are monitored even though a specific list is set
higher in the service template. This means systems that shouldn't be monitored,
are.
  • Loading branch information
goetzk committed Mar 2, 2017
1 parent b45b93f commit 5166017
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/services.cfg.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ define service{
{% endfor %}
{# We can have multiple sources but its good to have this one as default. Fills in any gaps left by supplied #}
use generic-service
hostgroup_name all
{% if item.hostgroup_name is not defined %}
hostgroup_name all
{% endif %}
}

0 comments on commit 5166017

Please sign in to comment.