Stephen Carville | 13 May 2010 01:42

Multiples views of same data

Is there a way to use the same data set in different views with different 
draw-as directives?

I currently gather some basic data on one of our web sites:

datasource latf-login
  ds-source  = "exec:0: /var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
  rrd-ds-type   = GAUGE

datasource latf-follow-link
  ds-source  = "exec:1: /var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
  rrd-ds-type   = GAUGE

datasource latf-submit-form
  ds-source     = "exec:2:/var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
  rrd-ds-type   = GAUGE

datasource latf-dl-pdf
  ds-source     = "exec:3:/var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
  rrd-ds-type   = GAUGE

targetType  = latf-times
  ds        = "latf-login, latf-follow-link, latf-submit-form, latf-dl-pdf"
  view      = "latf-performance"

view  latf-performance
    elements = "latf-login latf-follow-link latf-submit-form latf-dl-pdf"

Is there any way to use the same data gathered above but in a different view. 
Specifically I'd like to have one normal line graph and another with the data  
(Continue reading)

Kiss Gabor (Bitman | 13 May 2010 14:14
Picon

Re: Multiples views of same data

> Is there a way to use the same data set in different views with different 
> draw-as directives?
> 
> I currently gather some basic data on one of our web sites:
> 
> datasource latf-login
>   ds-source  = "exec:0: /var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
>   rrd-ds-type   = GAUGE
> 
> datasource latf-follow-link
>   ds-source  = "exec:1: /var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
>   rrd-ds-type   = GAUGE
>   
> datasource latf-submit-form
>   ds-source     = "exec:2:/var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
>   rrd-ds-type   = GAUGE
> 
> datasource latf-dl-pdf
>   ds-source     = "exec:3:/var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
>   rrd-ds-type   = GAUGE
> 
> targetType  = latf-times
>   ds        = "latf-login, latf-follow-link, latf-submit-form, latf-dl-pdf"
>   view      = "latf-performance"
> 
> view  latf-performance
>     elements = "latf-login latf-follow-link latf-submit-form latf-dl-pdf"
> 
> Is there any way to use the same data gathered above but in a different view. 
> Specifically I'd like to have one normal line graph and another with the data  
(Continue reading)

Stephen Carville | 13 May 2010 20:31

Re: Multiples views of same data

On Thursday 13 May 2010 05:14, Kiss Gabor (Bitman) wrote:
> Line type and stacking is described in Graph Dictionary rather than
>
> View. The Cricket Reference guide writes:
> | Each named graph dictionary entry (not --default--) should share the name
> | of a datasource dictionary entry. In this respect, the graph dictionary
> | could be merged with the datasource dictionary.
>
> In other words each Graph belongs to one and only one Datasource and
> vice versa. If you need different visual representations of the
> same info you have to create several Datasources based on the same
> DS-Source.
> As far as I understand. :-)

Thanks.

That's pretty much the way I see it too.  I was hoping someone might know a 
workaround  Maybe define one datasouce as a copy of another like:

datasource latf-login
  ds-source     = "exec:0:/var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
  rrd-ds-type   = GAUGE

datasource latf-login-stack
  ds-source = COPY:latf-login
  rrd-ds-type = GAUGE

I know COPY is not a keyword.  The above is just an example.

I've been playing at adapting Cricket to use the CGI::Application framework. 
(Continue reading)

Chris Adams | 13 May 2010 20:46

Re: Multiples views of same data

Once upon a time, Stephen Carville <scarville <at> lereta.com> said:
> datasource latf-login
>   ds-source     = "exec:0:/var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
>   rrd-ds-type   = GAUGE
>
> datasource latf-login-stack
>   ds-source = COPY:latf-login
>   rrd-ds-type = GAUGE

You could do something like this:

datasource latf-login-stack
  rrd-ds-type = COMPUTE
  ds-source = ds0

You have to know what the name of the source DS is in the RRD.  The
default names them ds0, ds1, ds2, ... in the order they appear in the
target definition.  If you set "$gLongDSName=1" in your cricket-conf.pl,
I think the ds-source would actually be "latf-login" (I haven't played
with that option in a while though, so I could be remembering wrong).

--

-- 
Chris Adams <cmadams <at> hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.

------------------------------------------------------------------------------
Kiss Gabor (Bitman | 13 May 2010 21:01
Picon

Re: Multiples views of same data

> workaround  Maybe define one datasouce as a copy of another like:
> 
> datasource latf-login
>   ds-source     = "exec:0:/var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
>   rrd-ds-type   = GAUGE
> 
> datasource latf-login-stack
>   ds-source = COPY:latf-login
>   rrd-ds-type = GAUGE
> 
> I know COPY is not a keyword.  The above is just an example.

Just write

datasource latf-login
  ds-source     = "exec:0:/var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
  rrd-ds-type   = GAUGE

datasource latf-login-stack
  ds-source     = "exec:0:/var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
  rrd-ds-type   = GAUGE

"latfdata" will be executed only once and data will be cached for later use.

Gabor

--

-- 
Most maszik ki a majom a vizbol.

------------------------------------------------------------------------------
(Continue reading)

John Hutchinson | 24 Jun 2010 20:25

agrigated view of multiple devices

I have 4 dsl's running to the same location I need a way to create one graph
with the bandwidth added from each circuit to form a total usage for that
location.  I cannot seem to find how to do this in cricket.

John

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
c3 | 24 Jun 2010 21:05

Re: agrigated view of multiple devices

You can use the compute DS, but be aware the nan does not add. A single 
missed datapoint in any source will yield nan for the compute.

http://oss.oetiker.ch/rrdtool/tut/index.en.html

On 6/24/2010 1:25 PM, John Hutchinson wrote:
> I have 4 dsl's running to the same location I need a way to create one graph
> with the bandwidth added from each circuit to form a total usage for that
> location.  I cannot seem to find how to do this in cricket.
>
> John
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> cricket-users mailing list
> cricket-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cricket-users
>    

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
(Continue reading)

John Hutchinson | 24 Jun 2010 21:33

Re: agrigated view of multiple devices

Is there any where that I can see an example of how to do this??

-----Original Message-----
From: c3 [mailto:c3c1 <at> c3c1.com] 
Sent: Thursday, June 24, 2010 3:06 PM
To: cricket-users <at> lists.sourceforge.net
Subject: Re: [cricket-users] agrigated view of multiple devices

You can use the compute DS, but be aware the nan does not add. A single 
missed datapoint in any source will yield nan for the compute.

http://oss.oetiker.ch/rrdtool/tut/index.en.html

On 6/24/2010 1:25 PM, John Hutchinson wrote:
> I have 4 dsl's running to the same location I need a way to create one
graph
> with the bandwidth added from each circuit to form a total usage for that
> location.  I cannot seem to find how to do this in cricket.
>
> John
>
>
>
----------------------------------------------------------------------------
--
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
(Continue reading)

c3 | 24 Jun 2010 21:36

Re: agrigated view of multiple devices

http://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html

On 6/24/2010 2:33 PM, John Hutchinson wrote:
> Is there any where that I can see an example of how to do this??
>
> -----Original Message-----
> From: c3 [mailto:c3c1 <at> c3c1.com]
> Sent: Thursday, June 24, 2010 3:06 PM
> To: cricket-users <at> lists.sourceforge.net
> Subject: Re: [cricket-users] agrigated view of multiple devices
>
> You can use the compute DS, but be aware the nan does not add. A single
> missed datapoint in any source will yield nan for the compute.
>
> http://oss.oetiker.ch/rrdtool/tut/index.en.html
>
>
> On 6/24/2010 1:25 PM, John Hutchinson wrote:
>    
>> I have 4 dsl's running to the same location I need a way to create one
>>      
> graph
>    
>> with the bandwidth added from each circuit to form a total usage for that
>> location.  I cannot seem to find how to do this in cricket.
>>
>> John
>>      

------------------------------------------------------------------------------
(Continue reading)

Rick Frey | 24 Jun 2010 22:30
Favicon

Re: agrigated view of multiple devices

You may want to try using mtargets  with mtargets-ops of  "sum()".   
mtarget is  kind of a virtual target that  is only used by the grapher.
Common to graph multiple data sources in a single graph in this manner.  
This allows you to add/delete targets in future without losing past 
data.  You can also set unknown-is-zero if you want to show missing data 
as 0 instead of NaN.

Sample config
target sumDslLinks
        target-type     =<same target type as your individual dsl targets>
        mtargets        = "dsl1; dsl2; dsl3; dsl4"
        mtargets-ops    = sum()
        unknown-is-zero = true

See http://cricket.sourceforge.net/support/doc/reference.html for more 
detail.

c3 wrote:
> http://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html
>
> On 6/24/2010 2:33 PM, John Hutchinson wrote:
>   
>> Is there any where that I can see an example of how to do this??
>>
>> -----Original Message-----
>> From: c3 [mailto:c3c1 <at> c3c1.com]
>> Sent: Thursday, June 24, 2010 3:06 PM
>> To: cricket-users <at> lists.sourceforge.net
>> Subject: Re: [cricket-users] agrigated view of multiple devices
>>
(Continue reading)

Oliver Landsmann | 24 Jun 2010 21:41
Picon

Re: agrigated view of multiple devices

Hi,

that is one of the easy tasks of cricket. Look for mtargets in the 
reference documentation
http://cricket.sourceforge.net/support/doc/reference.html

so for example (this is from the top of my head, so there might be small 
errors):

target all_in_one_graph
    mtargets = "dsl1;dsl2;dsl3;dsl4"
    mtargets-ops = sum()
    target-type = dls_line_bandwith

of course i just made the names up :)

You would need to supply your config for a more tailored example.

Br,
   Oliver

Btw. pointing out RRD tools documentation is not that helpful to 
configure cricket ;)

On 24/06/2010 21:36, c3 wrote:
> http://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html
>
> On 6/24/2010 2:33 PM, John Hutchinson wrote:
>    
>> Is there any where that I can see an example of how to do this??
(Continue reading)


Gmane