[drraw-users] Multiple sets of data on a single graph and templating

John P. Rouillard rouilj at cs.umb.edu
Thu Dec 24 13:00:56 MST 2009


Hi all:

I am having a templating issue that I just can't quite get my
head around.  It's possible it can't be done but...

I am using drraw: version SVN-SNAPSHOT [1526 post 2.2b1].

I have the following datasets (there are actually 6 of them, but
these will do for the example):

  example1.bos1.example.com/BandwidthCheckBos.rrd
  example1.bos1.example.com/BandwidthCheckMco.rrd
  example1.bos1.example.com/BandwidthCheckMdw.rrd

  example1.mco1.example.com/BandwidthCheckBos.rrd
  example1.mco1.example.com/BandwidthCheckMco.rrd
  example1.mco1.example.com/BandwidthCheckMdw.rrd

  example1.mdw1.example.com/BandwidthCheckBos.rrd
  example1.mdw1.example.com/BandwidthCheckMco.rrd
  example1.mdw1.example.com/BandwidthCheckMdw.rrd

The data is measured bandwidth from the machine before the slash
(/) to the site (bos, mco, mdw) gateway. The second component of
the machine name is the site where the machine is located.

What I want is a template that lets me select the site (bos, mco,
mdw) and graphs all the files for that site on a single graph.

I am sort of there but not really. I have a template with

 Base regular expression: ^[^/]+/BandwidthCheck([^.]+)\.rrd
 Selection Regular Expression: Site-$1

(not sure why it's selection regexp rather than just selection
expression but...). This properly allows me to select a site and
$1 is one of: Bos Mco Mdw

In the file filter regexp I have:
^[^.]+\.([^.]+).*/BandwidthCheck to select the site component
from the hostname.

What I am unable to do is to get the graph set up so that I can
plot all the data selected by choosing the site Bos in a single
graph.

I did set up one graph using explicit filenames, but the
filenames don't seem to change when I select another site. That
is if I graph:

   example1.mdw1.example.com/BandwidthCheckMco.rrd
   example1.mco1.example.com/BandwidthCheckMco.rrd 
   example1.bos1.example.com/BandwidthCheckMco.rrd

and I select Site-Mco when I display the template, then I see all
three graphs. However is I select Site-Bos I see only an icon of
a piece of paper with a question mark on it. I want to see the
data from:

   example1.mdw1.example.com/BandwidthCheckBos.rrd
   example1.mco1.example.com/BandwidthCheckBos.rrd 
   example1.bos1.example.com/BandwidthCheckBos.rrd

I also am having an issue with the labels in the legend.  I have
the label/format column for each graph set to:

  $1 MAX

which is printed as a literal "$1 MAX". From reading the help
page in the DS Configuration section, I see:

  The "Label" entry may contain references ($1, $2, ..) to
  subexpressions defined by the "File RE".

but the $1 is not being replaced with the second component of the
host name from the File Filter Regexp (which I assume is the
"File RE" since I don't see anything else even close in the
interface).

So anybody with any pointers on how to do what I want or
questions on what I am trying to do?

Thanks for your help. Happy holidays.

--
				-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.



More information about the drraw-users mailing list