I've been trying for a couple of weeks to get MRTG running as a windows service 
on a Windows Server 2003 SP2 system. I have everything working fine from a 
command line, but when I follow the directions in the mrtg-nt-guide for setting 
up MRTG as a Windows Service, I get the following error in my event log/log 
file.

2007-11-27 17:51:46: WARNING: rateup (c:/mrtg/bin\rateup 
c:\inetpub\wwwroot\mrtg\ 172.22.1.100_1_intutil 1196207506 -Z u 2432434164 
899369131 1536000 c #C00000 #00C000 #0000FF #FF00FF -a k 1000 i 
c:\inetpub\wwwroot\mrtg\172.22.1.100_1_intutil-day.png -1536000 -1536000 400 
100 1 1 1 300 0 4 1 "%Y-%m-%d %H:%M" 0 i 
c:\inetpub\wwwroot\mrtg\172.22.1.100_1_intutil-week.png -1536000 -1536000 400 
100 1 1 1 1800 0 4 1 "%Y-%m-%d %H:%M" 0) did not work: Bad file descriptor.

This error occurs once for each interface I am monitoring.

I've searched the mailing list archives. The only suggestion was to make sure 
filenames and paths with spaces were quoted. I do not have any spaces in 
file/pathnames. Looking at the error, it looks like there's an extra space 
between the WorkDir and interface name at the beginning of the command line. 
I've enclosed my WorkDir in quotes and changes \ to /. When it's in quotes, 
MRTG dies complaining that the directory does not exist. Forward vs backslashes 
makes no difference.

I am using MRTG 2.15.2 and Perl 5.8.8.

Following is a partial copy of my config file, all the other interfaces are 
configured in a similar manner.

Thank you,
Matthew


------------------------------------------------------------------------

######################################################################
# Multi Router Traffic Grapher -- Configuration File
######################################################################
#     Generated by Claridion's GUI on Nov 7, 2007 - 17:15
######################################################################
#     General Configuration  #########################################
######################################################################

WorkDir: c:\inetpub\wwwroot\mrtg
Refresh: 300
Interval: 5

RunAsDaemon: yes

######################################################
# Utilisation report for Chicago MPLS Total
######################################################

# Interface No.   : 1
# Interface Index : 1

Target[172.16.1.100_1_IntUtil]: ifInOctets.1&ifOutOctets.1:[EMAIL PROTECTED]:
Options[172.16.1.100_1_IntUtil]: growright, integer, noarrow
#WithPeak[172.16.1.100_1_IntUtil]:
#UnScaled[172.16.1.100_1_IntUtil]:
#Suppress[172.16.1.100_1_IntUtil]:
MaxBytes[172.16.1.100_1_IntUtil]: 1536000
LegendI[172.16.1.100_1_IntUtil]: In
LegendO[172.16.1.100_1_IntUtil]: Out
Title[172.16.1.100_1_IntUtil]: Utilisation report for Chicago MPLS Total
Colours[172.16.1.100_1_IntUtil]: 
BLUE#C00000,GREEN#00C000,RED#0000FF,MAGENTA#FF00FF
Background[172.16.1.100_1_IntUtil]: #FFFFFF
PageTop[172.16.1.100_1_IntUtil]: <font face='Arial' size=3><B>Traffic Analysis 
for MISEPKOI01</b>
 <br><font face='Arial' size=2>Link Description  : Chicago MPLS Total
 <br><font face='Arial' size=2>Device            : 172.16.1.100, Interface : 1
 <br><font face='Arial' size=2>Max Speed         : 192.0kBytes/s
 <br><font face='Arial' size=2>System Location   : Elk Grove Village, IL
 <br>
 </p>

######################################################
# Utilisation report for Chicago MPLS Voice VLAN
######################################################

# Interface No.   : 5
# Interface Index : 5

Target[172.16.1.100_5_IntUtil]: ifInOctets.5&ifOutOctets.5:[EMAIL PROTECTED]:
Options[172.16.1.100_5_IntUtil]: growright, integer, noarrow
#WithPeak[172.16.1.100_5_IntUtil]:
#UnScaled[172.16.1.100_5_IntUtil]:
#Suppress[172.16.1.100_5_IntUtil]:
MaxBytes[172.16.1.100_5_IntUtil]: 100000000
LegendI[172.16.1.100_5_IntUtil]: In
LegendO[172.16.1.100_5_IntUtil]: Out
Title[172.16.1.100_5_IntUtil]: Utilisation report for Chicago MPLS Voice VLAN
Colours[172.16.1.100_5_IntUtil]: 
BLUE#C00000,GREEN#00C000,RED#0000FF,MAGENTA#FF00FF
Background[172.16.1.100_5_IntUtil]: #FFFFFF
PageTop[172.16.1.100_5_IntUtil]: <font face='Arial' size=3><B>Traffic Analysis 
for MISEPKOI01</b>
 <br><font face='Arial' size=2>Link Description  : Chicago MPLS Voice VLAN
 <br><font face='Arial' size=2>Device            : 172.16.1.100, Interface : 5
 <br><font face='Arial' size=2>Max Speed         : 192.0kBytes/s
 <br><font face='Arial' size=2>System Location   : Elk Grove Village, IL
 <br>
 </p>
--
Matthew Jachimstal
Epko Industries, Inc.
[EMAIL PROTECTED]
Desk: (224) 366-5020
Fax: (224) 366-5120


_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to