<p>Excellent!  I wondered if it might be rrdtool, which is why I posted OS and rrdtool version</p>
<p>Ralph Mitchell <br>
On Jun 11, 2012 10:33 AM, "SebA" <<a href="mailto:spah@syntec.co.uk">spah@syntec.co.uk</a>> wrote:<br>
><br>
> Hi Ralph,<br>
>  <br>
> 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.)<br>

>  <br>
> 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.<br>
><br>
> Kind regards,<br>
><br>
> SebA<br>
><br>
><br>
>> ________________________________<br>
>> From: Ralph Mitchell [mailto:<a href="mailto:ralphmitchell@gmail.com">ralphmitchell@gmail.com</a>] <br>
>> Sent: 08 June 2012 18:06<br>
>><br>
>> To: SebA<br>
>> Cc: <a href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
>> Subject: Re: [Xymon] Graph right-axis in Xymon<br>
>><br>
>> 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:<br>
>><br>
>>         AREA:la#00CC00:CPU Load Average<br>
>>         -u 1.0<br>
>>         --right-axis<br>
>>         1:0<br>
>>         --right-axis-label<br>
>>         Load<br>
>>         GPRINT:la:LAST: \: %5.1lf (cur)<br>
>><br>
>> and that gives me markers and a label on the right axis of the cpu graphs.<br>
>><br>
>> What I meant by "set it up as a single line" was to make it look similar the -u & -l options:<br>
>><br>
>>         --right-axis 1:0<br>
>>         --right-axis-label Load<br>
>><br>
>> That will require some code additions, as noted in my earlier email.<br>
>><br>
>> This is working in SLES11, with rrdtool-1.3.7<br>
>><br>
>> Ralph Mitchell<br>
>><br>
>> On Fri, Jun 8, 2012 at 8:12 AM, SebA <<a href="mailto:spah@syntec.co.uk">spah@syntec.co.uk</a>> wrote:<br>
>>><br>
>>> Hi Ralph,<br>
>>>  <br>
>>> 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)?<br>

>>>  <br>
>>> I'm not quite sure what you mean by 'To set it up as a single line in graphs.cfg'...  There's more to it than adding an axis and a label?<br>
>>><br>
>>> Kind regards,<br>
>>><br>
>>> SebA<br>
>>>><br>
>>>> ________________________________<br>
>>>> From: Ralph Mitchell [mailto:<a href="mailto:ralphmitchell@gmail.com">ralphmitchell@gmail.com</a>] <br>
>>>> Sent: 07 June 2012 19:40<br>
>>>> To: SebA<br>
>>>> Cc: <a href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
>>>> Subject: Re: [Xymon] Graph right-axis in Xymon<br>
>>>><br>
>>>> I just tried it on a random temperature graph, and it seems to work as two lines:<br>
>>>><br>
>>>>     --right-axis<br>
>>>>     10:-1000<br>
>>>><br>
>>>> That definitely put an axis on the right side of the graph.<br>
>>>><br>
>>>> 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.<br>

>>>><br>
>>>> But that's just a wild guess...  :-)<br>
>>>><br>
>>>> Ralph Mitchell<br>
>>>><br>
>>>><br>
>>>> On Thu, Jun 7, 2012 at 12:05 PM, SebA <<a href="mailto:spah@syntec.co.uk">spah@syntec.co.uk</a>> wrote:<br>
>>>>><br>
>>>>> 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">davidp@electronf.com</a>]<br>
>>>>> > Sent: 06 December 2009 06:49<br>
>>>>> > To: <a href="mailto:hobbit@hswn.dk">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">davidp@electronf.com</a>]<br>
>>>>> > Sent: Sunday, 6 December 2009 5:11 PM<br>
>>>>> > To: <a href="mailto:hobbit@hswn.dk">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">Xymon@xymon.com</a><br>
>>>>> <a href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
>>>><br>
>>>><br>
>><br>
</p>