Overlib graph link URL insertion

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
smiffy
Posts: 6
Joined: Sun Jan 15, 2012 7:11 am

Overlib graph link URL insertion

Post by smiffy »

Hi all

Regarding the hover over graph feature on Weathermaps, I prefer there to always be a legend in place and also not to set the graph width and height on the URL as this causes the graph to blur as I use the overlibwidth and height values. Is there a way to get the URL to display as default without the following:

Hover Graph Link URL on link properties:

So when selecting data source I currently get:

/graph_image.php?local_graph_id=1234&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300

But i always just want:

/graph_image.php?local_graph_id=1234&rra_id=0

Thanks in advance
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Overlib graph link URL insertion

Post by Howie »

If you're getting blurry graphs, it's because you're not setting the correct width and height and the browser is scaling it. Open the URL in a browser, and it usually will tell you the dimensions of the image at the top of the window.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
smiffy
Posts: 6
Joined: Sun Jan 15, 2012 7:11 am

Re: Overlib graph link URL insertion

Post by smiffy »

I have already set the image size correctly in the config file, it only blurs when the default height and width config is put on the overlib graph URL when you first add a datasource to a link.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Overlib graph link URL insertion

Post by Howie »

smiffy wrote:I have already set the image size correctly in the config file, it only blurs when the default height and width config is put on the overlib graph URL when you first add a datasource to a link.
Right, because the height and width are incorrect. With width=300 and height=100 on the end of the URL, the resulting image is not 300x100 pixels, for example.

The line you'll want to change is in cacti-picker.php - just look for the URL in there.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
smiffy
Posts: 6
Joined: Sun Jan 15, 2012 7:11 am

Re: Overlib graph link URL insertion

Post by smiffy »

Thats done the trick perfectly!! Many thanks :-)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest