I take all of the common components of my MRTG config files (i.e. WorkDir, Interval, Refresh, LogFormat...), remove them from the individual config files and place them in one master.cfg. I then use an Include: /Path/To/File.cfg statement to 'include' the other configs. You can then setup one cron job to run the master.cfg file which updates all of the cfg files referenced with Include: statements.
-----Original Message----- From: Tim Reimers [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 7:48 AM To: MRTG Mailing list Subject: [mrtg] Moving from MRTG to MRTG+ rrdtool? Hi- I've got quite a lot of switches to monitor- about 100 or so Using just a little Dell Optiplex GX240 at this point- I've so far been putting an instance of MRTG into /etc/crontab after the fashion of: 0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch1.cfg 2-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch2.cfg 3-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch3.cfg 4-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch4.cfg 5-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch5.cfg 0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch1.cfg I've heard that this does not scale well- I'm looking for some ideas on what the most current and best method of handling this is- I'm not a programmer/scripter at all- I struggle a bit just getting the configs to work, so I'm not going to be able to hand-write PHP or Perl to 'roll my own' system of handling multiple cfg files running... what's the best current tool for doing this? Tim Reimers Asheville City Schools IT tim.reimers(at)asheville(dot)k12(dot)nc(dot)us 828-255-5304x374 http://www.gordano.com - Messaging for educators. -- Unsubscribe mailto:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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
