[rrd-users] Re: Base for AREA plots

Sergey Velikanov [UzPAK] vgray at uzpak.uz
Thu Oct 21 07:39:09 MEST 2004


Hi

As a practice I decide solve you problem, at http://vgray.uzpak.uz/test.png
you can see my solution (but if temperature become less 0, than my solution draw wrong
picture )

rrdtool create test.rrd \
DS:temp:GAUGE:600:-40:60 \
RRA:AVERAGE:0.5:1:600

rrdtool update test.rrd 1098332000:8 \
1098332300:8.8 \
1098332600:9.5 \
1098332900:10.9 \
1098333200:11.4 \
1098333500:17.2 \
1098333800:18.5 \
1098334100:20.1 \
1098334400:22.3 \
bla-bla-bla


rrdtool graph /home/httpd/www/user1/httpdocs/test.png --imgformat PNG \
--start -2hours --end +3hours  --width 580 --height 172 \
--title="Test" \
"DEF:value=/root/test.rrd:temp:AVERAGE" \
"CDEF:base0=value,value,-," \
"CDEF:base10=base0,10,-," \
"CDEF:base20=base0,20,-," \
"CDEF:c3=value,0,GT,value,5,GT,5,value,0,-,IF,0,IF" \
"CDEF:c4=value,5,GT,value,10,GT,5,value,5,-,IF,0,IF" \
"CDEF:c5=value,10,GT,value,15,GT,5,value,10,-,IF,0,IF" \
"CDEF:c6=value,15,GT,value,20,GT,5,value,15,-,IF,0,IF" \
"CDEF:c7=value,20,GT,value,25,GT,5,value,20,-,IF,0,IF" \
"CDEF:c8=value,25,GT,value,30,GT,5,value,25,-,IF,0,IF" \
"CDEF:c9=value,30,GT,value,100,GT,5,value,30,-,IF,0,IF" \
"LINE2:value#000000:" \
"AREA:base20#0A019A:" \
"AREA:base10#0B3A66:" \
"AREA:base0#000000:" \
"STACK:c3#13931E:" \
"STACK:c4#3FAADB:" \
"STACK:c5#8AC608:" \
"STACK:c6#CDCD04:" \
"STACK:c7#F4CE01:" \
"STACK:c8#FFA700:" \
"STACK:c9#FF5F00:"



>-----Original Message-----
>From: Christopher Snell <chris.snell at gmail.com>
>To: Tobias Oetiker <oetiker at ee.ethz.ch>
>Date: Thursday, October 21, 2004, 12:38:11 AM
>Subject: [rrd-users] Re: Base for AREA plots

> On Wed, 20 Oct 2004 21:03:31 +0200 (MEST), Tobias Oetiker
> <oetiker at ee.ethz.ch> wrote:

>> you could use CDEF to establish a value which is constantly -20
>> draw this as AREA and then use STACK for the actual temperature ...

> Thanks, Tobi!  It ended up taking a slightly different CDEF but I
> think I now have what I'm looking for.  Have a look:

> http://chrissnell.com:48000/graphs/?graph_type=temperaturec&start=8000

> Chris

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

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