[rrd-users] Strange One

Wendy Faulkner faulkner at eco.utexas.edu
Wed Jun 27 15:56:54 MEST 2001


Ok.  I have a very strange one here.  I have a rrd of mail stats.  It
was created like:
rrdtool create daily.rrd --start 980174600 --step 3600
DS:received:GAUGE:6000:U:U DS:delivered:GAUGE:6000:U:U
DS:bounced:GAUGE:6000:U:U RRA:MAX:0.5:1:600 DS:deferred:GAUGE:6000:U:U
RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797


I grab the data from some logfiles with a perl script, and write it to
the rrd.   Today's entries for example:

/usr/local/rrdtool-1.0.33/bin/rrdtool update /opt/Mail/daily.rrd 993618000:675:780:127:742
/usr/local/rrdtool-1.0.33/bin/rrdtool update /opt/Mail/daily.rrd 993621600:1011:1116:124:744
/usr/local/rrdtool-1.0.33/bin/rrdtool update /opt/Mail/daily.rrd 993625200:819:918:134:394 
/usr/local/rrdtool-1.0.33/bin/rrdtool update /opt/Mail/daily.rrd 993628800:913:1087:80:525 
/usr/local/rrdtool-1.0.33/bin/rrdtool update /opt/Mail/daily.rrd 993632400:903:988:128:747
/usr/local/rrdtool-1.0.33/bin/rrdtool update /opt/Mail/daily.rrd 993636000:770:908:85:614
/usr/local/rrdtool-1.0.33/bin/rrdtool update /opt/Mail/daily.rrd 993639600:936:1129:87:519
/usr/local/rrdtool-1.0.33/bin/rrdtool update /opt/Mail/daily.rrd 993643200:1095:1373:85:500

But rrdtool fetch daily.rrd MAX
gets me numbers like:

 993618000: 6.6800000000e+02 7.5700000000e+02 1.2000000000e+02 9.4500000000e+02
 993621600: 1.1230000000e+03 1.2470000000e+03 1.0100000000e+02 8.9200000000e+02
 993625200: 1.1800000000e+03 1.3100000000e+03 1.3200000000e+02 7.6200000000e+02
 993628800: 1.4260000000e+03 1.5410000000e+03 1.7400000000e+02 7.7200000000e+02
 993632400: 9.3500000000e+02 1.0860000000e+03 9.5000000000e+01 1.0660000000e+03
 993636000: 8.8400000000e+02 1.2070000000e+03 3.9100000000e+02 8.5300000000e+02
 993639600: 9.6600000000e+02 1.1050000000e+03 9.5000000000e+01 7.4000000000e+02
 993643200: 1.2380000000e+03 1.4820000000e+03 1.2800000000e+02 7.5700000000e+02
 993646800: 1.7490000000e+03 1.5420000000e+03 1.0800000000e+02 1.3370000000e+03
 993650400: 2.0270000000e+03 3.3210000000e+03 1.2400000000e+02 6.7100000000e+02

i.e. you can see the numbers are quite different than what was put in.
I'm not even sure where the last 2 numbers came from, as the last 2
datestamps were 993639600 and 993643200 in what my script entered.

If I delete the rrd, create a new one, and run today's stats again, its
correct.  This only occurs after the rrd has been running for >1 days.
Even if my date stamps are wrong, it shouldn't be able to add numbers
to previous entries should it?  I'm just not sure what is going on
because it works perfectly if I start from scratch.   My graphs are
showing approximately twice as much data as there actually is, but
again are perfect if I restart the rrd from scratch.

/usr/local/rrdtool-1.0.33/bin/rrdtool graph daily.gif --vertical-label
"mail messages per hour"  DEF:del=daily.rrd:delivered:MAX
LINE2:del#FF0000:"Mail Delivered" DEF:rec=daily.rrd:received:MAX
LINE2:rec#000000:"Mail Received" DEF:bou=daily.rrd:bounced:MAX
LINE2:bou#0000FF:"Mail Bounced" DEF:defe=daily.rrd:deferred:MAX
LINE2:defe#00FFFF:"Mail Deferred"

Any clues?
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  
          Wendy Faulkner             Don't knock on Death's door. 
      faulkner at eco.utexas.edu	     Ring the bell and run away.
 http://www.eco.utexas.edu/~faulkner He hates that.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 


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