[mrtg] Re: mrtg numbers differ from snmpget

Reckhard, Tobias tobias.reckhard at secunet.com
Wed May 7 06:53:41 MEST 2003

> What Daniel wrote works correct, but leads to wrong values in 
> the graph on the Y-axis (free kB instead of MB for instance) 
> at least in case of hrStorage.
> To be also independant of AllocationUnitSize, you should 
> rather multiply the value from hrStorageUsed with 
> hrStorageAllocationUnits to receive bytes; 
> replace MaxBytes with the according values from hrStorageSize 
> and multiply also with hrStorageAllocationUnits (which is mostly 4096)

I'd noticed the presence of a variable denoting the size of the units
returned by the hrStorageUsed queries. I hadn't thought of multiplying two
SNMP values, though, I'd been looking to perform a constant multiplication
and had thought that 'Factor:' would do that. The manual speaks true in that
that option only affects the numbers displayed underneath the graphs...

> In general I'd suggest you to use kMG with caution..

So I've learnt (the hard way). ;-)

Thanks a lot for your advice, I'll include the multiplication in my config
file. It'll make the graphs much more easily grasped.


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