[rrd-users] Re: conversion
Joe Rozzi
joe at tormented.org
Wed Sep 25 13:54:55 MEST 2002
I am subtracting it from another value. I have cron running once a day,
keeping the value for the beginning of the day, and the value for the
end of the day. Then I'm doing (new value - old value) / 8 / 1024 / 1024
to get how many megabytes has passed through in that given amount of
time.I was converting the base from 8 to 10, because I thought the value
is in octets, but that was wrong I see. So to get MB do I (new value -
old value) / 8 / 1024 / 1024, or do I just (new value - old value) /
1024 /1024? I'm confused on which it is? Thanks for your inputs, and in
advance, again.
Joe Rozzi
-----Original Message-----
From: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch] On Behalf Of Serge Maandag
Sent: Wednesday, September 25, 2002 2:47 AM
To: Joe Rozzi; rrd-users at list.ee.ethz.ch
Subject: [rrd-users] Re: conversion
It is in bytes. It's the number of bytes that have passed through the
interface since it started counting or since the counters wrapped.
So the number itself is probably meaningless. It's the change in value
in a known interval that makes it interesting. Therefore, store it as a
counter value. Rrdtool will compute (new value - old value) / timespan
and store it in the database.
serge Maandag.
-----Original Message-----
From: Joe Rozzi [mailto:joe at tormented.org]
Sent: Wednesday, September 25, 2002 6:42 AM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] conversion
Hi, I'm using snmpwalk on a switch to get bandwidth data. Say I have a
line like the following:
IF-MIB::ifInOctets.14 = Counter32: 2049398269
How would I mathematically go about converting that number into bytes
(decimal). Is it already in decimal? Or what? Thanks in advance.
Joe Rozzi
--
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
--
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
--
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