[mrtg] Re: MRTG and Threshold Parameters on NT...
Kirk Rogers
Kirk.Rogers at trw.com
Sun Sep 26 16:53:58 MEST 1999
Alex,
That's the weird thing. Everything works as individual commands. I've been
able to get the bat file to work with the call to the perl program and use
the %1 %2 %3 DOS parameters to pass the variable to the perl program.
Also, I have a perl program as one of my targets within mrtg.cfg as:
Target:[test]: `c:\perl\progs\test.pl`
And it works just fine. So I know its not a permissions problem, or any
type of access. Do you have this working in your mrtg.cfg file? Try it and
let me know if you do so I can see if I've done something wrong.
Thanks for the help,
Kirk
-----Original Message-----
From: Alex van den Bogaerdt [mailto:alex at slot.hollandcasino.nl]
Sent: Sunday, September 26, 1999 5:11 AM
To: Kirk Rogers
Cc: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: MRTG and Threshold Parameters on NT...
>
> 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"
>
If it works with a bat file and not with a perl file, this most likely
has nothing to do with mrtg. Are you able to run the perl script from
the command line? Or from a bat file perhaps? Could there be a problem
with user rights? Are your PATH settings correct?
As a workaround: call a bat file from mrtg and let this bat file run
the perl script. When this works you can modify your bat file to see
where things go wrong.
Regards,
Alex
--
* 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
--
* 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