<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Re: [hobbit] Graph multiple unknown named RRD values in one graph</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3354" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=137481616-18082008><FONT face=Arial
color=#0000ff size=2>I think you need the separate RRD file for each element you
want to graph, with a naming convention. Then the hobbitgraph definition
can "wildcard" the file names to put the graphs together. This is what is
done for disk graphs, and network interface graphs, etc.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=137481616-18082008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=137481616-18082008><FONT face=Arial
color=#0000ff size=2>I know nothing about NCV, but it is pretty easy to do this
if you write your own script for processing custom tests. Then you can
control how each RRD is created, and enforce your own naming convention.
The trick is to thoroughly understand how the current "multi-graph" tests work,
and then try to duplicate them with different data.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=137481616-18082008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=137481616-18082008><FONT face=Arial
color=#0000ff size=2>GLH</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Michael Hobbs
[mailto:michael.hobbs@infusionsoft.com] <BR><B>Sent:</B> Monday, August 18,
2008 11:05 AM<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> Re: [hobbit]
Graph multiple unknown named RRD values in one graph<BR></FONT><BR></DIV>
<DIV></DIV><FONT face="Tahoma, Verdana, Helvetica, Arial"><SPAN
style="FONT-SIZE: 9pt">The issue with modeling the disk definition is that it
seems to automagically create separate rrd files but reports them as a single
test. It seems I would need to send a different $COLUMN for each JVM name in
order to have hobbit create multiple rrd files with a single dataset in them.
Is this correct? If so, then wouldn’t I also need to define each $COLUMN’s NCV
entry in hobbitserver.cfg? It seems no matter how hobbit allows me to do it, I
need to explicitly define each JVM name. Have I reached the end of hobbit’s
graphing abilities or am I just going about this the wrong
way?<BR><BR>-Michael<BR><BR>On 8/18/08 2:13 AM, "Charles Jones" <<A
href="charles.r.jones@gmail.com">charles.r.jones@gmail.com</A>>
wrote:<BR><BR></SPAN></FONT>
<BLOCKQUOTE><FONT face="Tahoma, Verdana, Helvetica, Arial"><SPAN
style="FONT-SIZE: 9pt">I am really rusty on dealing with NCV stuff..I know
there is a way to do what you want, but not sure offhand of the proper
syntax and whatnot.<BR><BR>As you suspect, look at the disk definition in
hobbitgraph.cfg. Note that it is basically using variables for the DEF,
LINE2, and GPRINT options. There is also the use of a wildcard in the rrd
name definition, which comes in handy if there are multiple rrd files you
are dealing with, in which case you would use:<BR>FNPATTERN
(.*).web<BR><BR>However, from your description it sounds like you probably
have a single rrd file that has multiple DS entries in it, which I have
never dealt with.<BR><BR>Looking at the [vmstat] definition, I can see an
example of pulling multiple values from a single rrd file, but you want to
do it dynamically, using a variable for the DS instead of static
definitions...hmm<BR><BR>I just had a look at some of the source code
(hobbitgraph.c), and so far it looks to me like that feature is just not
implemented. :(<BR><BR>Unless Henrik or someone can reveal the way to do it,
it sounds like you are stuck with defining static DS names. Have a look at
the [vmstat] definition in hobbitgraph.cfg, which should give you a good
idea of how to build your own [jvm] graph definition, by using multiple DEF
entries which specific the explicit DS names,
example:<BR>DEF:jvm_mn17=jvm.rrd:jvm_mn17:AVERAGE<BR>DEF:jvm_mn18=jvm.rrd:jvm_mn18:AVERAGE<BR>DEF:jvm_mn19=jvm.rrd:jvm_mn19:AVERAGE<BR><BR>P.S.
The man page for "rrdcreate" gives some great insight into the
structure and use of rrd files.<BR>P.S.S. You could also consider using
something external like Cacti to create and display those particular graphs.
<BR><BR>-Charles<BR><BR><BR>On Thu, Aug 14, 2008 at 11:25 AM, Michael Hobbs
<<A
href="michael.hobbs@infusionsoft.com">michael.hobbs@infusionsoft.com</A>>
wrote:<BR></SPAN></FONT>
<BLOCKQUOTE><FONT face="Tahoma, Verdana, Helvetica, Arial"><SPAN
style="FONT-SIZE: 9pt">Hi all,<BR><BR>I have spent the last day reading
documentation and searching the "tubes" for an answer without any luck.
Here is my scenario.<BR><BR>I have multiple hosts reporting JVM free
memory numbers in the following format. Each line is a different JVM name
with its current free memory number.<BR><BR> mn17camp.web:
846<BR> mn18camp.web: 669<BR> mn19camp.web:
337<BR> mn30camp.web: 938<BR> mn31camp.web:
750<BR> mn32camp.web: 812<BR> mn33camp.web:
723<BR> mn5camp.web: 785<BR> mn63camp.web:
179<BR> mn65camp.web: 518<BR> mn6camp.web:
597<BR> mp3camp.web: 673<BR> tbo1camp.web:
461<BR> tbo2camp.web: 1030<BR> tbo3camp.web: 490<BR><BR>I have
hobbit saving them to an rrd file using the data channel in the ncv
format. Is there a way to graph these without explicitly defining each jvm
name? i.e. Can I iterate through whatever names are in the file? Or can I
have hobbit create different rrd files based on content of the ncv file?
I'm guessing it could be similar to how the disk test does it.
<BR><BR>Thanks,<BR></SPAN></FONT></BLOCKQUOTE></BLOCKQUOTE><FONT
face="Tahoma, Verdana, Helvetica, Arial"><SPAN style="FONT-SIZE: 9pt"><BR>--
<BR>Michael S. Hobbs<BR>sr. systems administrator<BR><BR>Phone: 480.289.6832 |
Fax: 480.807.0665<BR><A
href="michael.hobbs@infusionsoft.com">michael.hobbs@infusionsoft.com</A> |
www.infusionsoft.com<BR><BR></SPAN></FONT>
<BLOCKQUOTE>
<BLOCKQUOTE><FONT face="Tahoma, Verdana, Helvetica, Arial"><SPAN
style="FONT-SIZE: 9pt"><IMG
src="cid:137481616@18082008-1C41"><BR></SPAN></FONT></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>