[collectd] FreeBSD, write_http, JSON, and StoreRates

Kimo Rosenbaum kimor79 at yahoo.com
Tue Sep 18 23:51:26 CEST 2012


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


Thanks
Kimo




>________________________________
> From: Kimo Rosenbaum <kimor79 at yahoo.com>
>To: collectd <collectd at verplant.org> 
>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 <kimor79 at yahoo.com>
>>To: collectd <collectd at verplant.org> 
>>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
>>collectd at verplant.org
>>http://mailman.verplant.org/listinfo/collectd
>>
>>
>>
>_______________________________________________
>collectd mailing list
>collectd at verplant.org
>http://mailman.verplant.org/listinfo/collectd
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20120918/89395deb/attachment.html>


More information about the collectd mailing list