Xymon Mailing List Archive search

multiple graphs on same custom script

3 messages in this thread

list Sheel Shah · Wed, 4 Feb 2015 21:45:13 +0000 ·
Hello,

I have a custom script that generates several pieces of data, which are being collected perfectly in their respective RRD files. The issue I have is that the different data that is collected are drastically different in scale to each other, to the point where if I put them on the same graphs.cfg configuration, the lesser numbers on the graph stay stagnant at the bottom of the scale. With that said, is there a way to have multiple graphs for the same column on the xymon homepage? Is it as simple as having two definitions with the same heading (as shown below)?

Thank you,
Sheel

[graphname]
                TITLE
                YAXIS
DEF
                LINE1:
                GPRINT
                GPRINT
                GPRINT
                GPRINT

[graphname]
                TITLE
                YAXIS
DEF
                LINE1:
                GPRINT
                GPRINT
                GPRINT
                GPRINT
list Japheth Cleaver · Thu, 5 Feb 2015 13:03:12 -0800 ·
quoted from Sheel Shah
On Wed, February 4, 2015 1:45 pm, Sheel Shah wrote:
Hello,

I have a custom script that generates several pieces of data, which are
being collected perfectly in their respective RRD files. The issue I have
is that the different data that is collected are drastically different in
scale to each other, to the point where if I put them on the same
graphs.cfg configuration, the lesser numbers on the graph stay stagnant at
the bottom of the scale. With that said, is there a way to have multiple
graphs for the same column on the xymon homepage? Is it as simple as
having two definitions with the same heading (as shown below)?
At the moment, that doesn't seem to be something easily done using the
auto TEST2RRD facilities. In the past, I've simulated this by putting the
IMG (and link) to the showgraph.sh image directly into the body of the
status message being submitted. This gives you a bit of control over the
layout as well.

It would certainly be nice to be able to pull this in automatically. There
a number of things that might make RRD processing more flexible, and this
would be one of them.


Regards,

-jc
list Jeremy Laidman · Tue, 17 Feb 2015 15:51:27 +1100 ·
quoted from Sheel Shah
On 5 February 2015 at 08:45, Sheel Shah <user-c23c3c636596@xymon.invalid> wrote:
 I have a custom script that generates several pieces of data, which are
being collected perfectly in their respective RRD files. The issue I have
is that the different data that is collected are drastically different in
scale to each other, to the point where if I put them on the same
graphs.cfg configuration, the lesser numbers on the graph stay stagnant at
the bottom of the scale. With that said, is there a way to have multiple
graphs for the same column on the xymon homepage? Is it as simple as having
two definitions with the same heading (as shown below)?
Sheel

If you have two graph definitions with the same name, the second one
overrides the first.  In fact I put this to good use by re-defining some of
the standard graph definitions, without having to do anything to the
graphs.cfg (just an "include" line at the end).

If you have two graph definitions named (say) [graphname] and [graphname2]
then you can have both of the appear on the Trends page by having
TRENDS:*,graphname:graphname|graphname1,...

So what this means is, where you would normally have [graphname] shown on
the Trends page, Xymon now shows [graphname] and [graphname2].

Alas this only applies to the Trends page, and not to the test status
pages.  But it might be sufficient for some.

J