[rrd-users] Re: Merging RRDS question

Alex van den Bogaerdt alex at ergens.op.het.net
Sat Mar 1 10:53:44 MET 2003


On Fri, Feb 28, 2003 at 06:06:41PM +0100, Michael Lang wrote:

> Polling RoundTrip Times and Latency from 2 different locations
> for one target. Merging the two files replacing the not gathered
> values N/A like Polling System outage like :
> 
>   <row><t>1020611700</t><v>3.4000000000e+00</v><v>3.4000000000e+00</v></row>
>   <row><t>1020611700</t><v>3.5000000000e+00</v><v>N/A</v></row>
>   <row><t>1020611700</t><v>3.4000000000e+00</v><v>3.2000000000e+00</v></row>
>   <row><t>1020611700</t><v>3.2000000000e+00</v><v>3.4000000000e+00</v></row>
>   <row><t>1020611700</t><v>N/A</v><v>3.4000000000e+00</v></row>
>   <row><t>1020611700</t><v>3.3000000000e+00</v><v>3.4000000000e+00</v></row>
>   <row><t>1020611700</t><v>3.4000000000e+00</v><v>3.3000000000e+00</v></row>
>   <row><t>1020611700</t><v>3.1000000000e+00</v><v>3.4000000000e+00</v></row>
> 
> to a new rrd that contains :
> 
>   <row><t>1020611700</t><v>3.4000000000e+00</v></row>
>   <row><t>1020611700</t><v>3.5000000000e+00</v></row>
>   <row><t>1020611700</t><v>3.4000000000e+00</v></row>
>   <row><t>1020611700</t><v>3.2000000000e+00</v></row>
>   <row><t>1020611700</t><v>3.4000000000e+00</v></row>
>   <row><t>1020611700</t><v>3.3000000000e+00</v></row>
>   <row><t>1020611700</t><v>3.4000000000e+00</v></row>
>   <row><t>1020611700</t><v>3.1000000000e+00</v></row>

What you show here seems to be:


   if (DS0 != NaN)
   then
      return DS0
   else
      return DS1

This will result in NaN only when both datasources are NaN.

What isn't clear to me is if you want to do this for graphing
purposes or something else.


If you want to display the outcome of above if-then-else then
you just program this inside a CDEF.

HTH
Alex
-- 
Much of what looks like rudeness in hacker circles is not intended to give
offence. Rather, it's the product of the direct, cut-through-the-bullshit
communications style that is natural to people who are more concerned about
solving problems than making others feel warm and fuzzy.

http://www.tuxedo.org/~esr/faqs/smart-questions.html

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list