Documentation: Add a note on unique template/object names

fixes #7671
This commit is contained in:
Michael Friedrich 2014-11-25 18:51:53 +01:00
parent 9818477a44
commit 5752654cee
1 changed files with 17 additions and 0 deletions

View File

@ -200,6 +200,23 @@ Objects as well as templates themselves can import an arbitrary number of
templates. Attributes inherited from a template can be overridden in the
object if necessary.
You can import existing non-template objects into objects which
requires you to use unique names for templates and objects sharing
the same namespace.
Example for importing objects:
object CheckCommand "snmp-simple" {
...
vars.snmp_defaults = ...
}
object CheckCommand "snmp-advanced" {
import "snmp-simple"
...
vars.snmp_advanced = ...
}
### <a id="using-apply"></a> Apply objects based on rules
Instead of assigning each object ([Service](#objecttype-service),