[rrd-users] merging 2 or more DEF data sources into one CDEF?
kubicaryan at yahoo.com
Wed Apr 9 05:15:26 CEST 2008
What I am trying to do is take two or more datasources with different time ranges and merge them into one CDEF for display (graph and legend.)
ds foo1 - start 7 days ago, end 6 days ago
ds foo2 - start 6 days ago, end 5 days ago
ds foo3 - start 5 days ago, end now
cdef is foo1 or foo2 or foo3
I have the correct time alignments for the adjacent time intervals, ie: foo1 ends 60 seconds before foo2 starts on a 60 second interval step.
I actually looked for an 'OR' operator - one which would just OR all the datapoints in the CDEF and use which ever was valid first ... and tried using the def1,UN,def2,def1,IF method.
No data shows in the graph or legend.
Url of output:
Here is the rrdtool command line for 2 datasources:
-aPNG -se-2d -e1207628520
"GPRINT:vdsmax0:Max %10.3lf %S"
In part I am wanting to use something like this for two purposes:
1) correct multi DS addition when one DS has 'nan' during the time interval. RRD can use the 'CDEF:def_u$def=def,UN,0,def,IF' method for graph lines, but for -some- reason the Last and Min VDEF's both show '0' if this is used ... or 'nan' if it's not used ... both not acceptable.
2) tracking an app stat between two hosts - ie: a maintenance which transitions the app from host1 to host2.
3) I can create a merged RRD as a 'hack' - which is what I am doing for very important datasources, but that's expensive for too many datasources.
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rrd-users