[mrtg] Re: Fwd: How to include external values in a config file

Garth Williams garth.williams at acrodex.com
Tue Sep 2 19:00:52 MEST 2003


If I understand you, you want to update the config file.  If that is the
case, you need to modify your script to update the config file BEFORE
before mrtg calls it!

If I am incorrect, I stand to be corrected.  See?  I'm standing!


Garth

-----Original Message-----
From: Ruben Sajnovetzky [mailto:rsajnove at cisco.com] 
How can I run external commands inside the config file like I 
Can do in shell scripts in order to get values dynamically ?

I mean something like:

         Myvalue=`/usr/local/bin/proces1 param1 param2`

And after that include $Myvalue as part of PageTop, or Title, 
Or whatever I need ?
>
Can I do that ? Or the config file has to be static ???

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