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 class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote></div><br></div>