Hi, im trying to meter my gas mileage (at home) with some electronical stuff and want to store the output in a rra.
I'm fetching the counter (resetetd to zero when read) from my gasmetering system with an snmp device and that works fine. in1=`snmpget -Oqv -v1 -c public 192.168.1.200 1.3.6.1.4.1.5040.1.2.4.1.3.1.3.1` echo $in1 > test.txt rrdtool update gas.rrd N:$in1 the test.txt is for debuggin purposes only and contains the actual value (mostly between 0 and 30, Integer) i opened my rra with following command: rrdtool create gas.rrd -- start 1254344400 -- step 3600 DS:gasverbrauch:ABSOLUTE:7200:U:U RRA:AVERAGE:0.5:1:24 RRA:AVERAGE:0.5:24:31 RRA:AVERAGE:0.5:24:3650 my expection was to get some integer values in the rra, but the output (rrdtool fetch) looks like this: 1254344400: 5.1041666667e-02 1254348000: 0.0000000000e+00 1254351600: 0.0000000000e+00 1254355200: 0.0000000000e+00 1254358800: 0.0000000000e+00 1254362400: 0.0000000000e+00 1254366000: 0.0000000000e+00 1254369600: 2.2205615410e-03 1254373200: 2.2227032103e-03 1254376800: 1.1116401983e-03 1254380400: 6.5060599358e-07 1254384000: 0.0000000000e+00 1254387600: 0.0000000000e+00 1254391200: 0.0000000000e+00 1254394800: 0.0000000000e+00 1254398400: 0.0000000000e+00 1254402000: 0.0000000000e+00 1254405600: 0.0000000000e+00 1254409200: 5.5522882977e-04 1254412800: 1.1107876430e-03 1254416400: nan why are ther so small values? they far away from being an integer ... I can't understand. Where is the mistake I've made? regards Thomas -- View this message in context: http://www.nabble.com/rrdtool---rra-misunderstanding--tp25714818p25714818.html Sent from the RRDTool - User mailing list archive at Nabble.com. _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
