OpenVZ Forum - RDF feed
type: channel
items: RRDTool - Create
items: Re: RRDTool - Create

RRDTool - Create
type: item
description: Hi, I have read http://wiki.openvz.org/Traffic_accounting_through_proc and I have tried using the following to create the RRD file: rrdtool create $RRDFILE --step 300 \ DS:ifOutOctets:COUNTER:1800:0:4294967295 \ RRA:AVERAGE:0.5:1:2016 \ RRA:HWPREDICT:1440:0.1:0.0035:288 When I tried to run the script, it gave the following error: ERROR: expected 1 data source readings (got 2) from N:692842110:837150828 Can someone please help me out with this? Regards, Eugenio Pacheco
creator: eugeniopacheco
date: 2008-02-07T20:21:10-00:00

Re: RRDTool - Create
type: item
description: Hi, Actually after reading rrdcreate's man page I noticed what was wrong and used the following: rrdtool create $RRDFILE --step 300 \ DS:VEIN:COUNTER:1800:0:4294967295 \ DS:VEOUT:COUNTER:1800:0:4294967295 \ RRA:AVERAGE:0.5:1:2016 \ Does anyone recommend anything different? Also, rrdtool fetch /var/lib/rrd/<veid>.rrd AVERAGE -s -3600 returns something like: VEIN VEOUT 1202487300: 3.4449437980e+03 6.9849019057e+04 1202487600: 7.1076855516e+03 1.2289529187e+05 1202487900: 6.4429443605e+03 1.2638349476e+05 1202488200: 6.1063845867e+03 1.0303899827e+05 1202488500: 7.5643142084e+03 1.3723686258e+05 1202488800: 7.8674973670e+03 1.0243710066e+05 1202489100: 6.2607785403e+03 1.8215705961e+05 1202489400: 8.8617432437e+03 2.2748972868e+05 1202489700: 8.0197645474e+03 2.2559687883e+05 1202490000: 8.4259454226e+03 2.1643212370e+05 1202490300: 1.1831007105e+04 1.6583397290e+05 1202490600: 6.7288236935e+03 1.4106730947e+05 1202490900: nan nan Can anyone tell me what it means? Or am I using it wrong? I know it shows the data collected on the last 3600 seconds and as it's collected every 300 seconds it shows each collection. Would it be in bytes? like 344bytes in and 6984bytes out on the first collection? Also, can anyone suggest how to graph it nicely for bandwidth usage? Thanks in advance, Eugenio Pacheco
creator: eugeniopacheco
date: 2008-02-08T17:18:17-00:00