[mrtg] mrtg log losing data
mpetach at yahoo.com
Mon Nov 5 04:18:12 CET 2007
We used to have that problem. Turns out the locking code in
MRTG is somewhat iffy, and a second instance from cron was
trying to write to the file while the previous instance was still
running, causing the file to get corrupted/truncated.
I wrote a perl wrapper for MRTG that implements better file
locking to prevent that from happening on our systems, and we
haven't had a recurrance of it ever since.
----- Original Message ----
From: Kevin Vlasich <vlasich at gmail.com>
To: mrtg at lists.oetiker.ch
Sent: Tuesday, October 30, 2007 8:33:56 AM
Subject: [mrtg] mrtg log losing data
I recently setup mrtg to monitor firewall traffic, but am experiencing some difficulties.
My graphs seem to randomly lose all historical data at least once a day
(no errors in the mrtg.log file). The corresponding mrtg-logfile shows
all zeros except for the first few entries when this happens. Also, I noticed that my logfile goes missing on regular occasions and only the .old file remains.
-Using mrtg version
2.15.1 on Fedora Core 7
-cronjob running every 5 minutes to pull data
-used cfgmaker to produce my config file and made a few small changes (added WithPeak[_]: ymw, XSize[_]: 600, and YSize[_]: 200)
I'm a new mrtg user, but I've scoured the FAQ and haven't found any resolutions to my problem.
Any ideas on why I'm loosing data in the mrtg-logfile?
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mrtg