Bernard said:
> My patch is bit more involved, but will allow you to simply click on
> the graph to zoom in (instead of a '*' which was artificially added):
Ah, excellent approach, I like it better than mine! With a slight hack,
we can do it much simpler with no new blocks, as shown below. If the
url is set to drill in instead of zoom, the extra g= argument in the
template is simply ignored. BTW, I believe &r={range} could be removed
from the template since it is included in {graph_url}. I think it's
redundant unless I am missing something.
Thanks for the improvement!
-twitham
Index: templates/default/meta_view.tpl
===================================================================
--- templates/default/meta_view.tpl (revision 1148)
+++ templates/default/meta_view.tpl (working copy)
@@ -21,14 +21,14 @@
</TD>
<TD VALIGN=top align=right>
- <A HREF="{url}">
+ <A HREF="{url}&g=load_report">
<IMG SRC="./graph.php?{graph_url}&g=load_report&z=medium&r={range}"
ALT="{name} Load" BORDER="0">
</A>
</TD>
<TD VALIGN=top>
- <A HREF="{url}" VALIGN=top>
+ <A HREF="{url}&g=mem_report" VALIGN=top>
<IMG SRC="./graph.php?{graph_url}&g=mem_report&z=medium&r={range}"
ALT="{name} MEM" BORDER="0">
</A>
Index: meta_view.php
===================================================================
--- meta_view.php (revision 1148)
+++ meta_view.php (working copy)
@@ -133,6 +133,8 @@
$tpl->assign("num_dead_nodes", $grid[$source]["HOSTS_DOWN"]
);
$tpl->assign("range", $range);
$tpl->assign("name", $name );
+ if ( $source == $self ) # zoom instead of drill in
+ $url = "./graph.php?$graph_url&z=large";
$tpl->assign("url", $url);
$tpl->assign("graph_url", $graph_url);
if(isset($base64img)) {
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers