Prevent dependencies getting update when import template

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
NaT1
Posts: 32
Joined: Sun Jan 04, 2015 1:23 pm

Prevent dependencies getting update when import template

Post by NaT1 »

Hi Guys

I noticed something annoying when I'm importing new device templates.
I changed the graph template items a bit (colours , fields) also suggested values (under data queries).

Since dependencies includes there in the template I'd like to import... all last changes I did in related fields just being reset to the new ones in the template - graph template items and suggested values without any prompt or option to avoid it.

I'm talking mostly about generic "SNMP interface statistics". I'm editing Bits In/Out values and when importing new template all changes getting lost.

Seems like no option to choose specifically which dependencies will be imported and get updated, am I right ? :-?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Prevent dependencies getting update when import template

Post by phalek »

Yes, you're right. It install all of the data included in the template.

You could, however, export your changed template and then simply re-import it after you added new templates.

It's a workaround, but that way you also have a backup for your changes which can be easily restored.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
NaT1
Posts: 32
Joined: Sun Jan 04, 2015 1:23 pm

Re: Prevent dependencies getting update when import template

Post by NaT1 »

phalek wrote:Yes, you're right. It install all of the data included in the template.

You could, however, export your changed template and then simply re-import it after you added new templates.

It's a workaround, but that way you also have a backup for your changes which can be easily restored.

yeah I know. that's what I do. but I need to remember to do it before each import. since Im still in building it up ..

Do you know to tell if there's any pending feature request already ? Seems very basic thing to have .
NaT1
Posts: 32
Joined: Sun Jan 04, 2015 1:23 pm

Re: Prevent dependencies getting update when import template

Post by NaT1 »

phalek wrote:Yes, you're right. It install all of the data included in the template.

You could, however, export your changed template and then simply re-import it after you added new templates.

It's a workaround, but that way you also have a backup for your changes which can be easily restored.

BTW - I just tried to import back my last good changes and noticed graph template "Interface - Traffic (bits/sec)" for instance, doesn't update the values as it should ONLY when I deleted one by one all fields from the graph and re-import then it updated (by adding all graph item fields)

Really strange ...
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests