<!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.16443"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=702052014-11062012><FONT size=2 
face=Arial>Hi Ralph,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=702052014-11062012><FONT size=2 
face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=702052014-11062012><FONT size=2 
face=Arial>So I tried your example and it didn't work for me.  I therefore 
concluded there was a problem with my rrdtool.  It turns out that the 
version used by xymon was not the version I thought - it was an even older one I 
had compiled way back when, rather than the newer version installed by 
yum.  The older version didn't support the right-axis options!  
Doh!  So I removed the compiled version, yum installed rrdtool-devel (which 
was missing) and reconfigured and recompiled xymon.  Now right-axis 
works!  (In multi-line format.)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=702052014-11062012><FONT size=2 
face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=702052014-11062012><FONT size=2 
face=Arial>I'm not too worried about getting it working in single-line format, 
but thanks so much for all the help!  I would probably have given up 
without you assuring me it could work.</FONT></SPAN></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=702052014-11062012>SebA</SPAN></FONT></SPAN></P><BR>
<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> Ralph Mitchell 
  [mailto:ralphmitchell@gmail.com] <BR><B>Sent:</B> 08 June 2012 
  18:06<BR><B>To:</B> SebA<BR><B>Cc:</B> xymon@xymon.com<BR><B>Subject:</B> Re: 
  [Xymon] Graph right-axis in Xymon<BR></FONT><BR></DIV>
  <DIV></DIV>I don't have a working example handy where I could do a screenshot, 
  but on my system at work I just modified the [la] entry with extra lines like 
  this:
  <DIV><BR></DIV>
  <DIV>
  <DIV>        AREA:la#00CC00:CPU Load Average</DIV>
  <DIV>        -u 1.0</DIV>
  <DIV>        --right-axis</DIV>
  <DIV>        1:0</DIV>
  <DIV>        --right-axis-label</DIV>
  <DIV>        Load</DIV>
  <DIV>        GPRINT:la:LAST: \: %5.1lf (cur)</DIV></DIV>
  <DIV><BR></DIV>
  <DIV>and that gives me markers and a label on the right axis of the cpu 
  graphs.</DIV>
  <DIV><BR></DIV>
  <DIV>What I meant by "set it up as a single line" was to make it look similar 
  the -u & -l options:</DIV>
  <DIV><BR></DIV>
  <DIV>        --right-axis 1:0</DIV>
  <DIV>        --right-axis-label Load</DIV>
  <DIV><BR></DIV>
  <DIV>That will require some code additions, as noted in my earlier 
