[rrd-users] how record per hour data

ccddtt ccddtt at 21cn.com
Wed Oct 12 11:55:22 CEST 2011


Hi,rrd-users,  
   
      I want use rrdtool record cpu usage per hour.BUT not have data.

I use this command:
 rrdtool create cpu.rrd --step 3600 DS:cpufree:GAUGE:700:0:100 RRA:AVERAGE:0.5:1:12

then,i use this command insert data to cpu.rrd:
/usr/bin/rrdtool update cpu.rrd N:55

not found data in cpu.rrd

and then,i used crond per hour run this command inster data to cpu.rrd, also no data.

I use rrdtool dump cpu.rrd message:

[root at pyt]# rrdtool dump cpu.rrd 
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rrd SYSTEM "http://oss.oetiker.ch/rrdtool/rrdtool.dtd">
<!-- Round Robin Database Dump -->
<rrd>
<version>0003</version>
<step>3600</step> <!-- Seconds -->
<lastupdate>1318410719</lastupdate> <!-- 2011-10-12 17:11:59 CST -->
<ds>
<name> cpufree </name>
<type> GAUGE </type>
<minimal_heartbeat>700</minimal_heartbeat>
<min>0.0000000000e+00</min>
<max>1.0000000000e+02</max>
<!-- PDP Status -->
<last_ds>24</last_ds>
<value>5.6788305040e+03</value>
<unknown_sec> 632 </unknown_sec>
</ds>
<!-- Round Robin Archives -->
<rra>
<cf>AVERAGE</cf>
<pdp_per_row>1</pdp_per_row> <!-- 3600 seconds -->
<params>
<xff>5.0000000000e-01</xff>
</params>
<cdp_prep>
<ds>
<primary_value>0.0000000000e+00</primary_value>
<secondary_value>0.0000000000e+00</secondary_value>
<value>NaN</value>
<unknown_datapoints>0</unknown_datapoints>
</ds>
</cdp_prep>
<database>
<!-- 2011-10-12 06:00:00 CST / 1318370400 --> <row><v>NaN</v></row>
<!-- 2011-10-12 07:00:00 CST / 1318374000 --> <row><v>NaN</v></row>
<!-- 2011-10-12 08:00:00 CST / 1318377600 --> <row><v>NaN</v></row>
<!-- 2011-10-12 09:00:00 CST / 1318381200 --> <row><v>NaN</v></row>
<!-- 2011-10-12 10:00:00 CST / 1318384800 --> <row><v>NaN</v></row>
<!-- 2011-10-12 11:00:00 CST / 1318388400 --> <row><v>NaN</v></row>
<!-- 2011-10-12 12:00:00 CST / 1318392000 --> <row><v>NaN</v></row>
<!-- 2011-10-12 13:00:00 CST / 1318395600 --> <row><v>NaN</v></row>
<!-- 2011-10-12 14:00:00 CST / 1318399200 --> <row><v>NaN</v></row>
<!-- 2011-10-12 15:00:00 CST / 1318402800 --> <row><v>NaN</v></row>
<!-- 2011-10-12 16:00:00 CST / 1318406400 --> <row><v>NaN</v></row>
<!-- 2011-10-12 17:00:00 CST / 1318410000 --> <row><v>NaN</v></row>
</database>
</rra>
</rrd>



 Thanks!


2011-10-12
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20111012/dc980704/attachment.htm 


More information about the rrd-users mailing list