Xymon Mailing List Archive search

generating a page with the same graph type but from different hosts

13 messages in this thread

list Szymon Bakowski · Tue, 15 Jan 2008 16:19:19 +0000 ·
Hello,

I was wondering if that would be possible using Hobbit, to generate a
page with only one particular graph (for example CPU) across all
servers available on the particular page. It would look like "trends"
but not for particular server with different types of graphs but one
particular type of graphs across many servers available on a
particular sub page.

Do I need prepare my own sort of page/template or it is somehow
possible to define through bb-hosts file (can`t find it in
documentation).

Kind regards
Szymon Bakowski
list Charles Jones · Tue, 15 Jan 2008 09:30:58 -0700 ·
I know this isn't exactly what you asked for, but I just wanted to make sure you were aware that there is an existing mechanism for getting multi-host graphs.  In your Hobbit menu, go to Reports, Metrics Report.  Choose the time frame you wish, the hosts you want to graph, and on the right side select CPU utilization.  You will then get a single graph that has all the hosts on it.  If you then save the URL you can then insert that graph into an HTML page if you wish, and it will be dynamic.

-Charles
quoted from Szymon Bakowski

Szymon Bakowski wrote:
Hello,

I was wondering if that would be possible using Hobbit, to generate a
page with only one particular graph (for example CPU) across all
servers available on the particular page. It would look like "trends"
but not for particular server with different types of graphs but one
particular type of graphs across many servers available on a
particular sub page.

Do I need prepare my own sort of page/template or it is somehow
possible to define through bb-hosts file (can`t find it in
documentation).
list Johann Eggers · Tue, 15 Jan 2008 17:40:57 +0100 ·
But the Metrics report is limited in choosing the metrics you want to be
displayed.

I would also like to have a "full featured" metrics report where you can
select any host and any metric which is available in the system.

But unfortunately I'm not a very skilled HTML coder :(


-Johann
-----Original Message-----
From: Charles Jones [mailto:user-e86b4aeade4e@xymon.invalid]
Sent: Dienstag, 15. Januar 2008 17:31
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] generating a page with the same graph type but
from
different hosts
quoted from Charles Jones

I know this isn't exactly what you asked for, but I just wanted to
make
sure you were aware that there is an existing mechanism for getting
multi-host graphs.  In your Hobbit menu, go to Reports, Metrics
Report.
Choose the time frame you wish, the hosts you want to graph, and on
the
right side select CPU utilization.  You will then get a single graph
that has all the hosts on it.  If you then save the URL you can then
insert that graph into an HTML page if you wish, and it will be
dynamic.

-Charles

Szymon Bakowski wrote:
Hello,

I was wondering if that would be possible using Hobbit, to generate
a
page with only one particular graph (for example CPU) across all
servers available on the particular page. It would look like
"trends"
but not for particular server with different types of graphs but one
particular type of graphs across many servers available on a
particular sub page.

Do I need prepare my own sort of page/template or it is somehow
possible to define through bb-hosts file (can`t find it in
documentation).
list Dave Haertig · Tue, 15 Jan 2008 09:43:00 -0700 ·
I've never looked at that metrics report before.  How do you add
additional servers and metrics?  I only see my Hobbit server listed, and
only five metrics. 
quoted from Charles Jones
-----Original Message-----
From: Charles Jones [mailto:user-e86b4aeade4e@xymon.invalid] Sent: Tuesday, January 15, 2008 9:31 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] generating a page with the same graph type but
from different hosts

I know this isn't exactly what you asked for, but I just wanted to make
sure you were aware that there is an existing mechanism for getting
multi-host graphs.  In your Hobbit menu, go to Reports, Metrics Report.

Choose the time frame you wish, the hosts you want to graph, and on the
right side select CPU utilization.  You will then get a single graph
that has all the hosts on it.  If you then save the URL you can then
insert that graph into an HTML page if you wish, and it will be dynamic.

-Charles

Szymon Bakowski wrote:
Hello,

I was wondering if that would be possible using Hobbit, to generate a page with only one particular graph (for example CPU) across all servers available on the particular page. It would look like "trends"
but not for particular server with different types of graphs but one particular type of graphs across many servers available on a particular sub page.

Do I need prepare my own sort of page/template or it is somehow possible to define through bb-hosts file (can`t find it in documentation).
list Henrik Størner · Tue, 15 Jan 2008 17:48:02 +0100 ·
quoted from Dave Haertig
On Tue, Jan 15, 2008 at 09:43:00AM -0700, Haertig, David F (Dave) wrote:
I've never looked at that metrics report before.  How do you add
additional servers and metrics?  I only see my Hobbit server listed, and
only five metrics. 
It lists the hosts that are on the page you're seeing. So to see all
hosts, pick the Metrics report off the top page.

You can add more metrics by modifying the
~hobbit/server/web/hostgraphs_form template, but the only graphs that
will work are those that have a "foo-multi" entry in hobbitgraphs.cfg.