email.</DIV>
  <DIV><BR></DIV>
  <DIV>This is working in SLES11, with rrdtool-1.3.7</DIV>
  <DIV><BR></DIV>
  <DIV>Ralph Mitchell</DIV>
  <DIV><BR>
  <DIV class=gmail_quote>On Fri, Jun 8, 2012 at 8:12 AM, SebA <SPAN 
  dir=ltr><<A href="mailto:spah@syntec.co.uk" 
  target=_blank>spah@syntec.co.uk</A>></SPAN> wrote:<BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote><U></U>
    <DIV>
    <DIV dir=ltr align=left><FONT face=Arial><SPAN>Hi Ralph,</SPAN></FONT></DIV>
    <DIV dir=ltr align=left><FONT face=Arial><SPAN></SPAN></FONT> </DIV>
    <DIV><SPAN><FONT face=Arial>I tried it on the la (default CPU) graph (in 
    various positions) and it does not work for me on Xymon 4.3.7.  My rrd 
    version is old but it does support right-axis.  Can you share the 
    entire graphs.cfg entry you have working (or preferably using one of the 
    default graphs)?</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=Arial></FONT></SPAN> </DIV>
    <DIV><SPAN><FONT face=Arial>I'm not quite sure what you mean by '<FONT 
    size=3 face="Times New Roman">To set it up as a single line in 
    graphs.cfg'...  There's more to it than adding an axis and a 
    label?</FONT></FONT></SPAN></DIV>
    <P align=left><SPAN lang=en-gb><FONT face=Arial>Kind regards,</FONT></SPAN> 
    </P>
    <P><SPAN lang=en-gb><SPAN></SPAN></SPAN><FONT face=Arial><FONT 
    size=+0>S<SPAN>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 align=left>
      <HR>
      <FONT face=Tahoma><B>From:</B> Ralph Mitchell [mailto:<A 
      href="mailto:ralphmitchell@gmail.com" 
      target=_blank>ralphmitchell@gmail.com</A>] <BR><B>Sent:</B> 07 June 2012 
      19:40<BR><B>To:</B> SebA<BR><B>Cc:</B> <A href="mailto:xymon@xymon.com" 
      target=_blank>xymon@xymon.com</A><BR><B>Subject:</B> Re: [Xymon] Graph 
      right-axis in Xymon<BR></FONT><BR></DIV>
      <DIV>
      <DIV class=h5>
      <DIV></DIV>I just tried it on a random temperature graph, and it seems to 
      work as two lines: 
      <DIV><BR></DIV>
      <DIV>    --right-axis</DIV>
      <DIV>    10:-1000</DIV>
      <DIV><BR></DIV>
      <DIV>That definitely put an axis on the right side of the graph.</DIV>
      <DIV><BR></DIV>
      <DIV>To set it up as a single line in graphs.cfg, you'll need to do some 
      work on xymon-4.3.7/web/showgraph.c.  Starting at line 1068, you 
      can see how other options work, such as --title, height, width, upperlimit 
      & lowerlimit.  I think you'd need to add something to the gdef_t 
      struct and some handling in load_gdefs at line 314.  Dunno what 
      else.</DIV>
      <DIV><BR></DIV>
      <DIV>But that's just a wild guess...  :-)</DIV>
      <DIV><BR></DIV>
      <DIV>Ralph Mitchell</DIV>
      <DIV><BR><BR>
      <DIV class=gmail_quote>On Thu, Jun 7, 2012 at 12:05 PM, SebA <SPAN 
      dir=ltr><<A href="mailto:spah@syntec.co.uk" 
      target=_blank>spah@syntec.co.uk</A>></SPAN> wrote:<BR>
      <BLOCKQUOTE 
      style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
      class=gmail_quote>Hi,<BR><BR>Has anyone got a right-axis working in 
        Xymon graphs?  The nearest info I can<BR>find is the post below, 
        but I still can't get it to work seperating<BR>--right-axis from the 
        parameter with a line-break.  Does anyone have a<BR>working 
        example?  If I put --right-axis in the graphs.cfg, it just does 
        not<BR>display it.<BR><BR>Many thanks,<BR><BR>SebA<BR><BR><BR>> 
        -----Original Message-----<BR>> From: David Peters [mailto:<A 
        href="mailto:davidp@electronf.com" 
        target=_blank>davidp@electronf.com</A>]<BR>> Sent: 06 December 2009 
        06:49<BR>> To: <A href="mailto:hobbit@hswn.dk" 
        target=_blank>hobbit@hswn.dk</A><BR>> Subject: RE: [hobbit] Extra 
        graph parameters.<BR>><BR>> Hang on a sec....<BR>><BR>> 
        Debugging shows that there is a special case for -l and -u<BR>> where 
        it picks up<BR>> two tokens on the same line (ie -l 0). The default 
        case is that<BR>> hobbitgraph.c expects parameters to be separated on 
        word per line:<BR>><BR>> --right-axis<BR>> 
        10:-1000<BR>><BR>> Or<BR>><BR>> -c<BR>><BR>> 
        CANVAS:#449900<BR>><BR>><BR>> Hmmm that seems a bit 
        counterintuitive as it is almost like<BR>> rrdtool but not<BR>> 
        quite, which can be confusing.<BR>><BR>><BR>> -----Original 
        Message-----<BR>> From: David Peters [mailto:<A 
        href="mailto:davidp@electronf.com" 
        target=_blank>davidp@electronf.com</A>]<BR>> Sent: Sunday, 6 December 
        2009 5:11 PM<BR>> To: <A href="mailto:hobbit@hswn.dk" 
        target=_blank>hobbit@hswn.dk</A><BR>> Subject: [hobbit] Extra graph 
        parameters.<BR>><BR>><BR>> I thought you could just add extra 
        rrdtool graph commandline<BR>> parameters to<BR>> the hobbitgraph 
        file for a graph section and hey presto it<BR>> would use 
        them.<BR>> This seems to work for some and not for others. (eg -e and 
        -A work)<BR>><BR>> It may be a more generic issue related to 
        parameter<BR>> assumptions within the<BR>> code, but anyway, I 
        added a some code to handle a couple of additional<BR>> directives in 
        hobbitgraph.cfg. (RSCALE, RFORMAT and RLABEL -<BR>> in order to 
        add<BR>> a different scale to the right hand y axis.)<BR>><BR>> 
        Should I look deeper into the code and see why --right-axis<BR>> 
        scale:shift,<BR>> --right-axis-format and --right-axis-label seem to 
        get<BR>> ignored if I add them<BR>> to 
        hobbitgraph.cfg.<BR>><BR>> Or should I just use the code that I 
        now have that uses my<BR>> Hobbit specific<BR>> 
        directives.<BR>><BR>> Or am I missing something entirely 
        altogether?<BR><BR>_______________________________________________<BR>Xymon 
        mailing list<BR><A href="mailto:Xymon@xymon.com" 
        target=_blank>Xymon@xymon.com</A><BR><A 
        href="http://lists.xymon.com/mailman/listinfo/xymon" 
        target=_blank>http://lists.xymon.com/mailman/listinfo/xymon</A><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>