Some Graphs Not Using Template

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
User avatar
EBrander
Cacti User
Posts: 52
Joined: Tue Mar 23, 2004 1:52 pm

Some Graphs Not Using Template

Post by EBrander »

I have a graph template that has been working for years. But when I create a new graph using this template it seems to fall back to the some other (default?) template. When I manage graphs and then click on "edit graph template" it takes me to the correct template, but clearly it isn't using it.

Here's the tempalte:
Graph Template Items
Graph Template Items
graph_template.PNG (79.71 KiB) Viewed 585 times

Here's a WORKING graph:
Working Graph Example
Working Graph Example
working_graph_example.PNG (113.04 KiB) Viewed 585 times

Here is a brand new graph that is NOT working:
Not working graph example
Not working graph example
not_working_graph_example.PNG (99.74 KiB) Viewed 585 times

As you can see I've tried recreating the graph from scratch but no joy.

I did just notice this in the Graph Debug:

This is set in the non-working graph:
--imgformat=SVG \

In a debug for a working graph I see this:
--imgformat=PNG \

So I went into the template and changed it to PNG, and it still has the same issue yet the debug now says it is PNG. What's odd is that both are using the same graph template (confirmed by clicking Edit Graph Template on both graphs) and yet one was drawing it as PNG and the other SVG while it was set to SVG. Meanwhile still the new one is wrong regardless of format.

Any suggestions?

Edit: Forgot important stuff
Cacti Version 1.2.23
RRDtool Version Configured 1.4.0+
RRDtool Version Found 1.4.8
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Some Graphs Not Using Template

Post by Osiris »

What is your OS?

What is the issue?
Before history, there was a paradise, now dust.
User avatar
EBrander
Cacti User
Posts: 52
Joined: Tue Mar 23, 2004 1:52 pm

Re: Some Graphs Not Using Template

Post by EBrander »

Os: Centos 7
Issue: Graphs not using the template.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Some Graphs Not Using Template

Post by TheWitness »

Okay, looking at this closely, what happened is that you made modifications to the default Cacti Interface Graphs, and when you upgraded, you imported the 'Default' one again and overwrote your customization. If you have either a backup of your Cacti Database or you backed up your customer Template (preferred method), just re-import it from your backed up XML file.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
EBrander
Cacti User
Posts: 52
Joined: Tue Mar 23, 2004 1:52 pm

Re: Some Graphs Not Using Template

Post by EBrander »

TheWitness wrote: Sun Aug 20, 2023 1:29 pm Okay, looking at this closely, what happened is that you made modifications to the default Cacti Interface Graphs, and when you upgraded, you imported the 'Default' one again and overwrote your customization. If you have either a backup of your Cacti Database or you backed up your customer Template (preferred method), just re-import it from your backed up XML file.
I'll give that a shot. Thank you for the help!
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Some Graphs Not Using Template

Post by TheWitness »

I'm working on a Clone Utility that will allow you to make each Device Template your own. It won't be in the 1.2.x release, but for sure in the 1.3.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests