[rrd-developers] rrdtool fetch / JSON-Output

Michael Markstaller mm at elabnet.de
Fri Jan 13 14:12:55 CET 2012


Hi,

thanks for looking at it, maybe I was too nervous on my first post ;)
Now its attached.. (I use this with quilt in the debian-lenny package)
Simply copied the fetch-function with some brackets..


regards

Michael

Am 13.01.2012 08:25, schrieb Tobias Oetiker:
> Hi Michael,
>
> I guess adding json will help many people, so I will add it ...
> (got another patch already from a few months back, but if you can
> send me yours, I will be glad to take it for inspiration too :-)
> (it was not attached)
>
> cheers
> tobi
>
> Yesterday Michael Markstaller wrote:
>
>> Hi,
>>
>> my first post to the list and to be honest: I havent followed this list
>> and rrdtool development for many years though using it widely&  every
>> single day. It just worked to well ;)
>>
>> I created a little patch to make "rrdtool fetchj .." simply output json
>> instead of text, attached.
>>
>> Intentions, the answers to why etc:
>> - Target-Platforms are rather low-end (AMD Geode, OpenWRT Routers), so
>> with rrdtool 1.3, 1.4 was dead slow in graphing on these low-ends during
>> my tests.
>> - avoid (another) shellscript or CGI to wrap "rrdtool fetch" output into
>> JSON what I needed to feed jQuery/Flot in this case.
>> - but "rrdtool fetch" does exactly what I need, with all it's benefits,
>> fast, small data to transfer, right data, autoscaling etc.pp.
>>
>>
>> Please let me know your thoughts, if it makes sense at all.
>> I know for sure that a patch against an rather old version isn't perfect
>> but it was as mentioned chosen precisely..
>>
>> Could also do it for current 1.4/trunk but it's currently not my goal
>> because of serious performance-problems (which might have many other
>> causes than rrdtool itself for sure!)
>>
>>
>> best regards
>>
>> Michael Markstaller
>>
>> _______________________________________________
>> rrd-developers mailing list
>> rrd-developers at lists.oetiker.ch
>> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
>>
>>
>

-- 
Michael Markstaller

Elaborated Networks GmbH
www.elabnet.de - www.wiregate.de
Lise-Meitner-Str. 1, D-85662 Hohenbrunn, Germany
fon: +49-8102-8951-60, fax: +49-8102-8951-80
Geschäftsführer: Stefan Werner, Michael Markstaller
Amtsgericht München HRB 125120, Ust-ID: DE201281054
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rrdtool-1.3.1-fetchj.patch
Type: text/x-patch
Size: 3213 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20120113/e1e85ca1/attachment.bin 


More information about the rrd-developers mailing list