[rrd-users] Re: Question about GPRINT
Alex van den Bogaerdt
alex at slot.hollandcasino.nl
Wed Jun 12 22:53:42 MEST 2002
James Pardonek wrote:
>
>
> I am using RRGrapher to gen my graphs but I have an issue when setting
> things up so that the inbound traffic is abouve the center line and the
> outbound is below the center line my legend in the graph gets screwed up.
> 'DEF:A=/var/www/XX.XX.XX.0_24.rrd:in_bytes:AVERAGE' \
> 'DEF:B=/var/www/XX.XX.XX.0_24.rrd:out_bytes:AVERAGE' \
> 'CDEF:C=A,-1,*' \
So: C is -A.
> 'AREA:C#FF0000:A,-1,*' \
Now you are trying to graph C, which is good. This will plot negative
numbers which is what you want. However, you do not want "A,-1,*" in
the legend, so why tell RRDtool to do so?
Just change this into 'AREA:C#FF0000:A' and you will get "A" in the
legend. No magic, it just prints what you ask for.
HTH
--
__________________________________________________________________
/ 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 |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. |
+----------------------------------------------------------------------+
| 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
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list