[rrd-users] STACK and NaN values generating weird looking graph.

Rickard Dahlstrand rd at tilde.se
Thu Jul 14 14:58:44 MEST 2005


Hi,

I'm using rrdtool in a solution where data input is some what sporadic. 
The graph is created using multiple files and all the results are 
stacked in a graph. However it seems like when rrdtool is trying to 
display values that are NaN as the first AREA:STACK it corrupts the 
stack in a weird way. This might not be the problem, but it's my first 
thought. You can have a look at the graph at 
http://tilde.se/rrdmailist_graph.png

Can someone please point me in the right direction and tell me if I'm 
doing something wrong and what I can do to correct this. Below is my 
(somewhat edited & simplified) rrd-input. I'm using rrdtool 1.2.8 on 
FreeBSD 4.11.

/Rickard.

/usr/local/bin/rrdtool create xxx.rrd --step 600 
DS:xxxvalue:GAUGE:1200:0:3000 RRA:AVERAGE:0.5:1:600 
RRA:AVERAGE:0.5:3:400 RRA:AVERAGE:0.5:12:400 RRA:AVERAGE:0.5:144:40

/usr/local/bin/rrdtool update xxx.rrd --template xxxvalue N:123

/usr/local/bin/rrdtool graph - --imgformat=PNG --start=-1d --end=NOW 
--titl    e="xxxx" --base=1000 --height=400 --width=850 --lower-limit=0 
--vertical-label="xxxx"
 DEF:a1="xxx.rrd":xxxvalue:AVERAGE
 DEF:a2="xxx.rrd":xxxvalue:AVERAGE
 DEF:a3="xxx.rrd":xxxvalue:AVERAGE
 DEF:a4="xxx.rrd":xxxvalue:AVERAGE
 DEF:a5="xxx.rrd":xxxvalue:AVERAGE
 DEF:a6="xxx.rrd":xxxvalue:AVERAGE
 DEF:a7="xxx.rrd":xxxvalue:AVERAGE
 DEF:a8="xxx.rrd":xxxvalue:AVERAGE
 DEF:a9="xxx.rrd":xxxvalue:AVERAGE
 DEF:a10="xxx.rrd":xxxvalue:AVERAGE
 DEF:a11="xxx.rrd":xxxvalue:AVERAGE
 DEF:a12="xxx.rrd":xxxvalue:AVERAGE
 DEF:a13="xxx.rrd":xxxvalue:AVERAGE
 DEF:a14="xxx.rrd":xxxvalue:AVERAGE
 DEF:a15="xxx.rrd":xxxvalue:AVERAGE
 DEF:a16="xxx.rrd":xxxvalue:AVERAGE
 DEF:a17="xxx.rrd":xxxvalue:AVERAGE
 DEF:a18="xxx.rrd":xxxvalue:AVERAGE
 DEF:a19="xxx.rrd":xxxvalue:AVERAGE
 DEF:a20="xxx.rrd":xxxvalue:AVERAGE
 AREA:a1#990000:"XXXX":STACK
 GPRINT:a1:AVERAGE:"%5.0lf tick/min"
 AREA:a2#CC0000:"XXXX":STACK
 GPRINT:a2:AVERAGE:"%5.0lf tick/min\l"
 AREA:a3#FF0000:"XXXX":STACK
 GPRINT:a3:AVERAGE:"%5.0lf tick/min"
 AREA:a4#FF3333:"XXXX":STACK
 GPRINT:a4:AVERAGE:"%5.0lf tick/min\l"
 AREA:a5#FF6666:"XXXX":STACK
 GPRINT:a5:AVERAGE:"%5.0lf tick/min"
 AREA:a6#FF9999:"XXXX":STACK
 GPRINT:a6:AVERAGE:"%5.0lf tick/min\l"
 AREA:a7#FFCCCC:"XXXX":STACK
 GPRINT:a7:AVERAGE:"%5.0lf tick/min"
 AREA:a8#999900:"XXXX":STACK
 GPRINT:a8:AVERAGE:"%5.0lf tick/min\l"
 AREA:a9#CCCC00:"XXXX":STACK
 GPRINT:a9:AVERAGE:"%5.0lf tick/min"
 AREA:a10#FFFF00:"XXXX":STACK
 GPRINT:a10:AVERAGE:"%5.0lf tick/min\l"
 AREA:a11#FFFF99:"XXXX":STACK
 GPRINT:a11:AVERAGE:"%5.0lf tick/min"
 AREA:a12#000099:"XXXX":STACK
 GPRINT:a12:AVERAGE:"%5.0lf tick/min\l"
 AREA:a13#0000CC:"XXXX":STACK
 GPRINT:a13:AVERAGE:"%5.0lf tick/min"
 AREA:a14#0000FF:"XXXX":STACK
 GPRINT:a14:AVERAGE:"%5.0lf tick/min\l"
 AREA:a15#6666FF:"XXXX":STACK
 GPRINT:a15:AVERAGE:"%5.0lf tick/min"
 AREA:a16#9999FF:"XXXX":STACK
 GPRINT:a16:AVERAGE:"%5.0lf tick/min\l"
 AREA:a17#CCCCFF:"XXXX":STACK
 GPRINT:a17:AVERAGE:"%5.0lf tick/min"
 AREA:a18#009900:"XXXX":STACK
 GPRINT:a18:AVERAGE:"%5.0lf tick/min\l"
 AREA:a19#00CC00:"XXXX":STACK
 GPRINT:a19:AVERAGE:"%5.0lf tick/min"
 AREA:a20#00FF00:"XXXX":STACK
 GPRINT:a20:AVERAGE:"%5.0lf tick/min\l"


/usr/local/bin/rrdtool dump xxx.rra
**SNIPP**
                        <!-- 2005-07-13 20:40:00 CEST / 1121280000 --> 
<row><v> NaN </v></row>
                        <!-- 2005-07-13 20:50:00 CEST / 1121280600 --> 
<row><v> NaN </v></row>
                        <!-- 2005-07-13 21:00:00 CEST / 1121281200 --> 
<row><v> 2.2494920656e+01 </v></row>
                        <!-- 2005-07-13 21:10:00 CEST / 1121281800 --> 
<row><v> 2.1597148017e+01 </v></row>
                        <!-- 2005-07-13 21:20:00 CEST / 1121282400 --> 
<row><v> NaN </v></row>
                        <!-- 2005-07-13 21:30:00 CEST / 1121283000 --> 
<row><v> NaN </v></row>
                        <!-- 2005-07-13 21:40:00 CEST / 1121283600 --> 
<row><v> NaN </v></row>
                        <!-- 2005-07-13 21:50:00 CEST / 1121284200 --> 
<row><v> NaN </v></row>
                        <!-- 2005-07-13 22:00:00 CEST / 1121284800 --> 
<row><v> 2.1162254851e+01 </v></row>
                        <!-- 2005-07-13 22:10:00 CEST / 1121285400 --> 
<row><v> NaN </v></row>
                        <!-- 2005-07-13 22:20:00 CEST / 1121286000 --> 
<row><v> NaN </v></row>
**SNIPP**

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list