we have >1500 hosts, so almost never set sh/showhosts to 1 or 2 - it's
almost always sh=0 '[Summary Only]' otherwise the default ganglia web page
is insanely huge, slow to load, too agressive on web server cpu/iops, etc.

however ganglia-3.2.0's ganglia-web has a regression in it compared to
3.1.2 - when sh=0 the time changing button (time_ranges hour, day, week
etc.) no longer automatically updates the web form when the time range
is changed.
the below patch fixes this. please apply.

BTW, it would be nice to allow 'custom' time ranges with sh=0 like there
are for sh=1,2, but for some reason showhosts=0 disables that
functionality in the web form... is it possible to allow custom time
ranges in '[Summary Only]' mode?

cheers,
robin

--- ganglia-3.2.0.orig/web/header.php   2010-11-26 16:34:11.000000000 +1100
+++ ganglia-3.2.0/web/header.php        2011-09-28 16:20:36.000000000 +1000
@@ -250,7 +250,7 @@ if (!$physical) {
       $context_ranges[]="custom";
 
    $range_menu = "<B>Last</B>&nbsp;&nbsp;"
-      ."<SELECT NAME=\"r\" OnChange=\"ganglia_submit();\">\n";
+      ."<SELECT NAME=\"r\" OnChange=\"ganglia_form.submit();\">\n";
    foreach ($context_ranges as $v) {
       $url=rawurlencode($v);
       $range_menu .= "<OPTION VALUE=\"$url\"";

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to