One way would be to use the same rrdtool command that the Ganglia web
frontend uses.  Internally the PHP code just makes use of the rrdtool
command to generate the graphs.  Specifically, the graph.php file has a
line like this:

$command = RRDTOOL . " graph - --start $start --end $end ".
   "--width $width --height $height $upper_limit $lower_limit ".
   "--title '$title' $vertical_label $extras $background ".
   $series;

The parameters are determined based on the context in which it is called.
But it should be possible for you to determine the right options and then
create a cron job that could create all the graphs you want.  You could
even create graphs different from the ones Ganglia displays if you want
some special customized graph.

Check out the rrdtool man pages for more info.

--Rick

--------------------------
Rick Mohr
Systems Developer
Ohio Supercomputer Center

On Mon, 19 Sep 2005, Ashley Wright wrote:

> Hi,
>
> We would like to be able to take a snapshot of a graph. ie Once a week
> we would like to save some of the graphs and store them, so we can
> easily compare weeks, put them in reports etc.
>
> Does anybody know of a easy way or a tool which can take snapshots of
> the graph?. I have had a look at the xml output but it is only the
> current information, not the historical.
>
> Thanks,
> Ashley
>
> --
> Ashley Wright
> 3864 9264
> [EMAIL PROTECTED]
> HPC and Research Support Group
> Queensland University of Technology (QUT)
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your very
> own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Ganglia-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ganglia-general
>
>

Reply via email to