[mrtg] negative counters SOLVED
Tyler J. Frederick
tyler at sportsline.com
Mon Oct 1 19:06:45 MEST 2001
Gang... I think I solved it..
Upon reviewing the MRTG source code, it appears that all RRD's are created
with a minimum of zero. This being the case, if anyone is querying
Checkpoint's mib, make sure you run an "rrdtool tune <file> -i
ds0:-100000000 -i ds1:-10000000" or something similar so it will handle
the negative numbers correctly.. Perhaps a "MinBytes" option in the next
mrtg?
tf.
--
Tyler J. Frederick
Systems Engineer/CCSE
Sportsline.com, Inc.
On Mon, 1 Oct 2001, Tyler J. Frederick wrote:
>
> More info on this one.. I did an ASCII dump of the RRD, and found that the
> negative numbers seem to be freaking out RRDtool. Here's a snip from the
> XML it generates:
>
> <!-- PDP Status -->
> <last_ds>-1006303677</last_ds>
> <value>0.0000000000e+00</value>
>
> The value being 0 indicates to me that it doesn't seem to know how to
> handle the negative numbers (it should be the same, it's just subtraction)
>
> tf.
>
>
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list