[rrd-developers] confusion about the CF LAST

steve rader rader at teak.wiscnet.net
Sat Feb 24 01:18:14 MET 2001

Would someone please explain the CF LAST and it's purpose?!!
I can't find a discussion of what it should really do.

I think it would be nice if the CF LAST returned values from the last
data update but the enclosed script indicates otherwise.  The script
updates the DS ds1 with the value 10 way back in time but then using
the CF LAST actually returns the "now/current" value:

 logging value 10 at Mon Jan 10 09:56:06 2000 CST (947519766)
 last update was at Mon Jan 10 09:56:06 2000 CST (947519766)
 last value logged is 10.00 
 "last" as per CF LAST is NaN 

What gives?

- - - 
systems & network guy
high energy physics
university of wisconsin
- - - 


rrdtool create -b 947519465 last-confusion-test.rrd \
  DS:ds1:GAUGE:1800:0:U \
rrdtool update last-confusion-test.rrd -t ds1 947519466:10
echo "logging value 10 at Mon Jan 10 09:56:06 2000 CST (947519766)"
rrdtool update last-confusion-test.rrd -t ds1 947519766:10

cat <<_EOT_>./last-confusion-test.rrdcgi
last update was at <RRD::TIME::LAST last-confusion-test.rrd "%c %Z"> (<RRD::TIME::LAST last-confusion-test.rrd "%s">)
<RRD::GRAPH /dev/null --imginfo ''
  --end <RRD::TIME::LAST last-confusion-test.rrd "%s">
last value logged is <RRD::PRINT 0>
<RRD::GRAPH /dev/null --imginfo ''
"last" as per CF LAST is <RRD::PRINT 0>
chmod 755 ./last-confusion-test.rrdcgi
./last-confusion-test.rrdcgi < /dev/null | grep last
rm -f ./last-confusion-test.rrdcgi

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

More information about the rrd-developers mailing list