<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7601.17655">
<STYLE>BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="MARGIN-TOP: 10px; MARGIN-LEFT: 10px; MARGIN-RIGHT: 10px">
<DIV><FONT face=Verdana><FONT size=2><FONT
size=3>Hi,<SPAN>rrd-users</SPAN>,</FONT> </FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2> </FONT><FONT
size=3> </FONT></FONT></DIV>
<DIV><FONT face=Verdana> I want use rrdtool
record cpu usage per hour.BUT not have data.</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>I use this command:</FONT></DIV>
<DIV><FONT face=Verdana> rrdtool create cpu.rrd --step 3600
DS:cpufree:GAUGE:700:0:100 RRA:AVERAGE:0.5:1:12</FONT></DIV>
<DIV><FONT face=Verdana></FONT><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>then,i use this command insert data to
cpu.rrd:</FONT></DIV>
<DIV><FONT face=Verdana>/usr/bin/rrdtool update cpu.rrd N:55</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>not found data in cpu.rrd</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>and then,i used crond per hour run this command inster
data to cpu.rrd, also no data.</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>I use rrdtool dump cpu.rrd message:</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV>
<DIV>[root@pyt]# rrdtool dump cpu.rrd </DIV>
<DIV><?xml version="1.0" encoding="utf-8"?></DIV>
<DIV><!DOCTYPE rrd SYSTEM "http://oss.oetiker.ch/rrdtool/rrdtool.dtd"></DIV>
<DIV><!-- Round Robin Database Dump --></DIV>
<DIV><rrd></DIV>
<DIV><version>0003</version></DIV>
<DIV><step>3600</step> <!-- Seconds --></DIV>
<DIV><lastupdate>1318410719</lastupdate> <!-- 2011-10-12 17:11:59 CST --></DIV>
<DIV></DIV>
<DIV><ds></DIV>
<DIV><name> cpufree </name></DIV>
<DIV><type> GAUGE </type></DIV>
<DIV><minimal_heartbeat>700</minimal_heartbeat></DIV>
<DIV><min>0.0000000000e+00</min></DIV>
<DIV><max>1.0000000000e+02</max></DIV>
<DIV></DIV>
<DIV><!-- PDP Status --></DIV>
<DIV><last_ds>24</last_ds></DIV>
<DIV><value>5.6788305040e+03</value></DIV>
<DIV><unknown_sec> 632 </unknown_sec></DIV>
<DIV></ds></DIV>
<DIV></DIV>
<DIV><!-- Round Robin Archives --></DIV>
<DIV><rra></DIV>
<DIV><cf>AVERAGE</cf></DIV>
<DIV><pdp_per_row>1</pdp_per_row> <!-- 3600 seconds --></DIV>
<DIV></DIV>
<DIV><params></DIV>
<DIV><xff>5.0000000000e-01</xff></DIV>
<DIV></params></DIV>
<DIV><cdp_prep></DIV>
<DIV><ds></DIV>
<DIV><primary_value>0.0000000000e+00</primary_value></DIV>
<DIV><secondary_value>0.0000000000e+00</secondary_value></DIV>
<DIV><value>NaN</value></DIV>
<DIV><unknown_datapoints>0</unknown_datapoints></DIV>
<DIV></ds></DIV>
<DIV></cdp_prep></DIV>
<DIV><database></DIV>
<DIV><!-- 2011-10-12 06:00:00 CST / 1318370400 --> <row><v>NaN</v></row></DIV>
<DIV><!-- 2011-10-12 07:00:00 CST / 1318374000 --> <row><v>NaN</v></row></DIV>
<DIV><!-- 2011-10-12 08:00:00 CST / 1318377600 --> <row><v>NaN</v></row></DIV>
<DIV><!-- 2011-10-12 09:00:00 CST / 1318381200 --> <row><v>NaN</v></row></DIV>
<DIV><!-- 2011-10-12 10:00:00 CST / 1318384800 --> <row><v>NaN</v></row></DIV>
<DIV><!-- 2011-10-12 11:00:00 CST / 1318388400 --> <row><v>NaN</v></row></DIV>
<DIV><!-- 2011-10-12 12:00:00 CST / 1318392000 --> <row><v>NaN</v></row></DIV>
<DIV><!-- 2011-10-12 13:00:00 CST / 1318395600 --> <row><v>NaN</v></row></DIV>
<DIV><!-- 2011-10-12 14:00:00 CST / 1318399200 --> <row><v>NaN</v></row></DIV>
<DIV><!-- 2011-10-12 15:00:00 CST / 1318402800 --> <row><v>NaN</v></row></DIV>
<DIV><!-- 2011-10-12 16:00:00 CST / 1318406400 --> <row><v>NaN</v></row></DIV>
<DIV><!-- 2011-10-12 17:00:00 CST / 1318410000 --> <row><v>NaN</v></row></DIV>
<DIV></database></DIV>
<DIV></rra></DIV>
<DIV></rrd></DIV></DIV>
<DIV><FONT face=Verdana> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> Thanks!<FONT size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" SIZE=2>
</FONT></DIV>
<DIV><FONT color=#c0c0c0><FONT size=2></FONT></DIV>
<DIV><FONT size=2>2011-10-12</FONT></DIV>
<DIV><FONT size=2></FONT>
<DIV><FONT size=2><FONT size=2 face=Verdana><FONT size=2><SPAN
style="FONT-SIZE: 10pt"
lang=EN-US> </DIV></DIV></SPAN></FONT></FONT></FONT></FONT></FONT></BODY></HTML>