Lets break your command line options out a line at a time: ./cfgmaker --global 'WorkDir: /home/httpd/mrtg/' --global 'IconDir: /icons/' --global 'Options[_]: growright,bits' --global --if-template=/usr/local/mrtg-2/bin/template [EMAIL PROTECTED] --output /usr/local/mrtg-2/config/removed/mrtg.cfg
As you can see at the 4th --global, that there is nothing after it. If you used this command, cfgmaker is assuming that you want "--if-template=/usr/local/mrtg-2/bin/template" as a global option. Which of course, will not work. Remove the extra --global and I bet it works for you. Eric Brander ACS Texas CHIP Account Sr. Communications Engineer - Information Systems Department 512.336.3331 Eric dot Brander at acs-inc dot com -----Original Message----- From: Drew Weaver [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 28, 2003 1:21 PM To: '[EMAIL PROTECTED]' Subject: [mrtg] Working with a template. Hi, I am currently trying to get a template to work that will pull the names of my interfaces off of my Extreme Black Diamond and use those names instead of 1001 1002 1003 1004 for the 'displayed' names inside MRTG, this is the commandline I used with config maker: ./cfgmaker --global 'WorkDir: /home/httpd/mrtg/' --global 'IconDir: /icons/' --global 'Options[_]: growright,bits' --global --if-template=/usr/local/mrtg-2/bin/template [EMAIL PROTECTED] --output /usr/local/mrtg-2/config/removed/mrtg.cfg The file /usr/local/mrtg-2/bin/template does exist, but when I try and start mrtg via mrtg mrtg.cfg I get : ERROR: Line 21 (--if-template=/usr/local/mrtg-2/bin/template) in CFG file (mrtg.cfg) does not make sense In the help page for cfgmaker it says that --if-template= is the correct way to call a template. Any clue would be most helpful,thanks ;-) -Drew -- 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
