[mrtg] Re: external program help

Stieers, Ken KStieers at DainRauscher.com
Thu May 11 18:48:01 MEST 2000


You're running on NT, right? 

Try this:

Target[ping]: `perl c:\mrtg\ping\pingloss.pl`

HTH, 

Ken 

 > Here is my problem. I wrote a script that reads in a ping from a file
 > and parses out the % loss. It's ugly (first script, forgive me) but it
 > works. When I fire just the perl script, it works fine.  When I try to
 > fire it under mrtg, I get the error:  "The system cannot find the file
 > c:\mrtg\ping\pingloss.pl.
  
 > Could not get any data from external command 
 > 'c:\mrtg\ping\pingloss.pl'
 
 > Maybe the externam command did not even start. (No such file or
 > directory)"
 > 
 > 
 > I looked at various contrib scripts and I copied the output format of
 > theres to put into mrtg.
 > 
 > Now, here is the config for the script:
 > **************************************************************
 > *********
 > workdir: \inetpub\wwwroot
 > Title[^]: CPU Usage in MegaBytes on System:
 > workdir: \inetpub\wwwroot
 > Title[^]: CPU Usage in MegaBytes on System:
 > Target[ping]: `c:\mrtg\ping\pingloss.pl`
 > MaxBytes[ping]: 100

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



More information about the mrtg mailing list