<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">This commit seems to fix it: https://github.com/octo/collectd/commit/1e648d412b43d95f5fa85ac08f094067d7984afd<br><div><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>Thanks</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>Kimo</span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr
size="1"> <b><span style="font-weight:bold;">From:</span></b> Kimo Rosenbaum <kimor79@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> collectd <collectd@verplant.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, September 18, 2012 2:13 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [collectd] FreeBSD, write_http, JSON, and StoreRates<br> </font> </div> <br>
<div id="yiv1876909623"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div><span>Debugging further, it dies on</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">if(isfinite (rates[i]))<br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br><span></span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span>https://github.com/collectd/collectd/blob/collectd-5.1/src/utils_format_json.c#L126</span></div><div
style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br><span></span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span>rates[i] is NaN. But I tried just doing isfinite(1) and that kills collectd as well. This is beyond my C knowledge so any help would be appreciated.</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br><span></span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span>Thanks</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><span>Kimo</span></div><div><br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;margin-top:5px;padding-left:5px;"> <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Kimo Rosenbaum <kimor79@yahoo.com><br> <b><span style="font-weight:bold;">To:</span></b> collectd <collectd@verplant.org> <br> <b><span style="font-weight:bold;">Sent:</span></b> Monday, September 17, 2012 11:25 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> [collectd] FreeBSD, write_http, JSON, and StoreRates<br> </font> </div> <br>
<div id="yiv1876909623"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div>Hello,</div><div><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">I'm running collectd 5.1.0 on FreeBSD 9.0-RELEASE. When setting StoreRates to true with JSON format in the write_http plugin, collectd just dies. No errors in the log, no crash dumps, no nothing - Just no more process. The last line in the log is (collectd is compiled with DEBUG):</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">plugin: plugin_write: Writing values via
write_http.</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">With Command format it works (StoreRates true or false). And with JSON format and StoreRates false it works.<br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Any ideas?</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0,
0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Thanks</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Kimo<br></div></div></div></div><br>_______________________________________________<br>collectd mailing list<br><a rel="nofollow" ymailto="mailto:collectd@verplant.org" target="_blank" href="mailto:collectd@verplant.org">collectd@verplant.org</a><br>http://mailman.verplant.org/listinfo/collectd<br><br><br> </div> </div> </blockquote></div> </div></div></div><br>_______________________________________________<br>collectd mailing list<br><a ymailto="mailto:collectd@verplant.org" href="mailto:collectd@verplant.org">collectd@verplant.org</a><br><a href="http://mailman.verplant.org/listinfo/collectd" target="_blank">http://mailman.verplant.org/listinfo/collectd</a><br><br><br> </div>
</div> </blockquote></div> </div></body></html>