[rrd-users] Re: threshold graph in rrdtool.

Thomas Erskine thomas.erskine at sympatico.ca
Fri Aug 8 17:17:08 MEST 2003


At 10:55 2003-08-08, Young, Jeff wrote:
 >I've been using rrdtool for a while to graph TX and RX MB/s via all ports on
 >brocade fibre switches.  I have recently added a feature where the user can
 >specify a threshold value.  The idea is that all values below this given
 >value will be ignored in the graph.  So if we want to see all ports running
 >over 45 MB/s I set a threshold of 47185920.
 >
 >In detail I am simply reducing to zero any values that fall below this
 >threshold. ie
 >
 >HRULE:$threshold#22FF22:Threshold"
 >DEF:PRE$attribCounter=$fileName:$attrib:AVERAGE
 >CDEF:BYTES$attribCounter=PRE$attribCounter$formula,$threshold,LT,0,PRE$attri
 >bCounter$formula,IF

Urg.  What's wrong with "--lower-limit 47185920 --rigid".  This should be a 
bit faster (avoiding CDEF) and simpler.

 >This gives a reasonable result but there are a few aspects that still bug
 >me.
 >
 >1) Below the threshold I still see the graphing lines.  They are the
 >vertical lines that join the last 'zero' value of the data to the first
 >'above threshold' value of data.  I would like a way of not drawing this
 >part of the line.  I could do it by defining two CDEFs and drawing the lower
 >section in white ( background ) and the over section in line_colour.  This
 >is the way i'll go if no one has a better idea.
 >
 >Is it possible to do something with the vertical axis so I effectively pull
 >down the 40Mb line to where the 0Mb line was ? This way I miss out all the
 >un-interesting bit and get a nice graph that starts at my given threshold
 >value.
 >
 >2) I also build up a legend under the graph
 >
 >LINE2:BYTES$attribCounter#$colours[$colour]:@anno ($unit)$fill
 >GPRINT:BYTES$attribCounter:MAX:%6.2lf%s
 >GPRINT:BYTES$attribCounter:MIN:%6.2lf%s
 >GPRINT:BYTES$attribCounter:AVERAGE:%6.2lf%s\\n
 >
 >I need a way of NOT adding legend lines for those line that fall below the
 >given threshold. ie if BYTES$attribCounter:MAX < threshold then miss out
 >this GPRINT.
 >
 >Any ideas ?
 >
 >Jeff
 >
 >
 >
 >
 >
 >----------------------------------------------------------------------
 >If you have received this e-mail in error or wish to read our e-mail
 >disclaimer statement and monitoring policy, please refer to
 >http://www.drkw.com/disc/email/ or contact the sender.
 >----------------------------------------------------------------------
 >
 >
 >
 >--
 >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

Thomas Erskine <thomas.erskine at sympatico.ca> +1.613.591.8490 


--
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