[mrtg] Re: log format - update problem

Rainer Bawidamann Rainer.Bawidamann at rz.uni-ulm.de
Wed Dec 13 18:06:33 MET 2000


In article <8105D63CD4AFD0119B0800805FC1D1FC01D02928 at elk_elk_ms01.aaa-midatlantic.com>,
	JBrady at midatlantic.aaa.com ("Brady, Jeff") writes:
> 
> When the "Gauge" option is turned on, the graphs look perfect, an ever
> increasing blue line, growing about 300 units (e-mail messages) per 5 minute
> interval, check the MRTG log files and they are being populated with data as
> expected
> 
> HERE IS MY PROBLEM:  Remove the Gauge option (this is a counter after all)
> and you get a chart with no data.  The MRTG log file is updating the first
> line only, the rest of the log is zeros.  Every poll, the old entry is gone
> and replaced with the new entry.

MRTG divides the delta (~ 300 mails) through the time interval which is
300 seconds. If your delta is 299 (mails) you'll get

   299/300 = 0.99666...

MRTG logs only integers so this gets truncated to 0.

Use "Logformat: rrdtool" (big change; with this mrtg logs floats) or 

   Options[mails]: perminute

(or perhour).

Rainer

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