Regards,
Henrik
list Charles Jones · Tue, 15 Jan 2008 09:52:08 -0700 ·
Its not HTML skill required, but rather C, as it would require changes to Hobbit.  The Metrics Report can only graph things which are defined as "multi-host" graphs in hobbit-graphs.cfg. And you cant just make anything a multi-host graph, because they have to be the same type of graph (cant graph something like disk space and cpu load on a single graph).

Using some basic HTML, you could still make your own page that shows the graphs you want. Just right-click a graph in the trends page, and "copy image location".  You will get a long URL which is a call to hobbitgraph with lots of parameters.  If you use this URL with an HTML IMG tag, you can then insert that graph and others on a page. You could then put a link to that page in the Hobbit menu.

-Charles
quoted from Johann Eggers

Johann Eggers wrote:
But the Metrics report is limited in choosing the metrics you want to be
displayed.

I would also like to have a "full featured" metrics report where you can
select any host and any metric which is available in the system.

But unfortunately I'm not a very skilled HTML coder :(


-Johann

  
-----Original Message-----
From: Charles Jones [mailto:user-e86b4aeade4e@xymon.invalid]
Sent: Dienstag, 15. Januar 2008 17:31
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] generating a page with the same graph type but
    
from
  
different hosts

I know this isn't exactly what you asked for, but I just wanted to
    
make
  
sure you were aware that there is an existing mechanism for getting
multi-host graphs.  In your Hobbit menu, go to Reports, Metrics
    
Report.
  
Choose the time frame you wish, the hosts you want to graph, and on
    
the
  
right side select CPU utilization.  You will then get a single graph
that has all the hosts on it.  If you then save the URL you can then
insert that graph into an HTML page if you wish, and it will be
    
dynamic.
  
-Charles

Szymon Bakowski wrote:
    
Hello,

I was wondering if that would be possible using Hobbit, to generate
      
a
  
page with only one particular graph (for example CPU) across all
servers available on the particular page. It would look like
      
"trends"
  
but not for particular server with different types of graphs but one
particular type of graphs across many servers available on a
particular sub page.

Do I need prepare my own sort of page/template or it is somehow
possible to define through bb-hosts file (can`t find it in
documentation).

      
list Charles Jones · Tue, 15 Jan 2008 09:54:05 -0700 ·
If you select the metrics report while on the main page, you should see all of your hosts (if you are on a sub page you will only see that page of hosts).  As for adding more metrics, that is a bit tricky, as you have to add more "multi-host" graph definitions to hobbit-graph.cfg.

-Charles
quoted from Charles Jones

Haertig, David F (Dave) wrote:
I've never looked at that metrics report before.  How do you add
additional servers and metrics?  I only see my Hobbit server listed, and
only five metrics. 
-----Original Message-----
From: Charles Jones [mailto:user-e86b4aeade4e@xymon.invalid] Sent: Tuesday, January 15, 2008 9:31 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] generating a page with the same graph type but
from different hosts

I know this isn't exactly what you asked for, but I just wanted to make
sure you were aware that there is an existing mechanism for getting
multi-host graphs.  In your Hobbit menu, go to Reports, Metrics Report.

Choose the time frame you wish, the hosts you want to graph, and on the
right side select CPU utilization.  You will then get a single graph
that has all the hosts on it.  If you then save the URL you can then
insert that graph into an HTML page if you wish, and it will be dynamic.

-Charles

Szymon Bakowski wrote:
  
Hello,

I was wondering if that would be possible using Hobbit, to generate a page with only one particular graph (for example CPU) across all servers available on the particular page. It would look like "trends"
but not for particular server with different types of graphs but one particular type of graphs across many servers available on a particular sub page.

Do I need prepare my own sort of page/template or it is somehow possible to define through bb-hosts file (can`t find it in documentation).
      
list Dave Haertig · Tue, 15 Jan 2008 10:43:28 -0700 ·
Thanks.  I was on the top page, however the only server I have there is
my Hobbit server.

Everything else is organized into subpages, divided up by major
application areas since my users want to see things in this manner.
When a server plays a part for multiple applications, that server
appears redundantly on different subpages.  That's just my personal
organization method, probably not the standard amongst Hobbit users!
quoted from Charles Jones

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Tuesday, January 15, 2008 9:48 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] generating a page with the same graph type but

fromdifferent hosts
quoted from Henrik Størner

On Tue, Jan 15, 2008 at 09:43:00AM -0700, Haertig, David F (Dave) wrote:
I've never looked at that metrics report before.  How do you add 
additional servers and metrics?  I only see my Hobbit server listed, 
and only five metrics.
It lists the hosts that are on the page you're seeing. So to see all
hosts, pick the Metrics report off the top page.

You can add more metrics by modifying the
~hobbit/server/web/hostgraphs_form template, but the only graphs that
will work are those that have a "foo-multi" entry in hobbitgraphs.cfg.


