Graph Templates - Removing/adding Item

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

Moderators: Developers, Moderators

Post Reply
vossler19
Posts: 45
Joined: Thu Aug 03, 2017 2:27 pm

Graph Templates - Removing/adding Item

Post by vossler19 »

If you remove/add items to this list - will current graphs be updated with the new additions/subtractions? My cacti seems to be freaking out a bit an moving these items around on the graph templates - see the attachment.
Attachments
graph_template.PNG
graph_template.PNG (25.8 KiB) Viewed 1689 times
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Graph Templates - Removing/adding Item

Post by Osiris »

There is a but in graph_templates_items.php. You can grab a fresh copy from the 1.2.x branch on GitHub..
Before history, there was a paradise, now dust.
vossler19
Posts: 45
Joined: Thu Aug 03, 2017 2:27 pm

Re: Graph Templates - Removing/adding Item

Post by vossler19 »

I'm on a much older version - is there a way to reset the graph template, without losing the historical data tied to these? I have aboue 21,000 graphs tied to this template.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Graph Templates - Removing/adding Item

Post by Osiris »

Define 'way older'?
Before history, there was a paradise, now dust.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Graph Templates - Removing/adding Item

Post by Osiris »

And to answer your question, if you add and remove, everything will be fine so long as you don't add any new data sources. If you add data sources, you existing graphs will break. Been that way for a long time.
Before history, there was a paradise, now dust.
vossler19
Posts: 45
Joined: Thu Aug 03, 2017 2:27 pm

Re: Graph Templates - Removing/adding Item

Post by vossler19 »

I am on version 8.8f. So if I keep the data sources, which I will do, how would i go about "importing" a new interface bits/sec with total bandwidth and not lose all the historical data. Is that due to the data sources remaining? I really don't want to lose all the historical graphing I've done.
vossler19
Posts: 45
Joined: Thu Aug 03, 2017 2:27 pm

Re: Graph Templates - Removing/adding Item

Post by vossler19 »

Pictures will help - here is the template and that template's output on the graph - they do not match.
Attachments
graph_template_2.PNG
graph_template_2.PNG (85.55 KiB) Viewed 1674 times
graph_template_1.PNG
graph_template_1.PNG (42.36 KiB) Viewed 1674 times
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Graph Templates - Removing/adding Item

Post by Osiris »

Starting with 1.2.11, when you re-import a newer template, you will have the option to sync the templates. Re-importing the template generally does not break existing graphs, but do a preview first and ensure that no new data sources are added either to the Data Template, or the Graph Template.
Before history, there was a paradise, now dust.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests