[mrtg] Re: Moving from MRTG to MRTG+ rrdtool?
Bigelow, Andrea L.
BigelowA at SEC.GOV
Thu Jul 1 15:37:16 MEST 2004
> 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-
Tim --
Speaking from experience, this is a disaster to scale. I do this by
daemonizing MRTG. Once you've generated your config file, add the following
lines to the global options section, where WorkDir and all that are.
RunAsDaemon: Yes
Interval: 5
If you use separate config files for each device (legal - this is what I
do), you'll need to add that to every file.
Then, run the MRTG command just once, and it'll keep running itself as a
sleeping process.
You will need to make sure these processes get started on bootup -- I made a
file under my equivalent of rc.local called mrtg.sh that just runs all the
commands.
Andi
--
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