Embed Open Flash Chart into Weathermap

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
tbaror
Cacti User
Posts: 75
Joined: Mon Jun 05, 2006 6:54 am

Embed Open Flash Chart into Weathermap

Post by tbaror »

Hello All,

Recently i am trying to embed charts for each machine created in Weathermap by using overlib graph option.
What i would like to achive is to extract last value from each rra related to machine like cpu,mem, etc... and export them into Open Flash chart for example and present it with form of guage or bar chart this way i have kind of interactive machine status without the need brows cacti graph tree.

my question is it possible?
Thanks in advanced
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Embed Open Flash Chart into Weathermap

Post by Howie »

tbaror wrote:Hello All,

Recently i am trying to embed charts for each machine created in Weathermap by using overlib graph option.
What i would like to achive is to extract last value from each rra related to machine like cpu,mem, etc... and export them into Open Flash chart for example and present it with form of guage or bar chart this way i have kind of interactive machine status without the need brows cacti graph tree.

my question is it possible?
Thanks in advanced
I've never heard of Open Flash, but assuming it's a .swf file, you could do that using the NOTES command instead of OVERLIBGRAPH. It pops up in the same way, but allows you to embed chunks of HTML instead of an image. You could add an <object> tag in there, pointing to your flash.

Extracting the last value would be your own issue though. Unless you can have some kind of cgi/php/whatever that can take parameters and produce your flash dynamically. Then, you could do

Code: Select all

NOTES <object type="application/x-shockwave-flash" width="320" height="240" data="mychart.swf?cpuval={node:servercpu:bandwidth_in}&memval={node:servermem:bandwidth_in}">
(I've never had to deal with flash, but that seems like the right format). Note the {} stuff near the end of the URL to pass values from weathermap. I assume that flash can use these somehow. I found this in an article about embedding flash video.
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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests