[rrd-users] Horizontal line at maximum value

João Marques Ferreira joao at cbpf.br
Tue Feb 25 17:31:43 MET 2003


I would like to add a horizontal line at the MAXIMUM INCOMING VALUE and another one at MAX OUTGOING VALUE in a graph.
It's beeing created like this:

 $command = "rrdtool.exe graph $graphfile ";
 $command .= "--start -86400 -w 400 --alt-y-grid -v \"bits/seg\" -t \"$desc\" ";
 $command .= "DEF:incoming=$rrdfile:input:AVERAGE ";
 $command .= "DEF:outgoing=$rrdfile:output:AVERAGE ";
 $command .= "DEF:max_incoming=$rrdfile:input:MAX ";
 $command .= "DEF:max_outgoing=$rrdfile:output:MAX ";
 $command .= "CDEF:incoming_bits=incoming,8,* ";
 $command .= "CDEF:outgoing_bits=outgoing,8,* ";
 $command .= "CDEF:max_incoming_bits=max_incoming,8,*,1000,/ ";
 $command .= "CDEF:max_outgoing_bits=max_outgoing,8,*,1000,/ ";
 $command .= "CDEF:max=max_incoming_bits,max_incoming_bits,MAX ";
 $command .= "AREA:incoming_bits#00FF00:In ";
 $command .= "LINE1:outgoing_bits#0000FF:Out ";
 $command .= "LINE2:max#FF0000:\"Max In\" ";
 $command .= "GPRINT:max_incoming_bits:MAX:\"Max in\:%.1lf Kbits\" ";
 $command .= "GPRINT:max_outgoing_bits:MAX:\"Max out\:%.1lf Kbits\"";

I tryed to use HRULE and got no success...  In the above code I tryed to create another line (LINE2) with CDEF:max defined and got no success too... any ideas ?
regards,

____________
João Marques
joao at cbpf.br
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list