[mrtg] Bad file descriptor

Pyae Phyo Wai pyaephyowai at gmail.com
Tue Sep 1 12:49:46 CEST 2009


Hi

We are using now mrtg-2.16.2 and ActivePerl-5.8.0.802-MSWin32-x86.msi
OS- win2003 advanced server

Last time, I have installed mrtg so much times for network monitoring.
Everything is OK.

Right now, when I run - perl mrtg myrouter.cfg command, I get error
and can't run.

I have never faced that problem before.

I can't run this command.

mrtg-2.16.2\bin > perl mrtg myrouter.cfg

I got errors like that:

C:\mrtg-2.16.2\bin>perl mrtg router.cfg
Daemonizing MRTG ...
Do Not close this window. Or MRTG will die
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 .................................................................

I download another version of perl and try it on.
But I still get that error... Bad file descriptor

The following is my cfg config file.

# Created by
# cfgmaker monitor at x.x.x.x --global "WorkDir:
c:\mrtg-2.16.2\MRTGData\myrouter" --output myrouter.cfg


### Global Config Options

#  for UNIX
# WorkDir: /home/http/mrtg

#  or for NT
# WorkDir: c:\mrtgdata
WorkDir: c:\mrtg-2.16.2\MRTGData\myrouter
RunAsDaemon: Yes
Interval: 5

### Global Defaults

#  to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

EnableIPv6: no

######################################################################
######################################################################
# System: 69sw_cas
# Description: Cisco IOS Software, C3550 Software (C3550-IPBASE-M),
Version 12.2(25)SEB4, RELEASE SOFTWARE (fc1)
#          Copyright (c) 1986-2005 by Cisco Systems, Inc.
#          Compiled Tue 30-Aug-05 13:14 by yenanh
# Contact:
# Location:
######################################################################


### Interface 1 >> Descr: 'FastEthernet0/1' | Name: 'Fa0/1' | Ip:
192.168.100.10' | Eth: '' ###

Sir, I already checked SNMP in all router. All OK.
I am in a hurry to monitor network right now.
Please give me any idea what the problem is.

With Regards
PyaePhyoWai



More information about the mrtg mailing list