Xymon Mailing List Archive search

Multiple graphs on one page

12 messages in this thread

list Tijl Vandenbroeck · Mon, 28 Nov 2005 14:45:09 +0100 ·
Hi,

I got my informix script working with graphs but I want to add another graph for performance statistics on the same page. I've searched the man pages, site and the mailinglists archive and the only thing that came close was how to add extra graphs on the trends page. Is it possible to add extra graphs on one and the same status page. The data is put into different RRD's in the same server-side script. And I've already created the following hobbitgraph.cfg settings.

[informix]
        FNPATTERN informix.(.*).rrd
        TITLE Informix usage
        YAXIS Percentage in use
        DEF:p at RRDIDX@=@RRDFN@:percdbs:AVERAGE
        LINE2:p at RRDIDX@#@COLOR@: @RRDPARAM@
        -u 100
        -l 0
        GPRINT:p at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:p at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:p at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:p at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[informix1]
        FNPATTERN ifxperf(.*).rrd
        TITLE Informix performance
        YAXIS IO
        DEF:i at RRDIDX@=@RRDFN@:iosecs:AVERAGE
        LINE2:i at RRDIDX@#@COLOR@: IO/s
        GPRINT:i at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:i at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:i at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:i at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

Thanks in advance.

Tijl
list Dominic Young · Wed, 20 Sep 2006 17:39:53 +0100 ·
Does anyone have the answer to the following question that was posted
at:

http://www.hswn.dk/hobbiton/2005/11/msg00377.html - Multiple graphs on
one page

I have looked around and not found anything.

Regards

 
Dominic Young

Infrastructure Operations Engineer

 
BlackSpider Technologies

XXX Thames Valley Park Drive,
Reading, Berkshire. RG6 1PT  UK

 
Email :

user-0c1712490fe7@xymon.invalid

Web site :

http://www.blackspider.com

Helpline :

+44 (0)XXX XXX XXXX

Sales :

+44 (0)XXX XXX XXXX


This message has been scanned for viruses by BlackSpider MailControl.
list Vernon Everett · Wed, 24 Dec 2008 10:31:46 +0900 ·
Hi all

I am sure this has been asked and answered, but I can't find it in the list search.

I have a single test pumping out a number of data metrics.
Imagine this output (fictional, but representative of my problem)
        Rusers=45
        Users=104
        Mqueue=32014
        Rqueue=0
        ReadPerSec=24035
        OtherData=2128

NCV plugs these values into an RRD file very nicely, but of course you plot them on the same graphs, it becomes meaningless because of the scale.
Users and Rusers looks like a flat line down in the weeds, and only Mqueue and ReadPerSec have any real visibility.

How can I display 2, or even 3 graphs on the same page with this data.
One graph with Users and Rusers (Because they are in the similar scale range)
Another with Mqueue ad ReadPerSec and potentially Rqueue - again because of a similar scale range.
And if possible, a third graph for OtherData

3 graphs with 3 scales using different fields from the same rrd file on the same page.
Possible?

Cheers
      V

P.S. To those who celebrate, a Merry Christmas to you all. To those who do not, a safe and enjoyable holiday to you.


NOTICE: This email and any attachments are confidential. 
They may contain legally privileged information or 
copyright material. You must not read, copy, use or 
disclose them without authorisation. If you are not an 
intended recipient, please contact us at once by return 
email and then delete both messages and all attachments.
list Stef Coene · Wed, 24 Dec 2008 10:15:14 +0100 ·
quoted from Vernon Everett
On Wednesday 24 December 2008, Everett, Vernon wrote:
Hi all

I am sure this has been asked and answered, but I can't find it in the list
search.

I have a single test pumping out a number of data metrics.
Imagine this output (fictional, but representative of my problem)
        Rusers=45
        Users=104
        Mqueue=32014
        Rqueue=0
        ReadPerSec=24035
        OtherData=2128

NCV plugs these values into an RRD file very nicely, but of course you plot
them on the same graphs, it becomes meaningless because of the scale. Users
and Rusers looks like a flat line down in the weeds, and only Mqueue and
ReadPerSec have any real visibility.

How can I display 2, or even 3 graphs on the same page with this data.
Xymon can not do this for you.
But you can do this yourself when you send the data from the client to the server.  Just add <img src=....> to your test and point it to the image you want.  You can wrap it in a <a href=...></a> so you click on it to open the 4-pages graph.  The correct links can be copied from the address bar from your browser.

I'm not at work, so I can not copy an example, but I hope you understand the idea.


