[mrtg] MRTG and Threshold Parameters on NT...

Kirk Rogers Kirk.Rogers at trw.com
Sat Sep 25 16:36:56 MEST 1999


Hi folks,
I'm still have yet to get the MRTG Threshold parameter to work on NT.  Has
anyone been able to get this to work with calling a perl program from the
ThreshProgO or ThreshProgI?  I was able to change the target to a .bat file
without quotes and it works fine:

ThreshProgO[someTarget]: c:\perl\bin\perl c:\perl\progs\testProg.pl

But when I change it to run a perl program:

ThreshProgO[someTarget]: c:\perl\bin\perl c:\perl\progs\testProg.pl

It comes back with "CFG Error in "threshprogo[currauth.isdnhub2]", line 21:
Threshold program `c:\perl\bin\perl c:\perl\progs\testProg.pl` cannot be
executed"

Changing to backticks doesn't work and I've tried several other combinations
of directories, moving the target file to the run directory, etc.

Any clues???


Kirk Rogers
Network Services, TRA Administrator
TRW Space & Electronics Group
kirk.rogers at trw.com
Office (310) 814-4542
FAX (310) 812-8443
Pager (310) 389-7677

-----Original Message-----
From: Tobias Oetiker [mailto:oetiker at ee.ethz.ch]
Sent: Saturday, September 25, 1999 7:03 AM
To: Kirk Rogers
Subject: Re: MRTG and Thresh Parameters on NT...

Yesterday you sent me mail regarding MRTG and Thresh Parameters on NT...:

*> Tobias,
*> I hope this isn't too much of a bother, but I've run into a problem with
the
*> new Thresh parameters and launching a program with 'ThreshProgO'.  I can
*> substitute the line:
*>
*> ThreshProgO[currauth.isdnhub2]: `c:\perl\bin\perl
*> c:\perl\progs\test_sendmail.pl`
*>
*> With
*>
*> ThreshProgO[currauth.isdnhub2]: c:\perl\progs\test.bat
*>
*> And the batch file works.  What is wrong with the perl specific calls?  I
*> tried every combination possible, changing the directory, backticks vs
*> quotes vs no quotes, etc.  I have a similar perl program running which is
*> called from the 'Target' parameter and it works fine:
*>
*> Target[ping1]: `perl c:\perl\progs\mrtg-ping-probe 129.4.247.253`
*>
*> So I know the backticks and syntax are correct for 'Target'.
*> Any clues with Thresh?

not realy without looking at the code ... (this feature was not implemented
by me) ... I sugest you ask on the mailinglist ...


cheers
tobi
*>
*>
*> >From my config file:
*>
*> WorkDir: D:\InetPub\wwwroot\wan-web\mrtg
*> ThreshDir: C:\mrtg-thresh
*> ...
*> ...
*> ...
*> #---------------------------------------------------------------
*> # CURREENT AUTHENTICATION SERVER (ISDNHUB2)
*> Target[currauth.isdnhub2]:
*>
1.3.6.1.4.1.529.13.3.1.12.1&1.3.6.1.4.1.529.13.3.1.12.2:monitor at 129.4.247.25
*> 1 - 1
*> MaxBytes[currauth.isdnhub2]: 1
*> ThreshMaxO[currauth.isdnhub2]: 0
*> ThreshProgO[currauth.isdnhub2]: `c:\perl\bin\perl
*> c:\perl\progs\test_sendmail.pl`
*> #AbsMax[currauth.isdnhub2]: 2
*> Title[currauth.isdnhub2]: Authentication Server
*> PageTop[currauth.isdnhub2]: <H1>Current RADIUS Authentication Server
*>  </H1>
*>  <TABLE>
*>    <TR><TD>System:</TD><TD>ISDNHUB2</TD></TR>
*>    <TR><TD>Administrator:</TD><TD>Kirk Rogers</TD></TR>
*>  </TABLE>
*> #Unscaled[currauth.isdnhub2]: ymwd
*> YLegend[currauth.isdnhub2]: Auth Server
*> ShortLegend[currauth.isdnhub2]: &nbsp;RADIUS
*> Legend1[currauth.isdnhub2]: Primary Authentication Server
*> Legend2[currauth.isdnhub2]: Secondary Authentication Server
*> #Legend3[currauth.isdnhub2]:
*> #Legend4[currauth.isdnhub2]:
*> LegendI[currauth.isdnhub2]: &nbsp;Pri:
*> LegendO[currauth.isdnhub2]: &nbsp;Sec:
*> Options[currauth.isdnhub2]: gauge
*> #Supress[currauth.isdnhub2]: y
*> #WithPeak[currauth.isdnhub2]: ymwd
*> #XSize[currauth.isdnhub2]: 150
*> #YSize[currauth.isdnhub2]: 75
*> #Colours[currauth.isdnhub2]: ORANGE#FF8040,DARK
*> GREEN#008040,BLUE#0000FF,GREEN#00FF00
*> #---------------------------------------------------------------
*>
*>
*>
*> Kirk Rogers
*> Network Services, TRA Administrator
*> TRW Space & Electronics Group
*> kirk.rogers at trw.com
*> Office (310) 814-4542
*> FAX (310) 812-8443
*> Pager (310) 389-7677
*>
*>

--
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg


More information about the mrtg mailing list