Can cycle work with weathermap ?

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
mdherens
Posts: 7
Joined: Fri Jul 10, 2009 3:26 am

Can cycle work with weathermap ?

Post by mdherens »

Hello all !

I'm setting up "Cacti TV" so that the graphs and wheathermaps are displayed every 30 seconds.
I found the cycle plugin which work great to cycle the graphs but is it possible to make it work with the weathermaps as well ? I mean when done displaying all the pages of all the graphs, can it display the weathermaps one by one ?

That would be terrific ! Otherwise I will have to use a firefox plugin to do it but it is not very pretty...

Thanks for your help !
:)

M
DLNoah
Cacti User
Posts: 119
Joined: Wed Jun 20, 2007 11:27 pm

Post by DLNoah »

Weathermap has a built-in cycle option.

See: http://www.network-weathermap.com/manua ... lugin.html and scroll down to "managing maps - display options" to get more information on controlling refresh rate. To start cycle mode, there is a link in the top/right of the page when you're on the weathermap tab.

As far as cycling graphs then weathermaps, I am not sure of whether that's possible out-of-the-box right now.
kmhendress
Posts: 33
Joined: Wed Aug 27, 2008 2:49 pm

Post by kmhendress »

I'd like to be able to cycle graphs and then weathermaps as well!!
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

I've never used Cycle, but there's nothing special on the Weathermap side of things to support it at the moment.

It's one of those situations where a plugin that has it's own hooks would be kind of useful. Weathermap actually adds a PA hook for Gilles' Manage plugin (I don't know if he ever used it). It's not that hard to do. Maybe Cycle could then support Cycling other kinds of data.

So I assume Cycle has some kind of picker for populating it's graph list... that could then use do_hook_function() to allow other plugins to offer additional items to cycle between, and maybe a function to call to actually do the drawing. I started doing some stuff like this a couple of years ago to allow other things (weathermaps mainly, but also images, urls and text) to be added to Trees, and for plugins to register new data types - the Cacti team released a new version before I was done though, and I didn't feel like starting again!

Looks like TheWitness takes care of Cycle nowadays - maybe we could come up with something.
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!)
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

Howie wrote:
It's one of those situations where a plugin that has it's own hooks would be kind of useful. Weathermap actually adds a PA hook for Gilles' Manage plugin (I don't know if he ever used it). It's not that hard to do. Maybe Cycle could then support Cycling other kinds of data.
Howie, you have me intrigued again, in what way does Weathermap hook into Manage. I may have missed it in the documentation.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

streaker69 wrote:
Howie wrote:
It's one of those situations where a plugin that has it's own hooks would be kind of useful. Weathermap actually adds a PA hook for Gilles' Manage plugin (I don't know if he ever used it). It's not that hard to do. Maybe Cycle could then support Cycling other kinds of data.
Howie, you have me intrigued again, in what way does Weathermap hook into Manage. I may have missed it in the documentation.
I don't think it actually does, but I did add a hook a few versions ago so that other plugins could insert HTML into the weathermap full screen view. Somewhere around here there's a request from Gilles to be able to post-process maps to add other information. It was something to do with adding Manage status to weathermap.

Here we are, it's in 0.95 CHANGES:

Code: Select all

ADDED - Weathermap has a hook in the map viewing page to allow other plugins to add code there
where I have:

Code: Select all

   print do_hook_function ('weathermap_page_top', '' );
I have a feeling it doesn't work with PA 2.x actually - I think I need to register the hook somewhere.
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!)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Howie wrote:It's one of those situations where a plugin that has it's own hooks would be kind of useful. Weathermap actually adds a PA hook for Gilles' Manage plugin (I don't know if he ever used it). It's not that hard to do. Maybe Cycle could then support Cycling other kinds of data.
I've installed Cycle on my test system now, so I'm going to try and add this. I've run out of weathermap motivation for the moment, so this will be a nice distraction :-)
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 0 guests