[mrtg] Re: RES: MRTG by date

Joao Rechena security at rechena.com
Tue Dec 7 18:55:38 MET 2004


And what if you use Mrtg with RRDTool integration ?
How do you do it ?

Thanks

Regards

Rechena

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On
Behalf Of Eduardo Oliveira Scricco (Service)
Sent: terça-feira, 7 de Dezembro de 2004 15:52
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] RES: MRTG by date

> On Tue, Dec 07, 2004 at 09:13:26AM -0500, Ramiro Pulgar M. wrote:
> > How can I show MRTG graphs by specific date, for example I want to 
> > watch april 14´s MRTG graphs. PD. sorry for my english
> 
> You will have to backup the images for later reference.
> 
> The data to create 5-minute averages will already be 
> consolidated and are not available anymore.
> 
> HTH
> Alex

Here we backup a daily from all graphs and htmls from MRTG.
I use a simple script like:

#!/bin/bash
cd /usr/local/mrtg/html
tar -cvf mrtgdata.tar --exclude=*.log --exclude=*.old --exclude=history* *
gzip -v mrtgdata.tar
mkdir history/`date +"%Y%m%d"`
mv -v /usr/local/mrtg/html/mrtgdata.tar.gz
/usr/local/mrtg/html/history/`date +"%Y%m%d"`/mrtgdata-`date
+"%Y%m%d"`.tar.gz
exit 0

And schedule it to run daily at 0h.

Greetz,
Eduardo

--
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


--
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