[mrtg] Re: Working with a template.
Brander, Eric
Eric.Brander at ACS-INC.com
Tue Jan 28 22:11:37 MET 2003
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
removed at removed.com
--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:drew.weaver at thenap.com]
Sent: Tuesday, January 28, 2003 1:21 PM
To: 'mrtg at list.ee.ethz.ch'
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 removed at removed.com --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: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
--
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