<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:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (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]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have an rrd file with a few weeks of data in it. Using fetch,
I can see I have data points every 5 minutes from before 5/10/09 to current
(5/20/09).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>My RRD file def is <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-indent:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>&quot;DS:raw:GAUGE:3600:0:1&quot;,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&quot;RRA:AVERAGE:0.5:1:17280&quot;,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&quot;RRA:AVERAGE:0.5:288:360&quot;,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>When I try to use trend like <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>graph x --start 1241969266 --end 1242829666
'DEF:rawdata=/usr/local/tools/rrd/envysion.ea.rrd:raw:AVERAGE' \<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>'CDEF:trend=rawdata,854400,TREND'&nbsp;
\<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>'VDEF:last=trend,LAST'
'PRINT:last:%2.4lf'<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I get nan<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>It seems I should be able to set the timespan parameter for
TREND to 10 days (10*24*60*60). However, I get nan.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>If I reduce the timespan to a somewhat random, smaller
number (say 850400), then I get a number. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Any thoughts as to why I am getting nan? There are no nan datapoints
in this time range, I&#8217;ve checked with fetch. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Using TRENDNAN yields the same result.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks,<br>
Rob<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'><img width=221
height=58 id="_x0000_i1025" src="cid:image001.jpg@01C9D92D.F8CF2310"><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Century Gothic"><span style='font-size:
10.0pt;font-family:"Century Gothic"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><b><font size=2 color="#5f5f5f" face="Century Gothic"><span
style='font-size:10.0pt;font-family:"Century Gothic";color:#5F5F5F;font-weight:
bold'>Robert Hagens</span></font></b><font size=2 face="Century Gothic"><span
style='font-size:10.0pt;font-family:"Century Gothic"'>&nbsp;</span></font><strong><b><font
color="#0099ff" face="Times New Roman"><span style='color:#0099FF'>|</span></font></b></strong><b><font
size=2 color=black face="Century Gothic"><span style='font-size:10.0pt;
font-family:"Century Gothic";color:black;font-weight:bold'> </span></font></b><font
size=2 face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>Chief
Technical Officer</span></font><strong><b><font color="#0099ff"
face="Times New Roman"><span style='color:#0099FF'>|</span></font></b></strong><font
size=2 color="#0099ff" face="Century Gothic"><span style='font-size:10.0pt;
font-family:"Century Gothic";color:#0099FF'> <b><span style='font-weight:bold'>Envysion,
Inc.</span></b> </span></font><font size=2 face="Century Gothic"><span
style='font-size:10.0pt;font-family:"Century Gothic"'><o:p></o:p></span></font></p>

<p class=MsoNormal><st1:Street w:st="on"><st1:address w:st="on"><font size=2
  face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>950
  Spruce Street</span></font></st1:address></st1:Street><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>
</span></font><strong><b><font color="#0099ff" face="Times New Roman"><span
style='color:#0099FF'>|</span></font></b></strong><font size=2 color="#00ccff"
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic";
color:#00CCFF'> </span></font><st1:place w:st="on"><st1:City w:st="on"><font
  size=2 face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>Louisville</span></font></st1:City></st1:place><font
size=2 face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>,
<st1:State w:st="on">CO</st1:State> <st1:PostalCode w:st="on">80027</st1:PostalCode><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Century Gothic"><span style='font-size:
10.0pt;font-family:"Century Gothic"'>303.590.2365 office </span></font><strong><b><font
color="#0099ff" face="Times New Roman"><span style='color:#0099FF'>|</span></font></b></strong><font
size=2 color="#0099ff" face="Century Gothic"><span style='font-size:10.0pt;
font-family:"Century Gothic";color:#0099FF'> </span></font><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>303.590.2351
fax<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><a href="mailto:rhagens@envysion.com"
title="blocked::mailto:bzigich@envysion.com"><font size=2 color="#0099ff"
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic";
color:#0099FF'><span title="blocked::mailto:bzigich@envysion.com">rhagens@envysion.com</span></span></font></a></span></font><font
size=2 color="#0099ff" face="Century Gothic"><span style='font-size:10.0pt;
font-family:"Century Gothic";color:#0099FF'> </span></font><strong><b><font
color="#0099ff" face="Times New Roman"><span style='color:#0099FF'>|</span></font></b></strong><font
size=2 color="#0099ff" face="Century Gothic"><span style='font-size:10.0pt;
font-family:"Century Gothic";color:#0099FF'> </span></font><a
href="http://www.envysion.com/" title="blocked::http://www.envysion.com/"><font
size=2 color="#0099ff" face="Century Gothic"><span style='font-size:10.0pt;
font-family:"Century Gothic";color:#0099FF'><span
title="blocked::http://www.envysion.com/">www.envysion.com</span></span></font></a><font
size=2 color="#0099ff" face="Century Gothic"><span style='font-size:10.0pt;
font-family:"Century Gothic";color:#0099FF'> </span></font><strong><b><font
color="#0099ff" face="Times New Roman"><span style='color:#0099FF'>|</span></font></b></strong><font
size=2 color=black face="Century Gothic"><span style='font-size:10.0pt;
font-family:"Century Gothic";color:black'> </span></font><b><font size=2
color="#5f5f5f" face="Century Gothic"><span style='font-size:10.0pt;font-family:
"Century Gothic";color:#5F5F5F;font-weight:bold'>Visit our</span></font></b><b><font
size=2 color="#0066ff" face="Century Gothic"><span style='font-size:10.0pt;
font-family:"Century Gothic";color:#0066FF;font-weight:bold'> </span></font></b><a
href="http://managedvideoblog.com/"
title="blocked::http://managedvideoblog.com/"><b><font size=2 color="#0099ff"
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic";
color:#0099FF;font-weight:bold'><span
title="blocked::http://managedvideoblog.com/">blog</span></span></font></b></a><b><font
size=2 face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic";
font-weight:bold'><o:p></o:p></span></font></b></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>