[mrtg] log format - update problem

Brady, Jeff JBrady at midatlantic.aaa.com
Wed Dec 13 16:04:36 MET 2000

I'm running MRTG 2.9.4 on Windows 20000 and using Paul Simmonson's scripts
(http://www.wn.com.au/psimmo/) to pull data from Win2k Performance Monitor
logs (comma delimited).

His script goes on the target line, and when run from a command prompt
appears to return data just the way mrtg wants it, for example:
was returned when run against the log for number of e-mail messages
delivered by exchange since last reboot.  The first 0 is an unused counter,
the second 0 should be uptime of target (string) but isn't being pulled, the
third 0 should be the name of the target (string) and doesn't matter for

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

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.

I thought maybe MRTG wanted the sys uptime entry in order to calculate the
value, so I started logging System Up Time with Performance Monitor, and
modified Paul's script to also parse this value.  Now the script returns
data like this when run:
where 0 and 31675 are the counters (values are good), 781322 is the uptime
in seconds, and 0 is the name of the target.  Should work right?  It
doesn't, still overwriting the first line of the log over and over.  Add the
gauge option and is graphs correctly.

Any help would be greatly appreciated.

Here's the config, slightly modified to hide real server names:

Workdir: c:\work
WithPeak[_]: wmy

Title[mailserver-5]:\\mailserver\MSExchangeIS Private\Messages Delivered
Pagetop[mailserver-5]: <H1>\\mailserver\MSExchangeIS Private\Messages
AbsMax[mailserver-5]: 50000000
MaxBytes[mailserver-5]: 500
Options[mailserver-5]: nopercent, growright
Target[mailserver-5]: `c:\perl\bin\perl c:\mrtg-2.9.4\bin\getlog.pl
c:\perflogs\mailserver.csv "\\mailserver\MSExchangeIS Private\Messages
Delivered" "\\mailserver\System\System Up Time"`
YLegend[mailserver-5]: .

				Jeffery S. Brady
				Network Engineer
				AAA Mid-Atlantic
				2040 Market Street
				Philadelphia, PA  19103

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