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

RE: [hobbit] CUSTOM RRD DATA VIA SCRIPTS



Well, it does not appear to be that difficult.  For each data element,
you need to put out the DS line, then the file name, then the values.
Make the file name match the element.

So, if F070 = 1, F001 = 2, F037 = 5

"DS:value:GAUGE:600:0:U"
"F070.rrd"
"1"
"DS:value:GAUGE:600:0:U"
"F001.rrd"
"2"
"DS:value:GAUGE:600:0:U"
"F037.rrd"
"5"

The Hobbit RRD support will do the right thing, creating these datasets
in the directory for the associated host.

Then, in the Hobbit graph definition, you have to figure out how to use
the wildcard mechanism to find all the F*.rrd files.  The file names can
be used to replace the parameter value "value" in the dataset would
become F070, F001, F037, etc.  This seems to be how the disk magic
works.

Good luck!

GLH


-----Original Message-----
From: Werner (Ext Lists) [mailto:wmlist_ext (at) terra.com.br] 
Sent: Wednesday, March 15, 2006 6:09 AM
To: hobbit (at) hswn.dk
Subject: Re: [hobbit] CUSTOM RRD DATA VIA SCRIPTS

Hi
	You can see the disk rrd handler in
<source_code_home_dir>hobbitd/rrd/do_disk.c , who`s an include to
hobbitd/rrd/do_rrd.c

	-wm

On Wed, 15 Mar 2006 12:47:17 +0530
"Gada, Subhash" <subhash.gada (at) logicacmg.com> wrote:

> Hi,
>  
> Yes the graph mechanism of disk suites similarly to the requirement.
>  
> Can any one explain how the the separate rrd files are created for 
> different disk volumes. I couldn't  trace how this is happening.
>  
>  
> 
> Regards
> Subhash
> 
> 

To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk