The only problem I have with my graph code below is that I can't alias the variable names to display something more informative in the graph legend. Is there a solution for this, or is this just a feature of SPLITNCV that one has to live with? I tried replacing the @variables@ with explicit values (one set of the lines below for each NCV variable), but the graph would not display...
Kind regards,
SebA
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of SebA Sent: 22 January 2013 14:49 To: 'Michael Beatty'; xymon at xymon.com Subject: Re: [Xymon] NCV RRD graphing for JSON values
<snip>
However, in this case, I have asked the developer to put some carriage returns into his JSON HTML display, so that looks like it will solve it, although the first rrd file is being created as _u instead of u. That's not too important. It looks like the rrd files are getting the correct data anyway now, so it is just the graphing to do. The example I found didn't work for me. This did:
DEF:p at RRDIDX@=@RRDFN@:lambda:AVERAGE LINE2:p at RRDIDX@#@COLOR@:@RRDPARAM@ GPRINT:p at RRDIDX@:LAST:@RRDPARAM@ \: %5.1lf%s (cur) GPRINT:p at RRDIDX@:MAX: \: %5.1lf%s (max) GPRINT:p at RRDIDX@:MIN: \: %5.1lf%s (min) GPRINT:p at RRDIDX@:AVERAGE: \: %5.1lf%s (avg)\n
I had to replace @RRDMETA@ with @RRDPARAM@ based on an old post.
Kind regards,
SebA
<snip>
On 01/22/2013 05:55 AM, SebA wrote:
I was hoping that Xymon's NCV parsing would understand JSON as the tutorial @ http://www.xymon.com/xymon/help/howtograph.html does not specify that the NCVs need to be on seperate lines (although I subsequently found that "man xymond_rrd" does). It's a shame because a lot of data is presented as JSON these days. For example, I have this test, which returns this:
http://URLremoved/ - Testing URL <http://192.168.4.135:8080/tracker/co.do> yields:
{ u:1391595, rc:3517, asc:1628, usc:2154} I am using SPLITNCV and it just creates a testname,_u.rrd file.
I doubt it would involve a huge diff to get /xymond/rrd/do_ncv.c to understand this format. I also doubt that it is currently within my level of C programming proficiency though unfortunately.
Kind regards,
SebA