[mrtg] Re: Threshold programs
Elmar van Mourik
e.vanmourik at zhew.nl
Wed Apr 16 17:07:18 MEST 2003
Will,
MRTG passes 3 arguments to the script:
$router variable
the threshold value broken
the current parameter value
Elmar van Mourik
System- & Networkadministrator ZHEW
T: +31 78 6397 289
F: +31 78 6139 212
-----Oorspronkelijk bericht-----
Van: Will Saxon [mailto:WillS at housing.ufl.edu]
Verzonden: dinsdag 15 april 2003 22:31
Aan: mrtg at list.ee.ethz.ch
Onderwerp: [mrtg] Threshold programs
Is there any reason why I would not be able to specify a threshold program
with command line options in a mrtg configuration file? I have been using
threshold checking for several weeks with great success, but when I added
some command line options to my script and specified them in the
configuration file(s) the script 'cannot be executed' by mrtg.
I have tried specifying them like this:
ThreshProgI[target]: /path/to/script -u
ThreshProgI[target]: "/path/to/script -d"
Doesn't work either way. The script is executable from the command line -
basically I just added 2 flags to let me call the same script for the
ThreshProgI and ThreshProgO and still know which threshold was triggered.
What am I doing wrong? Should I just pass something in the ThreshDesc
instead?
-Will
--
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
Door de electronische verzending van het bericht kunnen er geen rechten
ontleend worden aan de informatie. Als u deze e-mail onterecht heeft
ontvangen, waarschuwt u dan de afzender via postmaster at zhew.nl en verwijder
de gegevens van de computer.
Zuiveringsschap Hollandse Eilanden en Waarden, Dordrecht
tel: +31 (0)78 6397100
fax: +31 (0)78 6311871
web: http://www.zhew.nl
--
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