[rrd-users] Unexpected behavior after update and on graph

James Baldwin jbaldwin at antinode.net
Fri Mar 25 21:25:24 MET 2005


I am updating a rrd of the following characteristics:
RRDs::create("spamblocker.rrd",
         "--start", "1111707121",
         "--step", "3600",
         "DS:inbox:ABSOLUTE:7200:0:U",
         "DS:knownspam:ABSOLUTE:7200:0:U",
         "RRA:AVERAGE:0.5:1:8760");

Then I update this with information using:

RRDs::update ("target.rrd", "--template", "inbox:spam", 
"1111707125:0:2");
RRDs::update ("target.rrd", "--template", "inbox:spam", 
"1111708806:3:5");
RRDs::update ("target.rrd", "--template", "inbox:spam", 
"1111712407:6:6");
RRDs::update ("target.rrd", "--template", "inbox:spam", 
"1111716006:8:14");

(This is actually looped, but this is equivalent to the updates the 
look creates)

An rrdtool dump shows the following rows created:

<!-- 2005-03-24 19:00:00 EST / 1111708800 --> <row><v> 1.7804002907e-03 
</v><v> 4.1585190471e-03 </v></row>
<!-- 2005-03-24 20:00:00 EST / 1111712400 --> <row><v> 1.6664012459e-03 
</v><v> 1.6683841925e-03 </v></row>
<!-- 2005-03-24 21:00:00 EST / 1111716000 --> <row><v> 2.2217573302e-03 
</v><v> 3.8856454473e-03 </v></row>

I then graph the rrd using:

RRDs::graph("$TARGETDIR/daily.gif",
         "--start", "$time_minus_1day",
         "--end", "$time",
         "DEF:inbox=$RRD:inbox:AVERAGE",
         "DEF:knownspam=$RRD:spam:AVERAGE",
         "AREA:spam#666633:Spam",
         "STACK:inbox#CCCC99:Inbox");

All of this works without error. At this point a graph is created but 
the vertical units are measured in milli units instead of whole numbers 
(as the data within the XML dump suggests). I am updating with whole 
numbers and am lost as to why these are being shrunken during the 
conversions for average. What am I don't incorrectly?



-- Attached file removed by Ecartis and put at URL below --
-- Type: application/pgp-signature
-- Desc: This is a digitally signed message part
-- Size: 187 bytes
-- URL : http://www.ee.ethz.ch/~slist/p/10-PGP.sig


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