Excellent! I wondered if it might be rrdtool, which is why I posted OS and
rrdtool version
Ralph Mitchell
On Jun 11, 2012 10:33 AM, "SebA" <user-4631430d620a@xymon.invalid> wrote:
Hi Ralph,
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.)
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.
Kind regards,
SebA
From: Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid]
Sent: 08 June 2012 18:06
To: SebA
Cc: xymon at xymon.com
Subject: Re: [Xymon] Graph right-axis in Xymon
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:
AREA:la#00CC00:CPU Load Average
-u 1.0
--right-axis
1:0
--right-axis-label
Load
GPRINT:la:LAST: \: %5.1lf (cur)
and that gives me markers and a label on the right axis of the cpu
graphs.
What I meant by "set it up as a single line" was to make it look similar
the -u & -l options:
--right-axis 1:0
--right-axis-label Load
That will require some code additions, as noted in my earlier email.
This is working in SLES11, with rrdtool-1.3.7
Ralph Mitchell
On Fri, Jun 8, 2012 at 8:12 AM, SebA <user-4631430d620a@xymon.invalid> wrote:
Hi Ralph,
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)?
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?
Kind regards,
SebA
From: Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid]
Sent: 07 June 2012 19:40
To: SebA
Cc: xymon at xymon.com
Subject: Re: [Xymon] Graph right-axis in Xymon
I just tried it on a random temperature graph, and it seems to work as
two lines:
--right-axis
10:-1000
That definitely put an axis on the right side of the graph.
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.
But that's just a wild guess... :-)
Ralph Mitchell
On Thu, Jun 7, 2012 at 12:05 PM, SebA <user-4631430d620a@xymon.invalid> wrote:
Hi,
Has anyone got a right-axis working in Xymon graphs? The nearest
info I can
find is the post below, but I still can't get it to work seperating
--right-axis from the parameter with a line-break. Does anyone have a
working example? If I put --right-axis in the graphs.cfg, it just
does not
display it.
Many thanks,
SebA
-----Original Message-----
From: David Peters [mailto:user-66917457e380@xymon.invalid]
Sent: 06 December 2009 06:49
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Extra graph parameters.
Hang on a sec....
Debugging shows that there is a special case for -l and -u
where it picks up
two tokens on the same line (ie -l 0). The default case is that
hobbitgraph.c expects parameters to be separated on word per line:
--right-axis
10:-1000
Or
-c
CANVAS:#449900
Hmmm that seems a bit counterintuitive as it is almost like
rrdtool but not
quite, which can be confusing.
-----Original Message-----
From: David Peters [mailto:user-66917457e380@xymon.invalid]
Sent: Sunday, 6 December 2009 5:11 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Extra graph parameters.
I thought you could just add extra rrdtool graph commandline
parameters to
the hobbitgraph file for a graph section and hey presto it
would use them.
This seems to work for some and not for others. (eg -e and -A work)
It may be a more generic issue related to parameter
assumptions within the
code, but anyway, I added a some code to handle a couple of
additional
directives in hobbitgraph.cfg. (RSCALE, RFORMAT and RLABEL -
in order to add
a different scale to the right hand y axis.)
Should I look deeper into the code and see why --right-axis
scale:shift,
--right-axis-format and --right-axis-label seem to get
ignored if I add them
to hobbitgraph.cfg.
Or should I just use the code that I now have that uses my
Hobbit specific
directives.
Or am I missing something entirely altogether?