<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18904">
<style id="owaTempEditStyle"></style><style title="owaParaStyle"><!--P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
--></style>
</head>
<body ocsi="x">
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: 13px">
<div>All the values being reset to zero indicates that your .log file is being somehow deleted and re-created with no data. My guess is one of two things. Either :</div>
<div><font size="2" face="tahoma"></font> </div>
<div><font size="2" face="tahoma">a) You have some periodic job (eg, a 'tidy up' script) which is periodically removing the .log files for some reason. Maybe a coding error or somesuch is causing the files to be incorrectly deleted. To test for this, stop
MRTG for a while, and see if the .log file disappear.</font></div>
<div><font size="2" face="tahoma">b) The permissions or ACLs on the directory holding the .log files is such that the MRTG process has problems during the update process. Normally (I think!) MRTG makes a copy of the .log file, updates this, then moves it
back to replace the old one. Possibly (from the errors you report) a problem occurs during this move/rename process. Try doing a temporary chmod 777 on the directory and files to see if this fixes it (though this is not a good long-term solution of course).
Do you have SELINUX installed -- this could be affecting rights to remove files, though create and update is OK? Do you accidentally have multiple MRTG processes running, such as one owned by root and one by a MRTG user? And so on.</font></div>
<div><font size="2" face="tahoma"></font> </div>
<div><font size="2" face="tahoma">The erros indicate problems in renaming the files. Check that there are not a load of *.tmp or *.old files hanging about in the directory (if so, delete them). Also run an fsck on the filesystem, in case there is filesystem
corruption affecting the directory. </font></div>
<div><font size="2" face="tahoma"></font> </div>
<div><font size="2" face="tahoma">You might also like to consider moving to using MRTG with RRDTool instead of in Native mode (with .log files) as this is more powerful, albeit a bit more complex.</font></div>
<div><font size="2" face="tahoma"></font> </div>
<div><font size="2" face="tahoma">Steve</font></div>
<div dir="ltr"><font color="#000000" size="2" face="Tahoma"></font> </div>
<div style="DIRECTION: ltr" id="divRpF134555">
<hr tabindex="-1">
<font color="#000000" size="2" face="Tahoma"><b>From:</b> mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch [mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch] On Behalf Of Louis van Dyk [louis@qdcec.co.za]<br>
<b>Sent:</b> Saturday, 24 April 2010 6:46 a.m.<br>
<b>To:</b> mrtg@lists.oetiker.ch<br>
<b>Subject:</b> [mrtg] Logfile entries reset to zeroes after a few hours<br>
</font><br>
</div>
<div></div>
<div>Hi<br>
<br>
I have been running mrtg for many years on many different Linux boxes and have always had no problem with it. But now I am in desperate need of assistance.
<br>
<br>
I am running Fedora 12 and installed mrtg from the Fedora repository:<br>
mrtg-2.16.2-4.fc12.x86_64<br>
<br>
I am only monitoring ONE device and have set the following entry in root's crontab file:<br>
*/5 * * * * env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg<br>
<br>
There are a number of interfaces being monitored on the device. The CFG file was configured with cfgmaker.<br>
<br>
THE PROBLEM: Every few hours the logfile entries are reset to ZEROS through out the file, a few hours into the log file. It is apparently random, in that if I look at the graphs they all cut off at different times over the last 24 hours. So the graphs have
only a few hours on each of them before flattening to zero.<br>
</div>
</div>
</body>
</html>