[mrtg] RunAsDaemon vs Perl on NT4

Jeff Liebermann jeffl at comix.santa-cruz.ca.us
Fri Sep 22 03:49:45 MEST 2000

I'm having difficulties getting mrtg-ping-probe to play
on NT4 SP6a, using ActiveState Perl 5.6.0 build 616, and
MRTG 2.8.12.

All my various Perl scripts run perfectly:
1.  From the command line.
2.  From a batch file.
3.  From MRTG with:
	RunAsDaemon: Yes
	Interval: 5
in the MRTG.CFG file.
4.  From the NT "at" command without the RunAsDaemon: Yes
in the MRTG.CFG file.  (MRTG is NOT running as a service).
5.  The same scripts running various Windoze 98SE boxes
using the RunAsDaemon: Yes configuration.

In other words, all my scripts work *EXEPT* when MRTG
is run as a service, and has:
	RunAsDaemon: Yes
	Interval: 5
in the MRTG.CFG file.  

I finally decided to introduce some debugging output and
had the perl scripts scribble their output to a file
as well as the usual 4 lines of output to MRTG.  My files
show proper numbers being returned by the Perl script,
but the MRTG log files are all zeros.  There's NO extra
garbage, leading zeros, EOL creativity, on each output line.

I have NOT had time to play with different Perl or MRTG
versions.  Duz anyone know if there is a Perl command line
option that deals with having no controlling terminal?
for output?  Is this a Perl bug or an MRTG bug?  Any
workarounds?  Why me?

# Jeff Liebermann  Liebermann Design  150 Felker St #D  Santa Cruz  CA  95060
# 831.336.2558 voice   831.426.1240 fax   831.421.6491 digital_pager
# jeffl at comix.santa-cruz.ca.us  http://www.cruzio.com/~jeffl

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