Hello,
on couple of occasions I ran into following problem:
- host is linked to a template A
- at certain point subset of items & triggers needs to be tuned
- I create template B and copy everything from template A and perform tune items & triggers
- I unlink and clear template A from host and link template B.
In the last step I practically loose all data for items which are present in template B. However, if I don't perform "unlink and clear" but rather "unlink", linking with template B creates duplicated items.
My question is - is there a way to perform this type of relinking without loosing data?
Comment 1: usually this is done on set of hosts, otherwise a simple unlink and tuning individual items & trigger for the particular host would be an obvious solution.
Comment 2: I understand that from the point of organization of items in database this isn't a trivial issue. However, this scenario has happened to me already more than couple of times and I'm quite sure it will happen again. My installation is still not in production and I need to find a sensible way to relink hosts without loosing data before putting everything in production.
Thanks in advance,
emir
on couple of occasions I ran into following problem:
- host is linked to a template A
- at certain point subset of items & triggers needs to be tuned
- I create template B and copy everything from template A and perform tune items & triggers
- I unlink and clear template A from host and link template B.
In the last step I practically loose all data for items which are present in template B. However, if I don't perform "unlink and clear" but rather "unlink", linking with template B creates duplicated items.
My question is - is there a way to perform this type of relinking without loosing data?
Comment 1: usually this is done on set of hosts, otherwise a simple unlink and tuning individual items & trigger for the particular host would be an obvious solution.
Comment 2: I understand that from the point of organization of items in database this isn't a trivial issue. However, this scenario has happened to me already more than couple of times and I'm quite sure it will happen again. My installation is still not in production and I need to find a sensible way to relink hosts without loosing data before putting everything in production.
Thanks in advance,
emir

Comment