[rrd-users] rrdupdate not working properly?

Lejf Diecks bastard_operator at gmx.li
Tue Sep 5 14:27:14 MEST 2006


Hi,

I'm new to rrdtool. I wrote a Perl script which gathers system information and feeds it into an rrd afterwards (RRDTool v1.0.50). But 'rrdtool update' does'nt work as expected.

At first, I created an empty rrd:

create mem.rrd --start=1157449358 --step=2 
DS:SwapTotal:ABSOLUTE:4:0:U 
DS:SwapUsed:ABSOLUTE:4:0:U 
DS:SwapFree:ABSOLUTE:4:0:U 
DS:Cached:ABSOLUTE:4:0:U 
DS:MemUsed:ABSOLUTE:4:0:U 
DS:MemTotal:ABSOLUTE:4:0:U 
DS:MemFree:ABSOLUTE:4:0:U 
DS:Buffers:ABSOLUTE:4:0:U 
RRA:AVERAGE:0.5:1:338

This is a sample set of data generated by the Perl script:

+------------+-----------+----------+----------+---------+-..
| SysTime    | SwapTotal | SwapUsed | SwapFree | Cached  | 
+------------+-----------+----------+----------+---------+-..
| 1157449360 | 4192956   | 0        | 4192956  | 1796420 | 
+------------+-----------+----------+----------+---------+-..

This is inserted into rrd with:

update mem.rrd 1157449360:4192956:0:4192956:1796420:3152488:4147248:994760:268500

This is what I get with 'rrdtool fetch':

+------------+------------------+------------------+------------------+------------------+--..
| timestamp  | SwapTotal        | SwapUsed         | SwapFree         | Cached           |
+------------+------------------+------------------+------------------+------------------+--..
| 1157449360 | 2.0964780000e+06 | 0.0000000000e+00 | 2.0964780000e+06 | 8.9821000000e+05 |
+------------+------------------+------------------+------------------+------------------+--..

As far as I understand this numbers, 2.0964780000e+06 is 20964780000000000.  This is not even close to the expected value 4192956 :-(

Is there something wrong with the rrd defintion? When I use rrdgraph, the images look somewhat correct, but the values on the y-axis are only half as high as expected.

Can anybody help me?

Regards,
Lejf
-- 


"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list