[mrtg] Re: Real Numbers in Log cause failure

James Overbeck grendel at gmo.jp
Thu Nov 13 17:24:50 MET 2003


Just a thought: Try multiplying by nine then diving by five.

.1.3.6.1.4.1.9.9.13.1.3.1.3.1&1.3.6.1.4.1.9.9.13.1.3.1.3.2:twtn99 at 10.216.35.1 * 9 / 5 + 32

Best regards,
James

Jeffrey Wilkinson wrote:

> I'm trying to use mrtg 2.10.5 on Win2000 to monitor temperature.  Values from our
> router are returned in Celcius but we prefer them in Fahrenheit, so we modified the
> Target in mrgt.cfg to *1.8+32.  When we leave as Celcius, integer values are logged
> and graphing works fine.  When converted to Fahrenheit, real numbers are the result
> and logging/graphing fails, as only a single entry containing real numbers are
> logged, no matter how many hours elapse.  I looked at RRDtool but Win32 binaries are
> not distributed and we do not have a Visual C++ complier (we are not software
> developers).
> 
> My question-- is there an easy way to simply have mrtg round or truncate the real
> number into an integer to store in the log?  We are not concerned with tenths of a
> degree.  I was under the (misguided?) belief that mrtg automatically rounded, but
> this appears not to work.
> 
> ###########################
> #  excerpt from mrtg.cfg
> ###########################
> 


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