This commit seems to fix it: 
https://github.com/octo/collectd/commit/1e648d412b43d95f5fa85ac08f094067d7984afd


Thanks
Kimo




>________________________________
> From: Kimo Rosenbaum <[email protected]>
>To: collectd <[email protected]> 
>Sent: Tuesday, September 18, 2012 2:13 PM
>Subject: Re: [collectd] FreeBSD, write_http, JSON, and StoreRates
> 
>
>Debugging further, it dies on
>
>
>if(isfinite (rates[i]))
>
>
>
>https://github.com/collectd/collectd/blob/collectd-5.1/src/utils_format_json.c#L126
>
>
>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.
>
>
>Thanks
>Kimo
>
>
>
>>________________________________
>> From: Kimo Rosenbaum <[email protected]>
>>To: collectd <[email protected]> 
>>Sent: Monday, September 17, 2012 11:25 PM
>>Subject: [collectd] FreeBSD, write_http, JSON, and StoreRates
>> 
>>
>>Hello,
>>
>>
>>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):
>>
>>
>>plugin: plugin_write: Writing values via write_http.
>>
>>
>>With Command format it works (StoreRates true or false). And with JSON format 
>>and StoreRates false it works.
>>
>>
>>
>>Any ideas?
>>
>>
>>Thanks
>>Kimo
>>
>>_______________________________________________
>>collectd mailing list
>>[email protected]
>>http://mailman.verplant.org/listinfo/collectd
>>
>>
>>
>_______________________________________________
>collectd mailing list
>[email protected]
>http://mailman.verplant.org/listinfo/collectd
>
>
>
_______________________________________________
collectd mailing list
[email protected]
http://mailman.verplant.org/listinfo/collectd

Reply via email to