[rrd-users] Re: Wrapping not working correctly
Webb, Trey
twebb at gnilink.net
Thu May 15 22:42:44 MEST 2003
All,
Thanks for all the help so far. This still is not working for me... ;-(
Here is the code I am using to generate the RRD:
$rrdcmd = qq!RRDs::create("$filename", "--start", $start, "--step",
$interval,!;
foreach $dsname ( @dsnames ) {
$rrdcmd .= qq!"DS:$dsname:COUNTER:20:0:4294967295",!;
}
$rrdcmd .= qq!"RRA:AVERAGE:0.5:1:$records",!;
$rrdcmd .= qq!);!;
`echo "RRD CREATE COMMAND: $rrdcmd\n" >> /tmp/tshoot.log`;
eval $rrdcmd; warn $@ if $@;
if ($error = RRDs::error) {
`echo "buildRRD(): RRD Error: $error\n" >> /tmp/tshoot.log`;
};
Is there a difference in doing it this way versus using RRD Tune? I am
creating these RRDs dynamically from data in a database based on user input.
So they are not sitting around on the filesystem. Here is the data from the
rrd:
<ds>
<name> in </name>
<type> COUNTER </type>
<minimal_heartbeat> 20 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> 4.2949672950e+09 </max>
<!-- PDP Status -->
<last_ds> 3498405006 </last_ds>
<value> 4.8936307636e+07 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
<ds>
<name> out </name>
<type> COUNTER </type>
<minimal_heartbeat> 20 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> 4.2949672950e+09 </max>
<!-- PDP Status -->
<last_ds> 1309616412 </last_ds>
<value> 5.5953963545e+07 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
Here is an example of the spike:
<!-- 2003-05-15 16:14:30 EDT / 1053029670 -->
<row><v> 9.1422344855e+06 </v><v> 8.8648638673e+06
</v></row>
<!-- 2003-05-15 16:14:40 EDT / 1053029680 -->
<row><v> 9.1996681200e+06 </v><v> 8.5967813200e+06
</v></row>
<!-- 2003-05-15 16:14:50 EDT / 1053029690 -->
<row><v> 8.9092431300e+06 </v><v> 8.6072901000e+06
</v></row>
<!-- 2003-05-15 16:15:00 EDT / 1053029700 -->
<row><v> 1.6685239020e+07 </v><v> 1.6655100550e+07
</v></row>
<!-- 2003-05-15 16:15:10 EDT / 1053029710 -->
<row><v> 9.2444089082e+06 </v><v> 8.8873969809e+06
</v></row>
<!-- 2003-05-15 16:15:20 EDT / 1053029720 -->
<row><v> 8.8734242618e+06 </v><v> 8.7188155091e+06
</v></row>
Note that the min and max are set...Thanks for the assistance.
-----Original Message-----
From: Lordy [mailto:rrdtool at lordy.de]
Sent: Thursday, May 15, 2003 1:31 PM
To: Webb, Trey; 'Tobias Oetiker'
Cc: rrd-users at list.ee.ethz.ch
Subject: RE: [rrd-users] Re: Wrapping not working correctly
Hi Trey,
here is what I did on my RRD file:
rrdtool tune eth0.rrd -i input:0
rrdtool tune eth0.rrd -a output:0
rrdtool tune eth0.rrd -a input:4294967295
rrdtool tune eth0.rrd -a output:4294967295
Since I did that the counter has wrapped multiple times and there are no
peaks
in my RRD or graphs any more :-)
Best regards,
Lordy
At 10:59 15.05.2003 -0400, Webb, Trey wrote:
>All,
>
>I have been having this same problem see my earlier post:
>
><http://www.ee.ethz.ch/~slist/rrd-users/msg06675.html>http://www.ee.ethz.ch
/~slist/rrd-users/msg06675.html
>
>
>I followed the suggestion of setting a minimum and maximum, with no luck.
>The counters are wrapping at 32-bit boundaries and when that happens it
>seems to be adding the wrap amount to the average, thus creating a spike.
>Any help would be greatly appreciated.
>
>--trey
>
>-----Original Message-----
>From: Tobias Oetiker [<mailto:oetiker at ee.ethz.ch>mailto:oetiker at ee.ethz.ch]
>Sent: Thursday, May 15, 2003 1:33 AM
>To: Lordy
>Cc: rrd-users at list.ee.ethz.ch
>Subject: [rrd-users] Re: Wrapping not working correctly
>
>Today Lordy wrote:
> > This is a log of the counter wrap and the according values from the
> rrdfile:
> >
> > TIMESTAMP : INPUT : OUTPUT (log)
> > 1052944620 : 26649774336 : 34299525336
> > 1052944680 : 26653861104 : 83380896
> > 1052944740 : 26657344136 : 214937496
> > [...]
> > 1052931120 : 25223793736 : 34297051328
> > 1052931181 : 25229329384 : 150880920
> > 1052931240 : 25234327032 : 343693456
> >
> > TIMESTAMP : INPUT(AVERAGE) : OUTPUT(AVERAGE) (rrd)
> > 1052944500: 3.5023817268e+04 1.1066858514e+06
> > 1052944800: 6.5019546667e+04 6.1489146800e+16
> > 1052945100: 9.9007487213e+04 3.0024917578e+06
> > [...]
> > 1052931000: 9.3047440000e+04 3.2095458133e+06
> > 1052931300: 8.1707626667e+04 6.1489146801e+16
> > 1052931600: 7.2381360000e+04 2.9875407733e+06
> >
> > Is this a problem with /proc/net/dev, rrdtool or just sh!t in -> sh!t
> out ?
> >
> > I'm really curious to hear any comments on this as rrdtool is supposed
to
> > "handle wraps
> > gracefully" according to Tobi's earlier postings on this list.
>
>Lordy,
>
>for wrap detection to work, a min and max must be set, and the
>wrpas must happen at 32bit and 64bit bounderies, otherwhise it is
>sensible to just use DERIVE datasources with min set to 0
>
>tobi
> >
> > Best regards,
> > Lordy
> >
> > --
> > Unsubscribe
>
<mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe>mailto:rrd-use
rs-request at list.ee.ethz.ch?subject=unsubscribe
>
> >
> Help
>
<mailto:rrd-users-request at list.ee.ethz.ch?subject=help>mailto:rrd-users-requ
est at list.ee.ethz.ch?subject=help
>
> >
> Archive
>
<http://www.ee.ethz.ch/~slist/rrd-users>http://www.ee.ethz.ch/~slist/rrd-use
rs
> >
> WebAdmin
>
<http://www.ee.ethz.ch/~slist/lsg2.cgi>http://www.ee.ethz.ch/~slist/lsg2.cgi
> >
>
>--
> ______ __ _
>/_ __/_ / / (_) Oetiker @ ISG.EE, ETZ J97, ETH, CH-8092 Zurich
> / // _ \/ _ \/ / System Manager, Time Lord, Coder, Designer, Coach
>/_/
>\.__/_.__/_/
><http://people.ee.ethz.ch/~oetiker>http://people.ee.ethz.ch/~oetiker
>+41(0)1-632-5286
>
>--
>Unsubscribe
><mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe>mailto:rrd-us
ers-request at list.ee.ethz.ch?subject=unsubscribe
>
>Help
><mailto:rrd-users-request at list.ee.ethz.ch?subject=help>mailto:rrd-users-req
uest at list.ee.ethz.ch?subject=help
>
>Archive
><http://www.ee.ethz.ch/~slist/rrd-users>http://www.ee.ethz.ch/~slist/rrd-us
ers
>WebAdmin
><http://www.ee.ethz.ch/~slist/lsg2.cgi>http://www.ee.ethz.ch/~slist/lsg2.cg
i
--
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