[mrtg] Re: Threshold Monitoring - Passing Parameters

Barry Irwin bvi-mrtg-list at rucus.ru.ac.za
Thu Sep 14 12:53:40 MEST 2000


On Thu 2000-09-14 (11:19), Barry Young wrote:
> I have RTFM'd and looked in the archives but cannot find any
> information on the following matter.
> 
> I am trying to setup Threshold monitoring to call an external
> program.  This is working OK but I would like to pass some
> parameters to the external program.
> 
> The MRTG docs say that ThreshProg can pass 3 arguments: the
> $router variable, the threshold value broken, and the current
> parameter value.
> 
> Has anyone used this or is able to supply an example.  I am
> calling a WinNT batch command file as follows but where, what,
> how are the parameters passed: -
> 
> eg.: -
> 
> ThreshProgI[xx]: c:\email.bat
> 
Try using $1, $2 $3 to access the parameters as they are passed on the
command line.

Barry


-- 
--------------------------------------------------------------------------
Barry Irwin 				 	IRC:  balin at zanet (#linux)
bvi at moria.org  					http://rucus.ru.ac.za/~bvi
Whois BI414		- PMPN8EZ -		http://moria.org
--------------------------------------------------------------------------

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