7 echo "Args: input file or input file doesnt exist"
13 START_TIME=`head -1 $INPUT`
15 echo "Createing rrd archive"
16 rrdtool create data.rrd --step 30 \
18 DS:offset:GAUGE:30:U:U \
19 DS:jitter:GAUGE:30:U:U \
20 RRA:AVERAGE:0.5:1:480 \
21 RRA:AVERAGE:0.5:1:2880 \
22 RRA:AVERAGE:0.5:7:2880 \
23 RRA:AVERAGE:0.5:30:2880 \
24 RRA:AVERAGE:0.5:365:2880
27 cat $INPUT | while read line
31 OFFSET=`echo $line2 |awk '{ print $9 }'`
32 JITTER=`echo $line2 |awk '{ print $10 }'`
34 rrdtool update data.rrd $TIME:$OFFSET:$JITTER
35 #echo "rrdtool update data.rrd $TIME:$OFFSET:$JITTER"
39 END_2HR=`echo $START_TIME+7200|bc`
40 rrdtool graph 2hr_off.png --start $START_TIME \
42 DEF:2hr_jit=data.rrd:jitter:AVERAGE \
46 END_2HR=`echo $START_TIME+7200|bc`
47 rrdtool graph 2hr_jit.png --start $START_TIME \
49 DEF:2hr_off=data.rrd:offset:AVERAGE \