On Thu, Nov 03, 2005 at 10:30:23PM -0400, Rob Royan wrote:
> DEF:indataMaxbytes=interface-663-0.rrd:data:AVERAGE:reduce=MAX
Right, let's keep that in mind.

> $opts_DEF = rrdtool_get_def($data,array("input"));
> This would translate to:
> DEF:indataMaxbytes=interface-663-0.rrd:data:AVERAGE
"input" is the name of the RRDTool interface value.  It looks like yours
is called indataMaxbytes so you would change that to 
 $opts_DEF = rrdtool_get_def($data,array("indataMaxbytes"));

$opts_DEF now is an associative array of one row, looking like:
  "indataMaxbytes" => 
"DEF:indataMaxbytes=/opt/jffnms/rrd/interface-663-0.rrd:data:AVERAGE" 

So we're close, but you need the reduce.  I'm not sure of the best way,
but you could do.
  $opts_DEF['indataMaxbytes'] .= ':reduce=MAX';

 - 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to