[mrtg] Re: Logfile problem

Scheidel, Greg Greg_Scheidel at ed.gov
Wed Dec 29 14:12:38 MET 1999


Manually editing your log files is *not* the end of the world.  Just make
sure that you have a firm grasp of the log file format (read
/doc/logfile-format.txt) and what rateup.c does; I recently had to go
through this process and (as you may recall) posted several questions here
to check my understanding of the log file format.  After testing on
non-production log files I went ahead and made the changes with no problems,
either in rateup processing or the resulting graphs.

I've found that the easiest way to do this is to import the log file into
Excel and add an extra column to display a more easily read timestamp, then
do the data massage and export back to text format without the extra column.

Mikael, the problem that you are having is probably that you do not have
entries at the intervals that rateup.c expects to see (5 minutes, 30
minutes, 2 hours, 1 day) all through the file.  After reviewing
logfile-format.txt go through your log file and make sure that each line is
at the correct interval and that no intervals are missing.  The easiest way
to handle missing lines is to replace them with '<timestamp> 0 0 0 0'.

Ideally you would want to do this on backup log files, ones made before
rateup.c ran on the corrupt log files, and then add in data gathered since
then.  Since you say you deleted the backups, you will just have to make
copies of the log files as they are now and go from there.

Greg S.

-----Original Message-----
From: Alex van den Bogaerdt [mailto:alex at slot.hollandcasino.nl]
Sent: Wednesday, December 29, 1999 6:04 AM
To: kanstrup at microbus.se
Cc: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: Logfile problem

Microbus AB, Mikael Kanstrup wrote:
>
> I ran into some problems after I've changed the system time a couple of
> times for testing a development project I'm working on. Didn't think of
the
> mrtg process running so when changing time back to "normal" time mrtg told
> me that time was older than the last in my logfile.
>
> Ok, not a big problem I thought so I started to remove the lines with
wrong
> time in all my logfiles. After this I checked that mrtg still worked and
> removed my backup log files.
> Now, after a week or so, I see that neither week, nor year graphs are
> beeing updated ok. Looks like updates are done once or twice a week, even
> though the five minute graph is fine.
>

Once you've altered the logfile, nothing is sure.  There is a description
in the doc directory, read that.  Look carefully at the line numbers
and look in rateup.c to see what's happening.  Then say "not a big
problem" again.

You really should revert to your backup files ...
--
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/mrtg

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/mrtg



More information about the mrtg mailing list