[rrd-users] update template

Shack Toms shack at livedata.com
Thu Oct 4 20:20:38 MEST 2001


If an update happens, and not all data sources appear in the template,
it looks to me like those sources that do not appear are treated as 
though they had the value "U", rather than being treated as though no 
data were presented for that data source.   Is this the way it is designed?

The difference is that if my consolidation function is "LAST" and one
of my data sources, say DS2, has a very long heartbeat (I want a step
function), then it appears to get reset to "U" on the next update of a 
different data set, one that does not mention DS2 in the template.   

That is, suppose I create a database as follows...

rrdtool create test-2b.rrd 
      --start=988674300 --step=900 
      RRA:LAST:0.9:1:2337
      DS:DS1:GAUGE:1000:U:U 
      DS:DS2:GAUGE:2678400:U:U

On the one hand, I populate the database as...

rrdtool update test-2b.rrd --template=DS2 988730862:0.6
rrdtool update test-2b.rrd --template=DS2 988731120:0.6
rrdtool update test-2b.rrd --template=DS2 988731198:-0.6
rrdtool update test-2b.rrd --template=DS2 988731378:0.6
rrdtool update test-2b.rrd --template=DS2 988732140:-0.6
rrdtool update test-2b.rrd --template=DS2 988732594:0.6
rrdtool update test-2b.rrd --template=DS2 988732864:-0.6
rrdtool update test-2b.rrd --template=DS2 988733196:0.6
rrdtool update test-2b.rrd --template=DS2 988733326:-0.6
rrdtool update test-2b.rrd --template=DS2 988733748:0.6
rrdtool update test-2b.rrd --template=DS2 988734286:-0.6
rrdtool update test-2b.rrd --template=DS2 988742775:0.6
rrdtool update test-2b.rrd --template=DS2 988790419:-0.6
rrdtool update test-2b.rrd --template=DS2 989931615:1.8
rrdtool update test-2b.rrd --template=DS2 989932515:1.8
rrdtool update test-2b.rrd --template=DS2 989933415:1.8
rrdtool update test-2b.rrd --template=DS2 989934315:1.8
rrdtool update test-2b.rrd --template=DS2 990543616:-1.8
rrdtool update test-2b.rrd --template=DS2 990544520:-1.8
rrdtool update test-2b.rrd --template=DS2 990545415:-1.8
rrdtool update test-2b.rrd --template=DS2 990548115:-1.8
rrdtool update test-2b.rrd --template=DS2 990688816:-1.8
rrdtool update test-2b.rrd --template=DS2 990698116:-1.8
rrdtool update test-2b.rrd --template=DS2 990700516:-1.8

and I use 

rrdtool graph RrdTest-2b.gif 
      -s 988597800 -e 990776104 
      DEF:l1=Test-2b.rrd:DS2:LAST
      LINE2:l1#0000ff:"Test Point DS2"

to get a kind of a step-function plot.

But if re-create the database and populate it as

rrdtool update test-2b.rrd --template=DS2 988730862:0.6
rrdtool update test-2b.rrd --template=DS2 988731120:0.6
rrdtool update test-2b.rrd --template=DS2 988731198:-0.6
rrdtool update test-2b.rrd --template=DS2 988731378:0.6
rrdtool update test-2b.rrd --template=DS2 988732140:-0.6
rrdtool update test-2b.rrd --template=DS2 988732594:0.6
rrdtool update test-2b.rrd --template=DS2 988732864:-0.6
rrdtool update test-2b.rrd --template=DS2 988733196:0.6
rrdtool update test-2b.rrd --template=DS2 988733326:-0.6
rrdtool update test-2b.rrd --template=DS2 988733748:0.6
rrdtool update test-2b.rrd --template=DS2 988734286:-0.6
rrdtool update test-2b.rrd --template=DS2 988742775:0.6
rrdtool update test-2b.rrd --template=DS1 988743600:-0.25500
rrdtool update test-2b.rrd --template=DS1 988744440:-0.31875
rrdtool update test-2b.rrd --template=DS1 988744500:-0.31875
rrdtool update test-2b.rrd --template=DS1 988744740:-0.38251
rrdtool update test-2b.rrd --template=DS1 988745400:-0.44626
rrdtool update test-2b.rrd --template=DS1 988746300:-0.76502
rrdtool update test-2b.rrd --template=DS1 988747200:-0.89252
rrdtool update test-2b.rrd --template=DS1 988748100:-1.14753
rrdtool update test-2b.rrd --template=DS1 988749000:-0.76502
rrdtool update test-2b.rrd --template=DS1 988749900:-0.89252
rrdtool update test-2b.rrd --template=DS1 988750800:-1.14753
rrdtool update test-2b.rrd --template=DS1 988751700:-1.02002
rrdtool update test-2b.rrd --template=DS1 988752600:-1.14753
rrdtool update test-2b.rrd --template=DS1 988753500:-1.27503
rrdtool update test-2b.rrd --template=DS1 988754400:-1.78505
rrdtool update test-2b.rrd --template=DS1 988755300:-0.89252
rrdtool update test-2b.rrd --template=DS2 988790419:-0.6
rrdtool update test-2b.rrd --template=DS2 989931615:1.8
rrdtool update test-2b.rrd --template=DS2 989932515:1.8
rrdtool update test-2b.rrd --template=DS2 989933415:1.8
rrdtool update test-2b.rrd --template=DS2 989934315:1.8
rrdtool update test-2b.rrd --template=DS2 990543616:-1.8
rrdtool update test-2b.rrd --template=DS2 990544520:-1.8
rrdtool update test-2b.rrd --template=DS2 990545415:-1.8
rrdtool update test-2b.rrd --template=DS2 990548115:-1.8
rrdtool update test-2b.rrd --template=DS2 990688816:-1.8
rrdtool update test-2b.rrd --template=DS2 990698116:-1.8
rrdtool update test-2b.rrd --template=DS2 990700516:-1.8

where the only difference is that I have thrown in some of the DS1 data,
then my graph of DS2 looks different where the DS1 data appeared.  There
is a break in the graph (near the left).

Shack


--
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