[mrtg] Re: Consolidating two graphics
Alex van den Bogaerdt
alex at ergens.op.het.net
Mon Sep 13 17:22:30 MEST 2004
On Mon, Sep 13, 2004 at 11:32:48AM -0300, Fernando Costa de Almeida wrote:
> I have a server whose traffic was being graphed by mrtg, but the network
> guys changed its cable to another switch last weekend. Now I have two
> graphics, and what I want to do is to consolidate the data, making it
> possible to see the complete information in only one graphic...
For the long version: search the archives and/or the internet.
Short version:
Keep the two files current, that is: both should be recently updated.
Backup, backup, backup.
Take the first "n" lines of the new logfile and remove the last 'm' lines,
take the last "m" lines of the old loggile and remove the first 'n' lines,
merge and store as the new log file.
Where to cut? You probably want to remove the lines from the new logfile
that are empty and replace them with lines from the old logfile that have
the same timestamp.
HTH
Alex
--
You want an answer? You'd better follow the following guidelines!
Linesize well below 80 chars. Reply to the list, not to me. Trim
irrelevant lines. Answer below the remaining paragraph.
--
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