[mrtg] Re: kMG option clarification needed...

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Mon Jul 2 14:19:08 MEST 2001

Alexander Fichman wrote:
> I am trying to monitor my Exchange Server's In/Out traffic counters. The
> OIDs are:
> . (imsTotalInboundKilobytes)
> . (imsTotalOutboundKilobytes)

Kilo here is most likely 1024, so why not simply multiply this by 1024 ?

[split into two lines for readability]

                     :whatever at somewhere * 1024

> Only MRTG assumes it reads bytes by default... I know it can be changed by
> using the kMG[ezwf] directive, and I read both official/unofficial faq and
> docs. Either I am terribly stupid or the explanations are somewhat cryptic;
> either way, I can't seem to grasp the correct syntax; every example given
> puts multiple prefixes on the line.

This can be used to alter the default prefixes into other prefixes.  You'd
need to specify each prefix starting from "no prefix".

So, your short legend should be "Bps" and the kMG should be "k,M,G,T,P,E"

The end result is that "Bps" is prefixed with "k" where MRTG would normally
use the empty prefix.  So:  " Bps" is altered into "kBps".

Note that you don't have to do this is you enter the value in bytes (as
you do when you are multiplying by 1024 at the source).

 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
| Technical questions sent directly to me will be nuked. Use the list. | 
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |

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