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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Serge Maandag
Sent: Wednesday, September 25, 2002 2:47 AM
To: Joe Rozzi; [email protected]
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:[EMAIL PROTECTED] 
Sent: Wednesday, September 25, 2002 6:42 AM
To: [email protected]
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:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi




--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to