Use and validate templates
Choose the right definitions
Section titled “Choose the right definitions”Device templates offer graph templates and data queries; data templates define measurement inputs and storage. Duplicate a close match when you need a separate identity, then inspect shared dependencies. A duplicate does not make every referenced input or profile independent. Preserve an export and a matched database/RRD backup before changing used definitions. See template concepts.
Preview, then apply deliberately
Section titled “Preview, then apply deliberately”On an isolated installation, inspect the XML’s source, destination identities and chosen storage profile. From the application root, preview plain template XML:
php cli/import_template.php --filename=/secure/template.xml --previewCurrent main reports unreadable input, malformed XML and recorded object failures
with a nonzero status. Check diagnostics and per-object results too; an import can
update existing identities. Package imports have a separate file-writing path.
See import and export.
Verify children and history
Section titled “Verify children and history”Check representative devices, local graph-item mappings, overrides and collected values after applying. Device-template association changes need their separate synchronization operation. A data-template save does not reshape existing RRDs; inspect the real file before changing step, heartbeat or retention. Stop writers before coordinated recovery and restore the matched backup set if necessary. See custom templates and retention.
Application baseline checked on 26 October 2026: cbd6117d6.
Documentation license: CC BY-SA 4.0Site code license: GPL-3.0-or-laterKadupul is not affiliated with or endorsed by The Cacti Group.
