Craig, thanks for your reply.

I have very limited programming knowledge, so I probably missing something simple.  The rrdtool statement that I want to invoke is:

     DEF:indataMaxbytes=interface-663-0.rrd:data:AVERAGE:reduce=MAX

My understanding is the engine/graphs files call this statement with the following line:
 
     $opts_DEF = rrdtool_get_def($data,array("input"));
This would translate to:
     DEF:indataMaxbytes=interface-663-0.rrd:data:AVERAGE

The "input" portion of the line above fills out most of the DEF statement using the rrdtool_get_def function.  The question is, how can I pass the option ":reduce=MAX" to the rrdtool_get_def function?  Or is there a way to add the option within the graphs file and still have it recognized by the rrdtool?

Thanks for your help....

Rob Royan

On 11/3/05, Craig Small <[EMAIL PROTECTED]> wrote:
On Thu, Nov 03, 2005 at 11:22:50AM -0400, Rob Royan wrote:
> I would like to add a traffic graph to JFFNMS that includes MAX values.
> Currently these values get lost as the rrdtool consolidates the data to
> match the graph width. The way the rrdtool handles this consolidation can be
> changed by using the optional reduce parameter. Below is an example of a
> graph script with the data I'm looking for.
Why not look in engine/graphs, copy one of the traffic graphs and
change it for your purposes?  You could almost take your rrdgraph
definition you sent and stick it in the code.

- Craig
--
Craig Small      GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE         Debian developer
csmall at : enc.com.au                      ieee.org           debian.org


-------------------------------------------------------
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
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to