Regards,
Henrik
list Johann Eggers · Wed, 16 Jan 2008 09:40:30 +0100 ·
Of course it doesn't make sense to put CPU and disk metrics on the same
graph.

What I originally want is a way to put e.g. the CPU load or temperature
values of a group of hosts in one graph to be able to compare.

In the "old" BigBrother days I had a script that was capable of doing
this, but I can't remember the details...

-Johann
quoted from Charles Jones


And you cant just make anything a multi-host graph, because they have to
be the same type of graph (cant graph something like disk space and cpu
load on a single graph). 


-Charles

Johann Eggers wrote: 
But the Metrics report is limited in choosing the metrics you want to be
displayed.

I would also like to have a "full featured" metrics report where you can
select any host and any metric which is available in the system.

But unfortunately I'm not a very skilled HTML coder :(


-Johann
list Buchan Milne · Wed, 16 Jan 2008 11:59:49 +0200 ·
quoted from Szymon Bakowski
On Tuesday 15 January 2008 18:19:19 Szymon Bakowski wrote:
Hello,

I was wondering if that would be possible using Hobbit, to generate a
page with only one particular graph (for example CPU) across all
servers available on the particular page. It would look like "trends"
but not for particular server with different types of graphs but one
particular type of graphs across many servers available on a
particular sub page.

Do I need prepare my own sort of page/template or it is somehow
possible to define through bb-hosts file (can`t find it in
documentation).
IMHO, just:
1)View the relevant graph for one of the servers (the page with multiple 
graphs over different time periods)
2)Add more host names in the URL, separated by commas
3)Bookmark this URL, or put it in some relevant place people can access it.

I find the "Metrics Report" less useful, as it doesn't update, as the 
multi-host graphs accessed with the mechanism above do when hitting refresh 
in the browser.

Regards,
Buchan
list Szymon Bakowski · Wed, 16 Jan 2008 10:17:37 +0000 ·
quoted from Buchan Milne
IMHO, just:
1)View the relevant graph for one of the servers (the page with multiple
graphs over different time periods)
2)Add more host names in the URL, separated by commas
3)Bookmark this URL, or put it in some relevant place people can access it.

I find the "Metrics Report" less useful, as it doesn't update, as the
multi-host graphs accessed with the mechanism above do when hitting refresh
in the browser.

Regards,
Buchan
Thanks for that Buchan, it works, but the idea would be to have
separate graphs for each server as to be able to compare ex.load
across whole cluster - mentioned graph is a compressed version of
overall load.

Thnks.

Szymon
list Szymon Bakowski · Wed, 16 Jan 2008 10:22:33 +0000 ·
quoted from Szymon Bakowski
On 16/01/2008, Szymon Bakowski <user-954404a87575@xymon.invalid> wrote:
IMHO, just:
1)View the relevant graph for one of the servers (the page with multiple
graphs over different time periods)
2)Add more host names in the URL, separated by commas
3)Bookmark this URL, or put it in some relevant place people can access it.

I find the "Metrics Report" less useful, as it doesn't update, as the
multi-host graphs accessed with the mechanism above do when hitting refresh
in the browser.

Regards,
Buchan
Thanks for that Buchan, it works, but the idea would be to have
separate graphs for each server as to be able to compare ex.load
across whole cluster - mentioned graph is a compressed version of
overall load.

Thnks.

Szymon
One more thing - it seems that you have to correct "count" value in a
link - without it after specifying more than one server, you are still
getting statistics only for one server.

Thanks

Szymon
list Galen Johnson · Wed, 16 Jan 2008 09:07:51 -0500 ·
For these custom graphs, has anyone looked at drraw(http://web.taranis.org/drraw/)?  Seems like it would be easy to use this to allow creation of custom graphing pages.

=G=
quoted from Szymon Bakowski

-----Original Message-----
From: user-7527983188e8@xymon.invalid [mailto:user-7527983188e8@xymon.invalid] On Behalf Of Szymon Bakowski
Sent: Wednesday, January 16, 2008 5:23 AM
To: Buchan Milne
Cc: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] generating a page with the same graph type but from different hosts

On 16/01/2008, Szymon Bakowski <user-954404a87575@xymon.invalid> wrote:
IMHO, just:
1)View the relevant graph for one of the servers (the page with multiple
graphs over different time periods)
2)Add more host names in the URL, separated by commas
3)Bookmark this URL, or put it in some relevant place people can access it.

I find the "Metrics Report" less useful, as it doesn't update, as the
multi-host graphs accessed with the mechanism above do when hitting refresh
in the browser.

Regards,
Buchan
Thanks for that Buchan, it works, but the idea would be to have
separate graphs for each server as to be able to compare ex.load
across whole cluster - mentioned graph is a compressed version of
overall load.

Thnks.

Szymon
One more thing - it seems that you have to correct "count" value in a
link - without it after specifying more than one server, you are still
getting statistics only for one server.

Thanks

Szymon