<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16447"></HEAD>
<BODY bgColor=#ffffff text=#000000>
<DIV dir=ltr align=left><FONT size=2 face=Arial><SPAN
class=057240417-22012013>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...</SPAN></FONT></DIV><!-- Converted from text/rtf format -->
<P align=left><SPAN lang=en-gb><FONT size=2 face=Arial>Kind
regards,</FONT></SPAN> </P>
<P><SPAN lang=en-gb><SPAN class=057240417-22012013></SPAN></SPAN><FONT
face=Arial><FONT size=2>S<SPAN
class=057240417-22012013>ebA</SPAN></FONT></FONT><BR></P>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> xymon-bounces@xymon.com
[mailto:xymon-bounces@xymon.com] <B>On Behalf Of </B>SebA<BR><B>Sent:</B> 22
January 2013 14:49<BR><B>To:</B> 'Michael Beatty';
xymon@xymon.com<BR><B>Subject:</B> Re: [Xymon] NCV RRD graphing for JSON
values<BR></FONT><BR><SPAN class=057240417-22012013><FONT size=2
face=Arial><snip> </FONT></SPAN></DIV>
<DIV></DIV><SPAN class=207113413-22012013>
<DIV><FONT size=2 face=Arial></FONT><BR><FONT face=Arial><FONT size=2><SPAN
class=057240417-22012013> </SPAN>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:</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=207113413-22012013><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=207113413-22012013><FONT size=2
face=Arial> DEF:p@RRDIDX@=@RRDFN@:lambda:AVERAGE<BR> LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@<BR> GPRINT:p@RRDIDX@:LAST:@RRDPARAM@
\: %5.1lf%s (cur)<BR> GPRINT:p@RRDIDX@:MAX: \: %5.1lf%s
(max)<BR> GPRINT:p@RRDIDX@:MIN: \: %5.1lf%s
(min)<BR> GPRINT:p@RRDIDX@:AVERAGE: \: %5.1lf%s
(avg)\n<BR></FONT></SPAN></DIV>
<DIV><SPAN class=207113413-22012013><FONT size=2 face=Arial>I had to replace
@RRDMETA@ with @RRDPARAM@ based on an old post.</DIV></FONT></SPAN><!-- Converted from text/rtf format -->
<P align=left><SPAN lang=en-gb><FONT size=2 face=Arial>Kind
regards,</FONT></SPAN> </P>
<P><SPAN lang=en-gb><SPAN class=207113413-22012013></SPAN></SPAN><FONT
face=Arial><FONT size=2>S<SPAN
class=207113413-22012013>ebA</SPAN></FONT></FONT><BR></P>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left><FONT size=2
face=Arial><SPAN class=057240417-22012013><snip></SPAN></FONT></DIV>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left><FONT size=2
face=Arial></FONT> </DIV>
<DIV class=moz-cite-prefix>On 01/22/2013 05:55 AM, SebA wrote:<BR></DIV>
<BLOCKQUOTE
cite=mid:!&!AAAAAAAAAAAuAAAAAAAAAL60wriLM9cRsTVojW0AAAABAFEdQVQs6tMRsLEAoMxarIMAAAABk2cAABAAAABqQFWHKNjVRIe+mnW5s9pJAQAAAAA=@syntec.co.uk
type="cite">
<META name=GENERATOR content="MSHTML 9.00.8112.16447">
<DIV><SPAN class=579393310-22012013><FONT size=2 face=Arial>I was hoping
that Xymon's NCV parsing would understand JSON as the tutorial @ <A
href="http://www.xymon.com/xymon/help/howtograph.html"
moz-do-not-send="true">http://www.xymon.com/xymon/help/howtograph.html</A> 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:</FONT></SPAN></DIV>
<DIV><SPAN class=579393310-22012013><PRE><A href="http://URLremoved/" moz-do-not-send="true">http://URLremoved/</A> - Testing <A href="http://192.168.4.135:8080/tracker/co.do" moz-do-not-send="true">URL</A> yields:
{ u:1391595, rc:3517, asc:1628, usc:2154}</PRE></SPAN></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=579393310-22012013>I am using
SPLITNCV and it just creates a testname,_u.rrd file.</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=579393310-22012013></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=579393310-22012013>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.</SPAN></FONT></DIV><!-- Converted from text/rtf format -->
<P align=left><SPAN lang=en-gb><FONT size=2 face=Arial>Kind
regards,</FONT></SPAN> </P>
<P><SPAN lang=en-gb><FONT size=2 face=Arial><SPAN
class=579393310-22012013>SebA</SPAN></FONT></SPAN></P><BR></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>