[mrtg] Need to display a whole number, no decimal

Steve Shipway s.shipway at auckland.ac.nz
Sat Feb 27 00:51:43 CET 2010

This is caused by data normalisation (if the data does not comine in exactly on the 5-min polling boundary, it is averaged to meet this resulting in decimals if your value is small) and caused because MRTG was designed for network traffic originally.

To get around it, you have a couple of options.

1) Use Options[]:integer to make the graph display in integers.
2) Set your polling to occur exactly on the 5min boundary, possibly by manually updating the RRD with an explicitly pre-normalised time value.

It would be useful if Tobi in the future adds a new variable type (eg 'exactgauge') the bypasses the normalisation code...


From: mrtg-bounces at lists.oetiker.ch [mrtg-bounces at lists.oetiker.ch] On Behalf Of John Delaney [JDELANEY at lus.org]
Sent: Saturday, 27 February 2010 7:43 a.m.
To: mrtg at lists.oetiker.ch
Subject: [mrtg] Need to display a whole number, no decimal

When MRTG polls ( 5 minute interval ) it is displaying the ‘current’ record as a number with a decimal.  The item being polled is a hard number, no decimal.  I do not understand why it adding a decimal, or from where it is getting that number.

Has anyone run into this before?

John Delaney
Communication Systems Operator
Lafayette Utilities System
1314 Walker Road
Lafayette, LA 70506

jdelaney at lus.org<mailto:LWEBSTER at lus.org>
Office: 337-291-8146
[cid:image001.jpg at 01CAB6E1.4EDF3BF0]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20100227/ba504777/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2701 bytes
Desc: image001.jpg
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20100227/ba504777/attachment.jpg 

More information about the mrtg mailing list