[mrtg] Re: ThreshProgI variables

Mike Wren mwren at burnsmcd.com
Tue Feb 15 00:29:37 MET 2005


You need to specify the arguments you want to pass with the "SetEnv"
option.  MRTG passes the information to the script being executed by
setting environment variables that can be referenced by the script.
 
Michael Wren
Senior Network Analyst
Burns & McDonnell Engineering
P.O. Box 419173
Kansas City, MO 64141-6173
816-822-3160
mwren at burnsmcd.com

>>> "Perry, Duane" <PerryD at missouri.edu> 02/14/2005 4:43:52 PM >>>

I have been sending emails for some time with shell scripts from
ThreshProgI but wanted to consolidate a dozen scripts into one that
could be called with the proper variable.


Here is the entry that fails: ThreshProgI[tigernetpix-conn]:
/var/www/perl/pixmail.sh tigernet



Here is the error I get: ERROR: CFG Error in
"threshprogi[tigernetpix-conn]", line 37: Threshold program
/var/www/perl/pixmail.sh tigernet cannot be executed



I get the feeling MRTG does not like the extra argument but was unable
to enclose the string in quotes or tics to get it to run.  The docs
talk
about passing 3 arguments (router, threshold, current) but letting
MRTG
substitute the router name in does not seem to work either.  



Any idea how to add an argument to the script?



Duane Perry

University of Missouri


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