[rrd-users] update problem or misunderstanding

Lorin Scraba lorins at assist.ro
Fri Nov 7 18:46:32 MET 2003

        I have a little problem with rrdtool. Hope someone will help me. It'a 
graph for in/out traffic on a network interface. Here goes:

rrdtool create arrakis.rrd --step 300 --start 1068224400 
DS:traffic_in:ABSOLUTE:300:U:U DS:traffic_out:ABSOLUTE:300:U:U 
RRA:AVERAGE:0.5:1:12 RRA:AVERAGE:0.5:12:48

For update I use the following script called every 5 minutes from crontab:
traffic_in=`/usr/bin/head -n 1 /var/log/acct/trf_stats_arrakis`
traffic_out=`/usr/bin/tail -n 1 /var/log/acct/trf_stats_arrakis`
rrdtool update /etc/mrtg/arrakis.rrd N:$traffic_in:$traffic_out

And the problem:
rrdtool fetch arrakis.rrd AVERAGE
               traffic_in   traffic_out
1068138000: nan nan
1068141600: nan nan
1068145200: nan nan
1068148800: nan nan
1068152400: nan nan
1068156000: nan nan
1068224400: nan nan
1068228000: nan nan

        No updates in the RRAs and strange timestamps...
10x in advance,
+Lorin Scraba 

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