[mrtg] Re: Customizing arguments for ThreshProgI

Mike Wren mwren at burnsmcd.com
Mon Jul 12 17:13:29 MEST 2004


Look at the documentation for MRTG and use the SETENV[target] parameter
to set additional information to be passed to the external 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

>>> Meng Keng Lee <mengkenglee at yahoo.com> 07/10/2004 12:17:28 AM >>>

Hello,

>From MRTG docs, MRTG passes 3 arguments: the $router variable, the
threshold value broken, and the current parameter value via ThreshProgI.
 Is it possible to configure MRTG to pass more than 3 arguments? Or
rather pass arguments like interface description, Max Bytes, etc?

My problem is like this:
After getting the 3 arguments from ThreshProgI, I need to calculate the
exact percentage of the utilisation, email customer in the following
email format: <RouterName> <InterfaceName> utilisation breaches
threshold: Current: <CurrentUsage>, Threshold: <Utilisation
Percentage>.

If MRTG can only pass 3 arguments, then I have to hardcode the
MaxBytes, Interface Name in my perl script.

Can anyone help on this?

Thanks and regards 
        
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

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