<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br>We used to have that problem.&nbsp; Turns out the locking code in<br>MRTG is somewhat iffy, and a second instance from cron was<br>trying to write to the file while the previous instance was still<br>running, causing the file to get corrupted/truncated.<br><br>I wrote a perl wrapper for MRTG that implements better file<br>locking to prevent that from happening on our systems, and we<br>haven't had a recurrance of it ever since.<br><br>Matt<br><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Kevin Vlasich &lt;vlasich@gmail.com&gt;<br>To: mrtg@lists.oetiker.ch<br>Sent: Tuesday, October 30, 2007 8:33:56 AM<br>Subject: [mrtg] mrtg log
 losing data<br><br>Hello,<br><br>I recently setup mrtg to monitor firewall traffic, but am experiencing some difficulties.<br><br>My problem:<br>-----------------<br>My graphs seem to randomly lose all historical data at least once a day
(no errors in the mrtg.log file).&nbsp; The corresponding mrtg-logfile shows
all zeros except for the first few entries when this happens.&nbsp; Also, I noticed that my logfile goes missing on regular occasions and only the .old file remains.<br><br>My setup:<br>---------------<br>-Using mrtg version 
2.15.1 on Fedora Core 7<br>-cronjob running every 5 minutes to pull data<br>-used cfgmaker to produce my config file and made a few small changes (added WithPeak[_]: ymw, XSize[_]: 600, and YSize[_]: 200)<br><br>I'm a new mrtg user, but I've scoured the FAQ and haven't found any resolutions to my problem.
<br><br>Any ideas on why I'm loosing data in the mrtg-logfile?<br><br clear="all">Thanks!<br><br>
</div><br></div></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>