[rrd-users] Re: Upstream quality channels

alex at ergens.op.Het.Net alex at ergens.op.Het.Net
Tue Mar 28 12:44:15 MEST 2000


John wrote:
> I need to graph up stream quality channels on a cable router, Iknow how
> to get the information but not how to organise it in rrd or how to graph
> it. The graph is to consist of a straight line by channel, 2 pixels by
> value and a colour by state of channel, each channel has 5 possible
> states ranging from ActiveAcceptable to Congested, Could someone please
> point me in the right direction??

Let's see if I understand this:

You get a status, not a counter-like value.  If so: make sure to update
the RRDs only at the correct intervals or else you will get into trouble
when the consilidation functions average your values...
This probably means that you can have one RRA only.


You want to alter the color of the line; this cannot be done however there
is a workaround:  you can display one out of five lines.

   DEF:status1=quality.rrd:channel1
   DEF:status2=quality.rrd:channel2
   ...
   CDEF:acceptable1=status1,1,EQ,1,UNKN
   ...
   CDEF:congested1=status1,5,EQ,1,UNKN
   LINE2:acceptable1#00FF00
   STACK:...
   STACK:congested1#FF0000
   CDEF:acceptable2=status2,1,EQ,1,UNKN
   ...
   CDEF:congested2=status2,5,EQ,1,UNKN
   LINE2:acceptable2#00FF00
   STACK:...
   STACK:congested2#FF0000

Above will fetch the status (I showed two channels), evaluate all five
possibilities.  If will return 1 for the current status and unknown for
the other four.  Then you will stack all five values; resulting in one
value actually shown and four discarded (as they are unknown).

If this made no sense please read the CDEF, RPN and RRDtool tutorials.

regards,
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

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



More information about the rrd-users mailing list