[rrd-users] Counter Warrping Confusion

Webb, Trey twebb at gnilink.net
Mon May 12 23:05:04 MEST 2003


All,
 
I have read a good number of the posts on the list regarding counter wraps
and RRDs handling of them, but I am still having some trouble here. I have
32-bit input/output data from a routers interface being collected. At
certain intervals the data will wrap. What RRD appears to be doing is taking
the wrap amount into consideration (which is as it should be) but then it is
ADDING that value to the AVERAGE. This results in what typically graphs as
50 MB average spiking to 80MB  (for example). Here is an example of the data
before and after the wrap (the first column is input, the second is output):
 
Actual Data:
 
 
| 4199346673 |  329195279 |
| 4246345911 |  374144191 |
| 4293333190 |  418241299 |
|   44091383 |  463118134 |
|  133639636 |  552326045 |
|  178042798 |  594882418 |
 
 
RRD Data:
 
 
<!-- 2003-05-09 12:40:00 EDT / 1052498400 --> <row><v> 4.6993258500e+06
</v><v> 4.4523010000e+06 </v></row>
<!-- 2003-05-09 12:40:10 EDT / 1052498410 --> <row><v> 4.4277952682e+06
</v><v> 4.2447115364e+06 </v></row>
<!-- 2003-05-09 12:40:20 EDT / 1052498420 --> <row><v> 6.0760477018e+06
</v><v> 6.0161438036e+06 </v></row>
<!-- 2003-05-09 12:40:30 EDT / 1052498430 --> <row><v> 7.1490216600e+06
</v><v> 7.0547295800e+06 </v></row>
<!-- 2003-05-09 12:40:40 EDT / 1052498440 --> <row><v> 4.3605919200e+06
</v><v> 4.2118977400e+06 </v></row>
<!-- 2003-05-09 12:40:50 EDT / 1052498450 --> <row><v> 4.2841773400e+06
</v><v> 4.1698872000e+06 </v></row>
 
 
 
RRD Configuration:
 
<!-- Round Robin Database Dump -->
<rrd>
        <version> 0001 </version>
        <step> 10 </step> <!-- Seconds -->
        <lastupdate> 1052498569 </lastupdate> <!-- 2003-05-09 12:42:49 EDT
-->
 
        <ds>
                <name> in </name>
                <type> COUNTER </type>
                <minimal_heartbeat> 20 </minimal_heartbeat>
                <min> NaN </min>
                <max> NaN </max>
 
                <!-- PDP Status -->
                <last_ds> 723467615 </last_ds>
                <value> 3.4931086364e+07 </value>
                <unknown_sec> 0 </unknown_sec>
        </ds>
 
        <ds>
                <name> out </name>
                <type> COUNTER </type>
                <minimal_heartbeat> 20 </minimal_heartbeat>
                <min> NaN </min>
                <max> NaN </max>
 
                <!-- PDP Status -->
                <last_ds> 1128245708 </last_ds>
                <value> 3.2321717182e+07 </value>
                <unknown_sec> 0 </unknown_sec>
        </ds>
 
<!-- Round Robin Archives -->
        <rra>
                <cf> AVERAGE </cf>
                <pdp_per_row> 1 </pdp_per_row> <!-- 10 seconds -->
                <xff> 5.0000000000e-01 </xff>
 
                <cdp_prep>
                        <ds><value> NaN </value>  <unknown_datapoints> 0
</unknown_datapoints></ds>
                        <ds><value> NaN </value>  <unknown_datapoints> 0
</unknown_datapoints></ds>
                </cdp_prep>
 
 
Any help you can provide would be greatly appreciated.
 
--trey

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