[mrtg] Re: Run multiple config files via one batch file in NT.

Rippe, Mark (CCI-Warwick) Mark.Rippe at cox.com
Thu Apr 13 18:59:42 MEST 2000


i grouped devices by geographic area. and ran configmaker to create .cfg
files for each area.
i built a file called run_mrtg.sh


run_mrtg.sh
---- snip ----

#!/bin/sh

LD_LIBRARY_PATH=/usr/lib:/usr/openwin/lib:/usr/local/lib
export LD_LIBRARY_PATH

cd /usr/local/mrtg-2.8.11/run
./mrtg ubr1.crans1.cfg
./mrtg ubr1.lncln1.cfg
./mrtg ubr1.ports1.cfg
./mrtg ubr1.provd1.cfg
./mrtg ubr1.pwtkt1.cfg
./mrtg ubr1.sctte1.cfg
./mrtg ubr1.sking1.cfg
./mrtg ubr1.wwck1.cfg
./mrtg ubr2.provd1.cfg
./mrtg ubr2.wwck1.cfg
./mrtg ubr3.wwck1.cfg
./mrtg r1.wwck1.cfg

--- snip ----

i built a crontab that calls run_mrtg.sh every 5 mins.
this has worked well for me for almost a year.



hope this helps.

mark.rippe at cox.com

"Elegance is for Tailors!"
Albert Einstein on mathematics


> -----Original Message-----
> From:	Jackson Lancaster [SMTP:jlancaster at lanhost.net]
> Sent:	Wednesday, April 12, 2000 9:37 PM
> To:	MRTG
> Subject:	[mrtg] Run multiple config files via one batch file in NT.
> 
> How do I run the main perl ./mrtg ./mrtg.cfg  with other config files?
> I recieve errors that on instance of MRTG is running.
> 
> --
> Jackson Lancaster, CCNA
> President/Head Systems Administrator
> LanHost Internet Services
> 2224 S. Sutherland Dr.
> Montgomery, AL 36116
> http://www.lanhost.net
> 
> 
> --
> 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

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



More information about the mrtg mailing list