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 ########################### Target[216.136.29.1.temp]: .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:[EMAIL PROTECTED] YLegend[216.136.29.1.temp]: Degrees F ShortLegend[216.136.29.1.temp]: °F MaxBytes[216.136.29.1.temp]: 100 Options[216.136.29.1.temp]: gauge,nopercent,growright,integer ########################### # Excerpt from log file when using # fahrenheit (real numbers). # Values are correct, but there is # never more than a single line # even after hours of running ########################### 1068739710 84.2 91.4 1068739410 0 0 0 0 1068739200 0 0 0 0 1068738900 0 0 0 0 1068738600 0 0 0 0 1068738300 0 0 0 0 1068738000 0 0 0 0 1068737700 0 0 0 0 1068737400 0 0 0 0 1068737100 0 0 0 0 1068736800 0 0 0 0 1068736500 0 0 0 0 1068736200 0 0 0 0 1068735900 0 0 0 0 1068735600 0 0 0 0 1068735300 0 0 0 0 1068735000 0 0 0 0 1068734700 0 0 0 0 1068734400 0 0 0 0 -- Unsubscribe mailto:[EMAIL PROTECTED] 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
