[collectd] [PATCH] utils_format_json: serialize nan and inf as null, as per JSON spec

2010-02-04 Thread Chris Buben
I'm deserializing JSON output from the write_http plugin using ruby-yajl. yajl was puking on the literal value nan encoded in the output. [ { plugin: memcached, interval: 10, host: myhost, values: [ nan, 5 ], time:

Re: [collectd] [PATCH] utils_format_json: serialize nan and inf as null, as per JSON spec

2010-02-04 Thread Florian Forster
Hi Chris, On Thu, Feb 04, 2010 at 12:52:30AM -0800, Chris Buben wrote: I'm deserializing JSON output from the write_http plugin using ruby-yajl. yajl was puking on the literal value nan encoded in the output. thanks for your patch :) I think it's kind of weird that JSON doesn't differentiate

Re: [collectd] [PATCH] utils_format_json: serialize nan and inf as null, as per JSON spec

2010-02-04 Thread Chris Buben
Hi Florian, On Feb 4, 2010, at 1:20 AM, Florian Forster wrote: thanks for your patch :) I think it's kind of weird that JSON doesn't differentiate between -inf, inf and nan, but since that's what the standard says, that's what we should be doing. My pleasure, and thank you for a great piece

Re: [collectd] [PATCH] utils_format_json: serialize nan and inf as null, as per JSON spec

2010-02-04 Thread Florian Forster
On Thu, Feb 04, 2010 at 02:50:36AM -0800, Chris Buben wrote: With your proposed approach, won't we still get invalid json on a platform where isinf doesn't get defined? In theory, yes. This doesn't matter in my particular experience (and never will, as on RHEL we'll always end up with isinf

Re: [collectd] Different OS for server and client

2010-02-04 Thread Wallace, Ann
On 2/4/10 12:24 AM, Florian Forster o...@verplant.org wrote: On Tue, Feb 02, 2010 at 02:39:43PM -0800, Wallace, Ann wrote: Are *all* values sent from Linux to Solaris NaN or just some of them? Not all of the values from Linux to Solaris are NaN. CPU, Disk i/o, network all work, df,

Re: [collectd] Different OS for server and client

2010-02-04 Thread Florian Forster
Hi Ann, On Thu, Feb 04, 2010 at 08:11:06AM -0800, Wallace, Ann wrote: Do you, by any chance, still have the config.log file available? I do not but I can rebuild to get the config.log if that will help. Is there something in the log file I should be looking for? that'd be great. This log

Re: [collectd] Different OS for server and client

2010-02-04 Thread Wallace, Ann
On 2/4/10 8:53 AM, Florian Forster o...@verplant.org wrote: Hi Ann, On Thu, Feb 04, 2010 at 08:11:06AM -0800, Wallace, Ann wrote: Do you, by any chance, still have the config.log file available? I do not but I can rebuild to get the config.log if that will help. Is there something in

Re: [collectd] Different OS for server and client

2010-02-04 Thread Florian Forster
On Thu, Feb 04, 2010 at 10:27:49AM -0800, Wallace, Ann wrote: checking if doubles are stored in x86 representation This string in is not in either of the config.log files. Either is the SPARC endianflip string. The only thing I could find along the same lines is checking for checking for

Re: [collectd] Different OS for server and client

2010-02-04 Thread Wallace, Ann
On 2/4/10 11:16 AM, Florian Forster o...@verplant.org wrote: On Thu, Feb 04, 2010 at 10:27:49AM -0800, Wallace, Ann wrote: checking if doubles are stored in x86 representation This string in is not in either of the config.log files. Either is the SPARC endianflip string. The only thing