Skip to content

Ship the data query and templates as XML #39

Closed

Description

@somethingwithproof

Summary

Templates and the data query XML are shipped as files and imported through Cacti's APIs, with no core change.

Requirements

  • REQ-TPL-001 Device, data, and graph templates MUST be shipped as Cacti template XML and imported with import_xml_data(), matched by hash so a re-import updates instead of duplicating.
  • REQ-TPL-002 The data query XML MUST be placed where Cacti accepts it under <path_cacti>/resource, and the plugin MUST record which file it wrote.
  • REQ-TPL-003 The plugin MUST NOT write outside its own directory and the data query location.
  • REQ-TPL-004 The data query XML MUST set the unique index field to the GPU identity key, not the index or bus ID.
  • REQ-TPL-005 Template import MUST run under a lock so two upgrades cannot import together.

Acceptance criteria

  • Import twice leaves one template of each kind.
  • Install on 1.2.31 and current 1.2.x accepts the data query XML path.

References

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: cacti-objectsData queries, data sources, graphs, and templatesphase: 1 nvidiaNVIDIA collection with alertingpriority: highNeeded for its milestonetype: requirementA testable behavior the plugin must have

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions