[mrtg] Re: MRTG or SNMP Oddity [MRTG Problem]

Holt Grendal holtor at yahoo.com
Mon Jan 27 18:33:57 MET 2003


Hello again everyone,

I have certaintly narrowed this down to a mrtg problem.

Looking at my data below. You take the snmp value subtracted
from the previous value, then divided by 300 to get the log
file value. Then you take that value and multiply it by 8 and
divide by 1024 to get a value in kbps.

Incomming: (1722929411 – 441520471) / 300 = 4271363
Outgoing: (64825171 – 58990350) / 300 = 19449

4271363 = ~33,370 kbps = 33.37 mbps
19449 = ~151 kbps

Now those values are correct values as printed from SNMP but
mrtg logged these values:

1043683203 12194264 19449 12194264 19449

The 19449 is correct but the 12194264 clearly should have
been 4271363

The 12194264 is a larger value because acctually I hand modified
this after the fact. Irregardless mrtg is not doing the math, and
printing the proper value to the log file.

Any ideas?

Thank you!

Holt.

--- Holt Grendal <holtor at yahoo.com> wrote:
> 
> 
> Hello all,
> 
> I still have this problem and apparently my reply message 
> several days ago got rejectred due to too much quoting. Since
> then I've gathered some more information and it looks like this
> in an MRTG problem if you read my original post below.
> 
> FYI: In my .cfg i have Options: bits
> I turned on debugging when one of these DoS attacks was going
> on and here is the data I collected:
> 
> From mrtg debug:
> --base: Get Current values: 441520471, 58990350, 8 days, 5:50:19, switch-name, 1043682903)
> 
> What actually printed in the .log file for the interface:
> 1043682903 12194264 14227 12194264 14227
> 
> From mrtg debug (5 mins after the above one):
> --base: Get Current values: 1722929411, 64825171, 8 days, 5:55:19, switch-name, 1043683203)
> 
> What actually printed in the .log file for the interface:
> 1043683203 12194264 19449 12194264 19449
> 
> 
> Those numbers captured from snmp and the numbers printed
> in the *.log by mrtg do not match. I'm not sure what the units
> are but whatevere they are you can clearly see the snmp values
> changing while the ones printed in the mrtg log do not change.
> 
> Does anyone know why this occurs? Does anyone know what units
> the values from snmp are? I know in the log its saved in bits
> since I specified that.
> 
> Would switching to rrdtool help?
> 
> I wasn't able to find anything out of the ordinary in the debug
> log. I had almost every option turned on.
> 
> Thanks,
> 
> Holt
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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