[rrd-users] RRDupadate

abodrov abodrov at gmail.com
Mon Jun 22 19:18:04 CEST 2009


Hello Everybody, no0b question,


have created a simple RRDDB:

/usr/bin/rrdtool create /root/abodrov/tq2/cpu.rrd --start 1245416460 --step
60 DS:cpuload:GAUGE:60:0.0:100 RRA:AVERAGE:0.5:1:90

values which i'm trying to insert are float #s starting with 0.xxx 

Example:

1245418140:0.162
1245418200:0.183
1245418260:0.418
1245418320:0.431

for some reason when i graph those values, numbers are treated as
162,183,418,431, instead of 0.xxx. Just for the test, i have converted these
#s to below and the graph comes out good.

1245418140:1.162
1245418200:1.183
1245418260:1.418
1245418320:1.431

looks like when vlaues are below 1.00 values are not entered correctly.
Below is the update command i use

/usr/bin/rrdtool update /root/abodrov/tq2/cpu.rrd 1245418140:0.162

To graph i use this:

/usr/bin/rrdtool graph /root/abodrov/tq2/cpu.png -w 994 -h 358 -a PNG
--start 1245416460 --end 1245421800 --title "CPU LOAD" --vertical-label
"%Used" DEF:cpu_all=/root/abodrov/tq2/cpu.rrd:cpuload:AVERAGE
LINE1:cpu_all#ff0000:CPU



-- 
View this message in context: http://n2.nabble.com/RRDupadate-tp3137557p3137557.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.



More information about the rrd-users mailing list