Stef
list Henrik Størner · Tue, 30 Dec 2008 22:10:55 +0000 (UTC) ·
quoted from Stef Coene
In <user-9c195f2e5252@xymon.invalid> "Everett, Vernon" <user-9da1a1882f49@xymon.invalid> writes:
I have a single test pumping out a number of data metrics.
Imagine this output (fictional, but representative of my problem)

       Rusers=3D45
       Users=3D104
       Mqueue=3D32014
       Rqueue=3D0
       ReadPerSec=3D24035
       OtherData=3D2128
quoted from Stef Coene
NCV plugs these values into an RRD file very nicely, but of course you plot=
them on the same graphs, it becomes meaningless because of the scale.
Users and Rusers looks like a flat line down in the weeds, and only Mqueue =
and ReadPerSec have any real visibility.
You don't have to plot all data from an RRD in the same graph. E.g. the
"vmstat.rrd" files collect tons of data (around 20, if memory serves me right),
but there are several different graph-definitions that use this rrd-file to
display only a few of them.
How can I display 2, or even 3 graphs on the same page with this data.
One graph with Users and Rusers (Because they are in the similar scale rang=
e)
quoted from Vernon Everett
Another with Mqueue ad ReadPerSec and potentially Rqueue - again because of=
a similar scale range.
And if possible, a third graph for OtherData
You can only do this on the "trends" page; if you have a custom status column,
those status pages will only know how to show a single graph.

On the "trends" status, say you have a "mydata1", "mydata2" and "mydata3"
graphs defined in the hobbit-graphs.cfg file. Then you can put a
   TRENDS=*,mydata;mydata1|mydata2|mydata3
on the host definitions in bb-hosts, and the trends page will show those
three graphs one after the other. Note: The "GRAPHS" setting in hobbitserver.cfg
must have "mydata" listed as the graph, not "mydata1" (or 2 or 3).


Regards,
Henrik
list Joe Acquisto · Tue, 4 Jan 2011 11:34:00 -0500 ·
I've been digging for a while and cannot find how I can put two graphs on
one page.  Kind of like the trends page.

While I see the --multigraph option, I am not certain this is what I want.
Nor can I see how I could associate multiple graphs with a single page.

Thanks.
list Joe Acquisto · Tue, 4 Jan 2011 15:49:27 -0500 ·
I find that --mulitgraph does not do what I thought, but does place mulitple
graphs on the page I specify.  However, the 5 additional graphs are void of
data.   Not too astonishing.

I cannot find anything that defines how to structure the graphing definition
(stanza ?) to specify what goes where.

joe a.
quoted from Joe Acquisto

On Tue, Jan 4, 2011 at 11:34 AM, Joe Acquisto <user-8a324efe5034@xymon.invalid>wrote:
I've been digging for a while and cannot find how I can put two graphs on
one page.  Kind of like the trends page.

While I see the --multigraph option, I am not certain this is what I want.
Nor can I see how I could associate multiple graphs with a single page.

Thanks.
list Joe Acquisto · Wed, 5 Jan 2011 11:20:42 -0500 ·
Are there no suggestions?  Or, is this considered to simple and clearly
documented for any response at all?
quoted from Joe Acquisto

On Tue, Jan 4, 2011 at 3:49 PM, Joe Acquisto <user-8a324efe5034@xymon.invalid> wrote:
I find that --mulitgraph does not do what I thought, but does place
mulitple graphs on the page I specify.  However, the 5 additional graphs are
void of data.   Not too astonishing.

I cannot find anything that defines how to structure the graphing
definition (stanza ?) to specify what goes where.

joe a.


On Tue, Jan 4, 2011 at 11:34 AM, Joe Acquisto <user-8a324efe5034@xymon.invalid>wrote:
I've been digging for a while and cannot find how I can put two graphs on
one page.  Kind of like the trends page.

While I see the --multigraph option, I am not certain this is what I
want.  Nor can I see how I could associate multiple graphs with a single
page.

Thanks.
list Tim McCloskey · Wed, 5 Jan 2011 09:00:31 -0800 ·
Picking this up late, sorry I've not read the whole thread....  I notice below that you write, "the 5 additional graphs are void of data."
For each graph there is normally an RRD file which contains the graph data in RRD format.  In a simple example, this data is just a set of NCV (Name Colon Value) pairs.  For example:

foo : 989099

Further example, I send data to the server from a number of client side shell scripts reporting '$foo : $nn', etc.  One of the first things to check on the server is if the data is indeed received and then what it looks like to RRD.  If the graph values are not properly defined you'll end up with alot of NaN (not a number) entries in the file.

Have a look at the related RRD files to see what they contain, if they are good then getting them to graph out should not be that complex.  Again, I've not read the whole thread so this may all be moot. (rrdtool dump somefile.rrd | more)

Regards, 

-t
quoted from Joe Acquisto

