<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML pré-formatado Carácter";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLpr-formatadoCarcter
        {mso-style-name:"HTML pré-formatado Carácter";
        mso-style-priority:99;
        mso-style-link:"HTML pré-formatado";
        font-family:Consolas;}
span.EstiloCorreioElectrnico20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=PT link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hi Joghan,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>As far as I can understand, your problem is this: “last_update
= 12263196<b>14</b>”.<o:p></o:p></p>
<p class=MsoNormal>As you have a step of 100, and the rrdtool stores the values
at multiples of the step, when you send a value in a timestamp that isn’t a
multiple of your step (100 in your case), it estimates the values at that time
and stores it.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>You can try and set the update time of rrdupdate to be a
multiple of 100 (the one previous to the one that you are at that moment). But
try to use a value retrieved by that “rounded” time, e.g., instead of change
the update time, change the retrieve time to something closer to the multiple
of 100 (but use the multiple of 100 as the update time).<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I hope am right and this helps you.<span style='font-size:
11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>--<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Nuno Pereira<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> rrd-users-bounces@lists.oetiker.ch
[mailto:rrd-users-bounces@lists.oetiker.ch] <b>Em nome de </b>johan thoren<br>
<b>Enviada:</b> terça-feira, 11 de Novembro de 2008 08:13<br>
<b>Para:</b> William R. Lorenz<br>
<b>Cc:</b> rrd-users@lists.oetiker.ch<br>
<b>Assunto:</b> Re: [rrd-users] RRD smoothing - please help<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0>
<tr>
<td valign=top style='padding:0cm 0cm 0cm 0cm'>
<div>
<p class=MsoNormal>Here is the RRD info. Look specifically at <strong>rra[0].cdp_prep[1].value
= 2.2500000000e+00</strong><br>
Im possitive that Im only sending integer values to RRD. And them are sent
every 100 seconds. <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>filename = "99.rrd"<br>
rrd_version = "0003"<br>
step = 100<br>
last_update = 1226319614<br>
ds[sPHI].type = "GAUGE"<br>
ds[sPHI].minimal_heartbeat = 100<br>
ds[sPHI].min = 0.0000000000e+00<br>
ds[sPHI].max = 1.8760000000e+03<br>
ds[sPHI].last_ds = "UNKN"<br>
ds[sPHI].value = 0.0000000000e+00<br>
ds[sPHI].unknown_sec = 0<br>
ds[sPHO].type = "GAUGE"<br>
ds[sPHO].minimal_heartbeat = 100<br>
ds[sPHO].min = 0.0000000000e+00<br>
ds[sPHO].max = 1.8760000000e+03<br>
ds[sPHO].last_ds = "UNKN"<br>
ds[sPHO].value = 4.2000000000e+01<br>
ds[sPHO].unknown_sec = 0<br>
ds[sARI].type = "GAUGE"<br>
ds[sARI].minimal_heartbeat = 100<br>
ds[sARI].min = 0.0000000000e+00<br>
ds[sARI].max = 1.8760000000e+03<br>
ds[sARI].last_ds = "UNKN"<br>
ds[sARI].value = 0.0000000000e+00<br>
ds[sARI].unknown_sec = 0<br>
ds[sARO].type = "GAUGE"<br>
ds[sARO].minimal_heartbeat = 100<br>
ds[sARO].min = 0.0000000000e+00<br>
ds[sARO].max = 1.8760000000e+03<br>
ds[sARO].last_ds = "UNKN"<br>
ds[sARO].value = 0.0000000000e+00<br>
ds[sARO].unknown_sec = 0<br>
rra[0].cf = "MAX"<br>
rra[0].rows = 1000<br>
rra[0].pdp_per_row = 3<br>
rra[0].xff = 0.0000000000e+00<br>
rra[0].cdp_prep[0].value = 0.0000000000e+00<br>
rra[0].cdp_prep[0].unknown_datapoints = 0<br>
<strong>rra[0].cdp_prep[1].value = 2.2500000000e+00</strong><br>
rra[0].cdp_prep[1].unknown_datapoints = 0<br>
rra[0].cdp_prep[2].value = 0.0000000000e+00<br>
rra[0].cdp_prep[2].unknown_datapoints = 0<br>
rra[0].cdp_prep[3].value = 0.0000000000e+00<br>
rra[0].cdp_prep[3].unknown_datapoints = 0<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>Thanks<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>Johan<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><br>
--- Den <b>tis 2008-11-11 skrev William R. Lorenz <i><wrl@express.org></i></b>:<o:p></o:p></p>
</div>
<blockquote style='border:none;border-left:solid #1010FF 1.5pt;padding:0cm 0cm 0cm 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt'>
<p class=MsoNormal style='margin-bottom:12.0pt'>Från: William R. Lorenz
<wrl@express.org><br>
Ämne: Re: [rrd-users] RRD smoothing - please help<br>
Till: "johan thoren" <johan_thoren@yahoo.se><br>
Kopia: rrd-users@lists.oetiker.ch<br>
Datum: tisdag 11 november 2008 08.26<o:p></o:p></p>
<pre>Hej Johan,<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>On Tue, 11 Nov 2008, johan thoren wrote:<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>> William, thanks for your reply! I looking to accomplish a five minute <o:p></o:p></pre><pre>> graph with integer values like below. The problem is that I cant get rid <o:p></o:p></pre><pre>> of the double X.XX values that is produced by RRD.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>If you'd like to get rid of any double X.XX values and convert them to <o:p></o:p></pre><pre>integers, have you considered a Perl or C or Bash or ZSH int/floor/ceil <o:p></o:p></pre><pre>type of function? :-) Perhaps there's some intermediate steps that could <o:p></o:p></pre><pre>also happen between the data returned by rrdtool and your application? <o:p></o:p></pre><pre>It should be rather trivial to convert all those mathematical values? :-)<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>> no.<o:p></o:p></pre><pre>> 4. ____<o:p></o:p></pre><pre>> 3. ____<o:p></o:p></pre><pre>> 2. ____<o:p></o:p></pre><pre>> 1.____ ____<o:p></o:p></pre><pre>> 0. 300. 600. 900. 1200 time<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>With regards to your previous email (as you write -- "my goal is to store <o:p></o:p></pre><pre>data and ONLY display the maximum value"), max values are not necessarily <o:p></o:p></pre><pre>integer values. Are you also able to share more about your overall goals?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>As a disclaimer, I'm sure there's others on this mailing list that know<o:p></o:p></pre><pre>a <o:p></o:p></pre><pre>lot more than I do about such things, and I defer to their wise expertise.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Hope this may help, at least a bit. Take care,<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>-- <o:p></o:p></pre><pre>William R. Lorenz<o:p></o:p></pre></blockquote>
</td>
</tr>
</table>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p>
<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Calibri","sans-serif"'>
<hr size=1 width="100%" align=center>
</span></div>
<table class=MsoNormalTable border=0 cellpadding=0>
<tr>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal>Sök efter kärleken! <br>
Hitta din tvillingsjäl på Yahoo! Dejting: <a
href="http://ad.doubleclick.net/clk;185753627;24584539;x?http://se.meetic.yahoo.net/index.php?mtcmk=148783">http://se.meetic.yahoo.net</a><o:p></o:p></p>
</td>
</tr>
</table>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p>
</div>
</div>
</body>
</html>