Xymon Mailing List Archive search

Custom graphs on the status page

3 messages in this thread

list Matti Klock · Wed, 21 Sep 2005 12:34:30 -0400 ·
Is it possible to add graphs of custom tests to a status page as well as
the trends page?

I'm running a custom test (named "foo") that measures response times of
a service. So far I've managed to get a graph of foo to appear under
trends using Hobbit's NCV handler, but I'm not having any luck getting
it on foo's status page.

Here's what I have:
- custom test named "foo" that sends status messages in "sec: <time>" format
- in hobbitgraph.cfg, added a [foo] section
- in hobbitserver.cfg, added "foo=ncv" to TEST2RRD and "foo" to GRAPHS
- in hobbitserver.cfg, added NCV_foo="sec:GAUGE"

I tried adding "GRAPHS:*,foo" to the host entry in bb-hosts, as per this
message about mysqlstatus [1], but that had no effect.

Thanks for any suggestions.

Matti

[1] http://www.hswn.dk/hobbiton/2005/06/msg00268.html
list Henrik Størner · Thu, 29 Sep 2005 08:51:51 +0000 (UTC) ·
quoted from Matti Klock
In <user-92e8a534973a@xymon.invalid> Matti Klock <user-cec928ff83f7@xymon.invalid> writes:
Is it possible to add graphs of custom tests to a status page as well as
the trends page?
The current way of configuring what graphs goes with what status is
very ad-hoc and easy to break. 

The way it works now is as follows:

* You have a status called "foo", which is tracked by the RRD file
  "foo.rrd".

* This is mapped to an RRD file via the TEST2RRD setting. So you must
  add "foo" to the list in the TEST2RRD setting. If the RRD filename
  is not the same as the status names (e.g. the status column is called
  "foo", but the rrd-file is "bar.rrd", then it must be done as "foo=bar").

* Then the GRAPHS setting is consulted. This is the list of what graphs
  go on the "trends" column, but it is *also* (in this is the messy part)
  used to decide what graphs are available at all, and how to split
  graphs from multiple RRD files (e.g. disk graphs) into multiple
  graphs.  So you must have the graph listed here as well.

To confuse matters further, there's also the TRENDS setting in the bb-hosts
file, which is used to modify what graphs show up on the "trends" page.

All in all, it's confusing enough that even I get it wrong occasionally.


The way I'd like it to work is to get rid of the TEST2RRD and GRAPHS 
settings. Instead, I'd like to have a direct mapping from the status 
column name to the graph definition in hobbitgraphs.cfg. That's a clean-up
job I need to do sometime soon.


Regards,
Henrik
list Rich Smrcina · Mon, 31 Oct 2005 06:49:48 -0600 ·
I have a custom test that I call sp_util (for Spool Utilization, unrelated to the mail spool on Linux/Unix systems).  On some hosts, the graph for sp_util is called sp_util.rrd, it contains one data point and that graph show up just fine.

On other hosts, there are two data points and to (hopefully) make things easier called the graph pqueue.rrd for those hosts.  For these other hosts it is still considered spool utilization, so the column is called sp_util.

The intent is to display the sp_util graph under some hosts and the pqueue graph under the other hosts (based on where the graphed data applies).

I've tried varying combinations of sp_util and pqueue in the TEST2RRD and GRAPHS settings, with no luck (one or the other shows up under their respective host, never both).

Can this be done and if so, how?

Thanks.
quoted from Henrik Størner

Henrik Storner wrote:
In <user-92e8a534973a@xymon.invalid> Matti Klock <user-cec928ff83f7@xymon.invalid> writes:

Is it possible to add graphs of custom tests to a status page as well as
the trends page?

The current way of configuring what graphs goes with what status is
very ad-hoc and easy to break. 
The way it works now is as follows:

* You have a status called "foo", which is tracked by the RRD file
  "foo.rrd".

* This is mapped to an RRD file via the TEST2RRD setting. So you must
  add "foo" to the list in the TEST2RRD setting. If the RRD filename
  is not the same as the status names (e.g. the status column is called
  "foo", but the rrd-file is "bar.rrd", then it must be done as "foo=bar").

* Then the GRAPHS setting is consulted. This is the list of what graphs
  go on the "trends" column, but it is *also* (in this is the messy part)
  used to decide what graphs are available at all, and how to split
  graphs from multiple RRD files (e.g. disk graphs) into multiple
  graphs.  So you must have the graph listed here as well.

To confuse matters further, there's also the TRENDS setting in the bb-hosts
file, which is used to modify what graphs show up on the "trends" page.

All in all, it's confusing enough that even I get it wrong occasionally.


The way I'd like it to work is to get rid of the TEST2RRD and GRAPHS settings. Instead, I'd like to have a direct mapping from the status column name to the graph definition in hobbitgraphs.cfg. That's a clean-up
job I need to do sometime soon.


Regards,
Henrik

-- 

Rich Smrcina
VM Assist, Inc.
Main: (262)392-2026
Cell: (XXX)XXX-XXXX
Ans Service:  (360)715-2467
user-61add9955ef9@xymon.invalid

Catch the WAVV!  http://www.wavv.org
WAVV 2006 - Chattanooga, TN - April 7-11, 2006