From: Joe Acquisto [user-8a324efe5034@xymon.invalid]
Sent: Wednesday, January 05, 2011 8:20 AM
To: xymon at xymon.com
Subject: [xymon] Re: multiple graphs on one page

Are there no suggestions?  Or, is this considered to simple and clearly documented for any response at all?

On Tue, Jan 4, 2011 at 3:49 PM, Joe Acquisto <user-8a324efe5034@xymon.invalid<mailto:user-8a324efe5034@xymon.invalid>> wrote:
I find that --mulitgraph does not do what I thought, but does place mulitple graphs on the page I specify.  However, the 5 additional graphs are void of data.   Not too astonishing.

I cannot find anything that defines how to structure the graphing definition (stanza ?) to specify what goes where.

joe a.


On Tue, Jan 4, 2011 at 11:34 AM, Joe Acquisto <user-8a324efe5034@xymon.invalid<mailto:user-8a324efe5034@xymon.invalid>> wrote:
I've been digging for a while and cannot find how I can put two graphs on one page.  Kind of like the trends page.

While I see the --multigraph option, I am not certain this is what I want.  Nor can I see how I could associate multiple graphs with a single page.

Thanks.
list Darin D [eit] Dugan · Wed, 5 Jan 2011 11:24:56 -0600 ·
Warnock applies.

Can't offer much myself, but I would definitely re-check that the rrd files have data in them.
Cheers.
quoted from Joe Acquisto

From: Joe Acquisto [mailto:user-8a324efe5034@xymon.invalid]
Sent: Wednesday, January 05, 2011 10:21 AM
To: xymon at xymon.com
Subject: [xymon] Re: multiple graphs on one page

Are there no suggestions?  Or, is this considered to simple and clearly documented for any response at all?
On Tue, Jan 4, 2011 at 3:49 PM, Joe Acquisto <user-8a324efe5034@xymon.invalid<mailto:user-8a324efe5034@xymon.invalid>> wrote:
I find that --mulitgraph does not do what I thought, but does place mulitple graphs on the page I specify.  However, the 5 additional graphs are void of data.   Not too astonishing.

I cannot find anything that defines how to structure the graphing definition (stanza ?) to specify what goes where.

joe a.

On Tue, Jan 4, 2011 at 11:34 AM, Joe Acquisto <user-8a324efe5034@xymon.invalid<mailto:user-8a324efe5034@xymon.invalid>> wrote:
I've been digging for a while and cannot find how I can put two graphs on one page.  Kind of like the trends page.

While I see the --multigraph option, I am not certain this is what I want.  Nor can I see how I could associate multiple graphs with a single page.

Thanks.
list Henrik Størner · Fri, 7 Jan 2011 11:26:16 +0000 (UTC) ·
quoted from Joe Acquisto
In <AANLkTi=user-11aba699f9c6@xymon.invalid> Joe Acquisto <user-8a324efe5034@xymon.invalid> writes:
I've been digging for a while and cannot find how I can put two graphs on
one page.  Kind of like the trends page.
There's a good reason you cannot find it - it's not possible.

The "trends" status is a special-case in the code. It is not possible
to have multiple - different - graphs on one page.


Regards,
Henrik
list Mark Mulligan · Tue, 1 Mar 2011 15:29:50 +0000 ·
Well we did find a way to do this 
You do it just like adding a regular custom graph but for the data you use the other server names.

Create a custom graph

[example1]
Title MultiGraphs
DEF:a=servername/rrdfilename
DEF:b=servername2/rrdfilename2
LINE2:a#0000FF:DataA
LINE2:b#FF0000:DataB

Then in hobbitserver.cfg add the following

TEST2RRD section add the newgraph name exapmle1=ncv
Add the SPLITNCV
SPLITNCV_example1=testtype
GRAPHS section add the newgraph name example1


Then add a placebo rrd file where you want this graph to appear example1.rrd and this graph will show up under the trends column. 
We do this to compare app data on different servers on the same graph.  Using the metrics function with the multigraphs will also do this but you are unable to zoom in on that graph.  
Mark
quoted from Henrik Størner


-----Original Message-----
From: Henrik Størner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Friday, January 07, 2011 6:26 AM
To: xymon at xymon.com
Subject: Re: [xymon] multiple graphs on one page

In <AANLkTi=user-11aba699f9c6@xymon.invalid> Joe Acquisto <user-8a324efe5034@xymon.invalid> writes:
I've been digging for a while and cannot find how I can put two graphs on one page.  Kind of like the trends page.
There's a good reason you cannot find it - it's not possible.

The "trends" status is a special-case in the code. It is not possible to have multiple - different - graphs on one page.


Regards,
Henrik