[mrtg] Re: 2 decimal places

Matt Mozur matt.mozur at sourwood.net
Sat Nov 16 01:12:32 MET 2002


On Fri, 15 Nov 2002, Brander, Eric wrote:

> Date: Fri, 15 Nov 2002 14:51:36 -0600
> From: "Brander, Eric" <Eric.Brander at ACS-INC.com>
> To: mrtg at list.ee.ethz.ch
> Subject: [mrtg] 2 decimal places
>
>
> I'm charting a number that has 2 decimal places via an external script, yet
> MRTG only logs the integer, not the data after the decimal.  For instance,
> my external script gives the number of 43.75 yet MRTG shows (and the logs
> also indicate) 44.  Is there anyway to convince MRTG to include the 2
> decimal places?
>
> --
> 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
>

You can do this by multiplying the number in your script by 100, and then
in your MRTG config use the Factor and YTicsFactor directives like this:

Factor[example]: 0.01
YTicsFactor[example]: 0.01

Matt


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