[mrtg] Re: log rotation

Bill Wichers billw at waveform.net
Sat Jul 31 20:33:26 MEST 2004


Why would you want to rotate MRTG logs? The files are a set size that do
not grow over time, which is the whole point of the round-robin database.
MRTG automatically takes care of older data in the files.

If you were to rotate the logs, you would loose all historical data in the
graphs before the time of rotation. Essentially you would force MRTG to
start from scratch with a new log file every time you rotated out the old
data.

If you're just looking to backup the data just copy * in your MRTG
directory to a backup location, or just copy *.log if you want the minimum
data necassary to recreate all the graphs.

     -Bill

> Hi list, what is the safest way to rotate logs?
> i am not sure what will happen when .log and .old are deleted?
> How will grafs look after that?
> Regards,
> Igor
> --



*****************************
Waveform Technology
UNIX Systems Administrator


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list