[rrd-users] rrdgraph never returns with small step

Alex van den Bogaerdt alex at ergens.op.het.net
Thu Jun 19 21:22:24 CEST 2008


On Thu, Jun 19, 2008 at 01:22:09PM -0400, Josh Wyatt wrote:

> You got it, see attached, three shell scripts for testcase1:

> Run them in sequence: tc1-create.sh, tc1-update.sh, then tc1-graph.sh You 
> will see that the graph command hangs.

I modified and combined your scripts.  I think it will do the
same as your originals.  See attached, please test.

The last modification is that I put everyting in a for-each loop.
I didn't bother to count the different versions but there's quite
a few, as early as 1.2.9 upto 1.2.27 or so.


No hangs.
 
> Let me know if I can assist further.  Also FYI, I am running 1.3.0 
> currently.  Happy to try another version.

I think this may be wise.

-- 
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/
-------------- next part --------------
#!/bin/sh
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib;export LD_LIBRARY_PATH

#RRDTOOL=/usr/bin/rrdtool
#RRDTOOL=~/svn//rrdtool-1.2/src/rrdtool
#RRDTOOL=/usr/local/rrdtool-1.2.11/bin/rrdtool

for RRDTOOL in /usr/local/rrdtool-1.2*/bin/rrdtool
do


$RRDTOOL --version

TIMESTAMP="1213895143"
$RRDTOOL create tc1.rrd -b $TIMESTAMP -s 1  \
DS:00:GAUGE:5:0:1024  \
RRA:AVERAGE:.5:1:30

TS=$TIMESTAMP
for i in `seq 0 64 1024`; do
	TS=`echo "$TS 1 + p" |dc`;
	echo "Updating tc1.rrd with timestamp=$TS and value=$i"
	$RRDTOOL update tc1.rrd -t 00 $TS:$i
done

START=$TIMESTAMP
END=`echo "$START 20 + p" |dc`

echo "Graphing with '--x-grid none'.  START=$START END=$END"
$RRDTOOL graph tc1.png  -s $START -e $END -w 1000 -h 200 -a PNG  \
--x-grid none \
DEF:00=tc1.rrd:00:AVERAGE \
LINE1:00#00cccc

echo "Graphing without '--x-grid none'.  START=$START END=$END"
$RRDTOOL graph tc2.png  -s $START -e $END -w 1000 -h 200 -a PNG  \
DEF:00=tc1.rrd:00:AVERAGE \
LINE1:00#00cccc

done


More information about the rrd-users mailing list