[mrtg] thresholds question

Calvert, Neil ncalvert at GlobalNTS.com
Thu Jul 27 20:31:09 MEST 2000


Hi folks,

I was reading the MRTG docs today trying to get thresholding working. The
parameter ThreshProgI is defined as :

This defines a program to be run if ThreshMinI or ThreshMaxI is broken. (It
currently passes 3 arguments: the $router variable, the threshold value
broken, and the current parameter value. This can be changed as required.)

My question is what is the name of the three variables passed, so I can
reference them in a script? One of them is $ROUTER, but what are the other
two...? Or, when you define a script to be run, does MRTG run the script
like

'scriptname <routername> <threshold value broken> <current value>' 

so you would refer to each within the script as command line parameters $1,
$2, $3?

thanks

Neil

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