[SOLVED] rra_id in a graph link

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

Moderators: Developers, Moderators

Post Reply
kamirie
Posts: 4
Joined: Mon Sep 30, 2019 9:16 pm

[SOLVED] rra_id in a graph link

Post by kamirie »

Good Day,

Cacti version 1.2.6

I updated to 1.2.6 from 0.8.8 , but after the update , I cannot use the graph_image link with rra_id to display it as img src in an html page outside cacti server .

In 0.8.8 this format works , as an img src , it will only diplay the graph with 5 hours timespan,

Code: Select all


http://x.x.x.x/cacti/graph_image.php?local_graph_id=31&rra_id=5&graph_width=500&graph_height=120 ,

but in 1.2.6 , the img will be displayed at the default of 12hr timespan.

What settings can I do to have the result as it was before displaying the image as rra_id=5 in an img_src.

graph_start&graph_end won't work as it locks it statically where the start and end is indicated, not updating the graph.

Kind Regards,
Last edited by kamirie on Tue Oct 01, 2019 7:13 pm, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: rra_id in a graph link

Post by TheWitness »

Start and end can be relative. Say, for example last day. Then, you would pass "graph_start=-86400&graph_end=-300".
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?
kamirie
Posts: 4
Joined: Mon Sep 30, 2019 9:16 pm

Re: rra_id in a graph link

Post by kamirie »

TheWitness wrote: Mon Sep 30, 2019 10:01 pm Start and end can be relative. Say, for example last day. Then, you would pass "graph_start=-86400&graph_end=-300".
Can I do this with a timespan of 5hours between graph_start and graph_end=-300 , so the graph is updating at the end and still displaying just 5hrs span?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: rra_id in a graph link

Post by TheWitness »

That would be '&graph_start=-18000&graph_end=0", the reason graph end is set back a little is that you don't really know when the RRDfile was updated previously.
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?
kamirie
Posts: 4
Joined: Mon Sep 30, 2019 9:16 pm

Re: rra_id in a graph link

Post by kamirie »

This fixed my issue. Thanks
xyre
Posts: 2
Joined: Wed Sep 15, 2021 3:41 am

Re: [SOLVED] rra_id in a graph link

Post by xyre »

please help, i tried to embed img tag with scr linked to <img src="http://localhost/cacti/graph_image.php? ... ight=120"/> but no image display, only broken image.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests