Re: Multiples views of same data

"Kiss Gabor (Bitman)" <[email protected]> Thu, 13 May 2010 21:01:42 +0200 (CEST)
Newsgroups gmane.network.cricket.user
Message-ID <[email protected]>
> 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.

------------------------------------------------------------------------------