[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] Custom graphs on the status page



In <43318B96.7040405 (at) saffron.net> Matti Klock <matti (at) saffron.net> 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