[mrtg] RES: MRTG by date
Eduardo Oliveira Scricco (Service)
escricco at rge-rs.com.br
Tue Dec 7 16:52:25 MET 2004
> 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
More information about the mrtg
mailing list