<br><br><div class="gmail_quote">On Fri, Jun 5, 2009 at 7:42 AM, Adam Williams <span dir="ltr"><<a href="mailto:awilliam@mdah.state.ms.us">awilliam@mdah.state.ms.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This is what I'm getting in emails from cron about mrtg. It says rateup<br>
can't rename log files. Which is strange, mrtg is being ran as root in<br>
cron, so there should be no problems with file permissions, and there's<br>
plenty of free disk space from my last email (18% free). Any ideas?<br>
<br>
Date: Fri, 5 Jun 2009 08:40:07 -0500 (CDT)<br>
From: Cron Daemon <<a href="mailto:root@missioncontrol.squeezer.net">root@missioncontrol.squeezer.net</a>><br>
To: <a href="mailto:root@missioncontrol.squeezer.net">root@missioncontrol.squeezer.net</a><br>
Subject: Cron <root@missioncontrol> env LANG=C /usr/bin/mrtg<br>
/etc/mrtg/mrtg.cfg --logging /var/log/mrtg.log<br>
<br>
2009-06-05 08:40:07, Rateup WARNING: /usr/bin/rateup could not read the<br>
primary log file for localhost_68.209.223.242<br>
2009-06-05 08:40:07, Rateup WARNING: /usr/bin/rateup Can't remove<br>
localhost_68.209.223.242.old updating log file<br>
2009-06-05 08:40:07, Rateup WARNING: /usr/bin/rateup Can't rename<br>
localhost_68.209.223.242.tmp to localhost_68.209.223.242.log updating log<br>
file<br>
2009-06-05 08:40:07, Rateup WARNING: /usr/bin/rateup could not read the<br>
primary log file for localhost_10.1.3.1<br>
2009-06-05 08:40:07, Rateup WARNING: /usr/bin/rateup Can't rename<br>
localhost_10.1.3.1.log to localhost_10.1.3.1.old updating log file<br>
2009-06-05 08:40:07, Rateup WARNING: /usr/bin/rateup Can't rename<br>
localhost_10.1.3.1.tmp to localhost_10.1.3.1.log updating log file<br>
<br>
and all that /var/log/mrtg.log contains are entries like this:<br>
<br>
2009-06-05 08:40:06 -- Started mrtg with config '/etc/mrtg/mrtg.cfg'<br>
<br>
</blockquote></div>It can't rename them because they probably don't exist - something has likely deleted them.<br>