From: Michael Friedrich Date: Tue, 25 Nov 2014 17:51:53 +0000 (+0100) Subject: Documentation: Add a note on unique template/object names X-Git-Tag: v2.3.0~608 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5752654cee91b37c4c41761e54343fc23c46143a;p=icinga2 Documentation: Add a note on unique template/object names fixes #7671 --- diff --git a/doc/4-monitoring-basics.md b/doc/4-monitoring-basics.md index fdf8e278e..510610581 100644 --- a/doc/4-monitoring-basics.md +++ b/doc/4-monitoring-basics.md @@ -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 = ... + } + ### Apply objects based on rules Instead of assigning each object ([Service](#objecttype-service),