[rrd-users] Re: update problem or misunderstanding

Lorin Scraba lorins at assist.ro
Fri Nov 7 19:01:39 MET 2003


On Friday 07 November 2003 19:46, you wrote:
> Hi!
>         I have a little problem with rrdtool. Hope someone will help me.
> It'a simple
> 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:
> #!/bin/sh
> 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

Correction. It's:
rrdtool fetch arrakis.rrd AVERAGE --start N-1hours --end N
and the output:
1068224100: nan nan
1068224400: nan nan
1068224700: nan nan
1068225000: nan nan
1068225300: nan nan
1068225600: nan nan
1068225900: nan nan
1068226200: nan nan
1068226500: nan nan
1068226800: nan nan
1068227100: 2.5293076923e+03 1.4533143813e+03
1068227400: nan nan
1068227700: 4.8856666667e+02 1.8800000000e+02
1068228000: nan nan

Those values should be around 45000-50000...What's wrong?


-- 
+Lorin Scraba - Customer Service
+s.c. ASSIST Software s.r.l.
+phone no. 0230 - 524020
-PGP:http://users.assist.ro/~lorins/lorin.gpg
-BOFH excuse #33: pizeo-electric interference

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