Xymon Mailing List Archive search

Graphs

4 messages in this thread

list Brandste · Tue, 07 Feb 2006 11:28:20 +0100 ·
Hi Stef,

if you find out how, we are interested in the solution.

At our side we would like to have the cpu-utilization in addition to the
load under the point cpu...

Best
   Mathias


In message <user-cf22ba9e738d@xymon.invalid>, Stef Coene writes:
Hi,

Me again ;)

How can I change the graphs that are displayed?  I want to put 2 graphs on th
e memory page (the normal memory usage and the swap-in/swap-out).  I know I can

change TEST2RRD to change the graph per page, but I can only specify 1 graph.
Same for cpu, I want to display the load and the "vmstat1" graphs.


Stef

list Stef Coene · Tue, 7 Feb 2006 12:27:21 +0100 ·
quoted from Brandste
On Tuesday 07 February 2006 11:28, user-1579f5e36334@xymon.invalid wrote:
Hi Stef,

if you find out how, we are interested in the solution.

At our side we would like to have the cpu-utilization in addition to the
load under the point cpu...
I'm not a programmer, but as far as I can see, you can specify 1 graph for 1 page.  This should be change so you can specify multiple graphs.  There is a framework for multiple graps for disk, inode and qtree.
I think there are 2 changes needed:  One in the file that parses the variable TEST2RRD (lib/hobbitrrd.c) so you can specify multiple graphs / page.  And one in the file that generates the html pages (lib/htmllog.c).


Stef
list Henrik Størner · Tue, 7 Feb 2006 13:23:07 +0100 ·
quoted from Stef Coene
On Tue, Feb 07, 2006 at 12:27:21PM +0100, Stef Coene wrote:
On Tuesday 07 February 2006 11:28, user-1579f5e36334@xymon.invalid wrote:
Hi Stef,

if you find out how, we are interested in the solution.

At our side we would like to have the cpu-utilization in addition to the
load under the point cpu...
I'm not a programmer, but as far as I can see, you can specify 1 graph for 1 
page.  This should be change so you can specify multiple graphs.  There is a 
framework for multiple graps for disk, inode and qtree.
Yes, but those are graphs of the same type (disk). What you're after are
combining graphs of different types (cpu, vmstat, memory). The way the
current graphs code is structured makes that difficult.
quoted from Stef Coene
I think there are 2 changes needed:  One in the file that parses the variable 
TEST2RRD (lib/hobbitrrd.c) so you can specify multiple graphs / page.  And 
one in the file that generates the html pages (lib/htmllog.c).
It's a bit more complex than that :-)

The lib/hobbitrrd.c file is right - you should look at the 
hobbit_graph_text() routine, which is the one that generates the
HTML links to the graph images. But it's currently pretty much tied
into generating one graph at a time.


Regards,
Henrik
list Stef Coene · Tue, 7 Feb 2006 13:30:02 +0100 ·
quoted from Henrik Størner
On Tuesday 07 February 2006 13:23, Henrik Stoerner wrote:
I think there are 2 changes needed:  One in the file that parses the
variable TEST2RRD (lib/hobbitrrd.c) so you can specify multiple graphs /
page.  And one in the file that generates the html pages (lib/htmllog.c).
It's a bit more complex than that :-)
Argh.
quoted from Henrik Størner
The lib/hobbitrrd.c file is right - you should look at the
hobbit_graph_text() routine, which is the one that generates the
HTML links to the graph images. But it's currently pretty much tied
into generating one graph at a time.
Ok, I think it's time to search for my C book from college ;)


Stef