Very cool, Gary.  Awesome to the max!<br><br>Thank you very much for sharing your experience and a fix!<br><br>Just for the record - when using this double check the rrdtool dir and the user:group permissions - not everyone uses those same settings!
<br><br>Again, thanks a lot!<br><br><div><span class="gmail_quote">On 12/5/07, <b class="gmail_sendername">Gary Baluha</b> <<a href="mailto:gumby3203@gmail.com">gumby3203@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I wrote a script to clean up these bogus values.  Of course, if there are trend graphs where numbers large enough for NNNe+1NN to be valid, the script will have unexpected results.  To run the script, you need to "cd" into the directory with the rrd files to be fixed.
<div><span class="e" id="q_116ac1a1a740a49c_1"><br><br><div class="gmail_quote">On Dec 5, 2007 2:05 PM, Gary Baluha <<a href="mailto:gumby3203@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
gumby3203@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
cd hobbit_data_dir/host_machine<br>rrdtool dump clock.rrd > clock.xml<br><br>I know any number that shows up greater than "e+1nn" is bogus, so I search for "e+1".<br><br>One of several bogus data lines:
<br><!-- 2007-11-26 19:00:00 EST / 1196121600 --> <row><v> 3.9551632477e+169 </v></row><br><br>Same line, changed to NaN (repeat for all affected lines):<br><!-- 2007-11-26 19:00:00 EST / 1196121600 --> <row><v> NaN </v></row>
<br><br>rrdtool restore clock.xml clock.rrd<div><div></div><div><br><br><div class="gmail_quote">On Dec 5, 2007 11:57 AM, Kern, Thomas <<a href="mailto:Thomas.Kern@hq.doe.gov" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Thomas.Kern@hq.doe.gov
</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Could you give a short example of a bogus and a changed 
(NaN) entry, just in case that is also happening to some of my data 
files?</font></span></div>
<div> </div>
<p><font size="2">/Thomas Kern<br>/301-903-2211 (O)<br>/301-905-6427 (M)</font> 
</p>
<div> </div><br>
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
  <div dir="ltr" align="left" lang="en-us">
  <hr>
  <font face="Tahoma" size="2"></font><div><font face="Tahoma" size="2"><b>From:</b> Gary Baluha [mailto:<a href="mailto:gumby3203@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gumby3203@gmail.com
</a>] 
  <br></font></div><font face="Tahoma" size="2"><b>Sent:</b> Wednesday, December 05, 2007 11:53 AM</font><div><font face="Tahoma" size="2"><br><b>To:</b> 
  <a href="mailto:hobbit@hswn.dk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">hobbit@hswn.dk</a><br><b>Subject:</b> Re: [hobbit] strange graph behavior - random 
  machines & graphs<br></font></div><br></div>
  <div><div></div>I am now completely convinced that the strange behavior of the 
  graphs is due to some bad data getting inserted into the .rrd database 
  files.  The bad data is always the same value: 5.1776682516e+170.  
  That's what the value looks like when you do an rrddump on the .rrd database 
  file. <br><br>I still have no idea where this value is coming from, but I have 
  at least determined how to fix these graphs.  I'm working on a script to 
  do this, but for now, I manually do an rrddump of the file, change all bogus 
  values to NaN (basically, searching for "e+1", since none of the values I 
  trend generally get that large, so I know these entries are just averaged 
  values of correct data and the 5.17... number), and then do an rrdrestore from 
  the modified xml file.<br><br>It would be nice to determine where this problem 
  is coming from, though.<br></div></blockquote></div>
</blockquote></div><br>
</div></div></blockquote></div><br>
</span></div><br>To unsubscribe from the hobbit list, send an e-mail to<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br><br><br clear="all">
</blockquote></div><br><br clear="all"><br>-- <br>Josh Luthman<br>Office: 937-552-2340<br>Direct: 937-552-2343<br>1100 Wayne St<br>Suite 1337<br>Troy, OH 45373<br><br>Those who don't understand UNIX are condemned to reinvent it, poorly.
<br>--- Henry Spencer