[mrtg] Re: script to run MRTG

David Raistrick keen at wow.atlasta.net
Wed Oct 2 17:49:27 MEST 2002


On Wed, 2 Oct 2002, Zeeshan Ahmed wrote:

> 
> I am using the fowwlowing script to make the MRTG grpahs for cabl emodes now
> and it has make my work very easy, but if i add the

Ah.  See the manpage for cfgmaker.  It says:

"   --global ""bla: abc""
           Use this to add global options to the generated config
           file.  You can call --global several times to add mul-
           tiple options.  The line will appear in the configura-
           tion just before the config for the next router
           appearing on the command line.

            --global "workdir: /home/mrtg"

           If you want some default Options you might want to put

            --global "options[_]: growright,bits"
"

In your script, then, I'd do this: (this is only the line that calls
cfgmaker.)  Line is wrapped for clarity in email, please make sure to keep
it on line line in the script, or use a \

perl /usr/bin/cfgmaker --global "Options[_]: growright, bits" public@$2 
--global "workdir: /var/www/html/mrtg/$1" --output /etc/mrtg/$1.cfg


good luck.

..david


--
        David Raistrick 
keen at atlasta.net		http://www.expita.com/nomime.html


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