On Wed, 09 Feb 2005 15:26:06 -0800, Kevin A. Burton
<[EMAIL PROTECTED]> wrote:
> I've have a custom .html page I've created which links to a bunch of
> gangila metric images that I've created.
>
> I want to organize this page so that I can get a quick overview of all
> the CORE stats from different machines in our colo so I can see how an
> algorithms scales without much clutter.
>
> I'm using an <img> with the following URL:
>
> http://server.com/ganglia/graph.php?c=foo&h=foo4.server.com&v=1548&m=foo_hits&r=hour&z=large&jr=&js=
>
> If I don't include the 'st' param (which I assume is meaures in seconds
> and is 'start time') it will work fine but the problem is that the value
> of 'now' is never updated. It turns out that this value is actually
> from the 'v' parameter and since this is in the URL its always '1548'.
Kevin,
use this patch:
--- graph.php 2005-02-10 08:52:21.000000000 -0200
+++ graph.php-mod 2005-02-10 08:51:11.000000000 -0200
@@ -15,6 +15,12 @@
$vlabel = escapeshellcmd( rawurldecode( $HTTP_GET_VARS["vl"] ));
$sourcetime = escapeshellcmd($HTTP_GET_VARS["st"]);
+if(!$value) {
+ include_once "./ganglia.php";
+ include_once "./get_ganglia.php";
+ $value = $metrics[$metricname][VAL];
+}
+
# Assumes we have a $start variable (set in get_context.php).
if ($size == "small")
{
your graph.php will work fine without 'v' param!
Marcelo
>
> Is there a way I can just have a permalink to an image that always
> reflects the current data?
>
> Kevin
>
> --
>
> Use Rojo (RSS/Atom aggregator). Visit http://rojo.com. Ask me for an
> invite! Also see irc.freenode.net #rojo if you want to chat.
>
> Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html
>
> If you're interested in RSS, Weblogs, Social Networking, etc... then you
> should work for Rojo! If you recommend someone and we hire them you'll
> get a free iPod!
>
> Kevin A. Burton, Location - San Francisco, CA
> AIM/YIM - sfburtonator, Web - http://peerfear.org/
> GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Ganglia-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ganglia-general
>
Marcelo Veiga Neves
http:/www.inf.ufsm.br/~veiga
--
"Talk is cheap. Show me the code." (Linus Torvalds)
--- graph.php 2005-02-10 08:52:21.000000000 -0200
+++ graph.php-mod 2005-02-10 08:51:11.000000000 -0200
@@ -15,6 +15,12 @@
$vlabel = escapeshellcmd( rawurldecode( $HTTP_GET_VARS["vl"] ));
$sourcetime = escapeshellcmd($HTTP_GET_VARS["st"]);
+if(!$value) {
+ include_once "./ganglia.php";
+ include_once "./get_ganglia.php";
+ $value = $metrics[$metricname][VAL];
+}
+
# Assumes we have a $start variable (set in get_context.php).
if ($size == "small")
{