Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: martinhick on February 28, 2005, 08:19:24 PM
-
I am currently experiencing a problem with a corrupt rateup file Error message in/rateup'
> ERROR: Can't Execute '/usr/bin/rateup'
I have tried to rerun the mrtg script but still get the same message.
How do I fix this. where can I get a copy of the corrupt file.
Thanks
Martin
-
Emailed to your contact email address. If that's missing though you may have further issues.
Damian
-
Thanks for Damian, It was a different size to the one that I had.
I tried to reinstall mrtg after addig your file with the following results
Rateup WARNING: /usr/bin/rateup could not read the primary log file for mem
Rateup WARNING: /usr/bin/rateup The backup log file for mem was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove mem.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename mem.log to mem.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for swap
Rateup WARNING: /usr/bin/rateup The backup log file for swap was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove swap.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename swap.log to swap.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for eth2
Rateup ERROR: /usr/bin/rateup found eth2's log file was corrupt
or not in sorted order:
time: 1106200800.Rateup WARNING: /usr/bin/rateup The backup log file for eth2 was invalid as well
WARNING: rateup died from Signal 0
with Exit Value 1 when doing router 'eth2'
Signal was 0, Returncode was 1
Rateup WARNING: /usr/bin/rateup Can't remove mem.old updating log file
Rateup WARNING: /usr/bin/rateup Can't remove swap.old updating log file
It would appear to be the log files that are corrupt. Any ideas on how to fix them.
Martin
-
OK, delete the contents of /home/e-smith/files/ibays/mrtg/html (or wherever your working directory specified in /etc/mrtg/mrtg.cfg is) and restart mrtg. This assumes that you don't need the history so far ;-)
You should get some of those errors the first time mrtg runs but they should stop after a couple of runs.
Damian
-
Thanks Damian,
Deleteing all the files in the folder has fixed my problem. Mrtg immediatly rebuilt all the files and as you suggested after a couple more errors has now settled down.
Martin
-
Pleased it's working. mrtg is a pretty simple beast once it's happy.
Damian