-
Incident report
-
Resolution: Unresolved
-
Trivial
-
None
-
2.4.2
-
Debian
I have run into a problem changing templates on a host.
Story/Use Case:
Need to change templates from one to another - the items are the same but of different interval. Purpose is to apply more frequent monitoring (priority if you will) but to preserve past history.
Steps to replicate:
- Create "Template A" with an item "keyOne" with interval 300 sec.
- Link "Template A" to "Host1" and let it run for a few intervals.
- Create "Template B", link to "Template A". Change "Template B:keyOne" interval to 60sec.
- Unlink "Template A" (NOT unlink and clear), and Link "Template B"
Error is then presented outlining duplicate item keys are present on the host and cannot complete the link.
Ideal Operation:
When changing from "Template A" to "Template B", the items should continue to update their values.
I shouldn't need to "unlink and clear" if the items are inherited but with different intervals.
Benefit:
This preserves historical data on the host if the interval is to ever change between templates. It also allows for a single graph but with increased/decreased resolution during the different periods with different intervals.