Hi all,

Its Friday, so I thought I'd share something from the draw marked "fun".

A previous thread touched on generating customisable pages.  For example, I 
might want certain graphs (the ones I consider interesting), my boss wants a 
few key overview graphs,  etc...  Ideally, this wants to be customisable 
through some kind of portal using just my web-browser.  One should be able to 
rearrange graphs, create new tabs, add new graphs, and so on.

Well, Google already have this with Google Gadgets.  If you're not familiar, a 
Gadget is (in essence) an XML encapsulation of some HTML content.  The XML 
also contains some metadata (e.g. the Gadget's title) and must be accessable 
via HTTP.

To try it out, I wrote some "simple" PHP to generate suitable XML.  The actual 
(HTML) content is just an A tag (pointing to the original page) and an IMG 
tag (the graph).  One Gadget gets you precisely one graph.  The graph's range 
can be altered through the Gadget's settings and the range is preserved when 
one jumps back to the Ganglia page.

If you want to try it out, have a look at:

http://svr031.gla.scotgrid.ac.uk/ganglia/?r=day&sg=no&c=Grid+Servers&h=svr016.gla.scotgrid.ac.uk

Click a few of the "Add to Google" buttons and you should be off.

I've just added it to the multiple-graph framework (just because it was easy), 
but the google.php should work for the "normal" graphs (Load, CPU, Memory, 
etc...) without too much effort.

The PHP (such as it is) is available here:

http://monami.cvs.sourceforge.net/monami/external/ganglia/ganglia/google.php?view=markup

Its rather rudimentary at the moment, but I thought people might be interested 
(perhaps amused).  Comments and suggestions welcome.

Cheers,

Paul.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to