[mrtg] Bad file descriptor

Steve Shipway s.shipway at auckland.ac.nz
Tue Sep 1 23:53:12 CEST 2009


> 2009-09-01 17:09:53: WARNING: rateup (C:/mrtg-2.16.2/bin\rateup c:\mrtg-
> 2.16.2\M
> RTGData\Router\ 192.168.100.10_1 1251868193 -Z u 2272945258 3958672020
> 12500000 c
> #00cc00 #0000ff #006600 #ff00ff k 1000 i
> c:\mrtg-2.16.2\MRTGData\Router\192.168.100.10_1-day.png -12500000
> -12500000 400 100 1 1 0 300 0 4 1 "%Y-%m-%d %H:%M" 0 i
> c:\mrtg-2.16.2\MRTGData\Router\192.168.100.10_1-week.png -12500000
> -12500000 400 1
> 00 1 1 0 1800 0 4 1 "%Y-%m-%d %H:%M" 0 ) did not work: Bad file
> descriptor

The problem is with rateup being unable to update the log files and create the graphs.

Check the permissions on the files and directories: the process running MRTG should be able to write to the c:\mrtg-2.16.2\MRTGData\Router directory and all the files within it.

My guess is that there is a permissions issue meaning that it cannot open either the .log file or the .png images for writing, resulting in a bad file descriptor (although surely rateup should check for success on file open, if Tobi wrote it well :) )

Steve



More information about the mrtg mailing list