Netexpert FAQ 网络分析专家学习建议入口 @netexpert成员申请指南
netexpert积分规则的说明 Netis招贤纳士(2008年11月22日更新)
发新话题
打印

MRTG配置错误提示

MRTG配置错误提示

C:\mrtg\bin>perl mrtg 1820.cfg

ERROR: CFG Error Unknown Option "workdir:c" on line 0 or above.
           Check doc/reference.txt for Help

请问哪里没对?

TOP

格式不对 workdir:  c:\dir 中间好像应该有空格

TOP

quidway AR1820 router   SNMP 配置如下:
#
snmp-agent
snmp-agent local-engineid 000007DB7F00000100001E6E
snmp-agent community read  public
snmp-agent sys-info version all
snmp-agent target-host trap address udp-domain 172.16.200.3(我的主机地址) udp-port 5000 param
s securityname public
snmp-agent trap source Ethernet1/0

perl 安装在C:\perl
mrtg 解压在c:\mrtg

mrtg 执行如下:
C:\mrtg\bin>perl cfgmaker public@172.16.200.1 --global "workdir:c:\inetpub\wwwro
ot\mrtg" --output 1820.cfg
--base: Get Device Info on public@172.16.200.1:
--base: Vendor Id:
--base: Populating confcache
--snpo: confcache public@172.16.200.1: Descr InLoopBack0 --> 128
--snpo: confcache public@172.16.200.1: Descr NULL0 --> 262
--snpo: confcache public@172.16.200.1: Descr Ethernet1/0 --> 514
--snpo: confcache public@172.16.200.1: Descr Ethernet2/0 --> 642
--snpo: confcache public@172.16.200.1: Ip 127.0.0.1 --> 128
--snpo: confcache public@172.16.200.1: Ip 172.16.200.1 --> 514
--snpo: confcache public@172.16.200.1: Ip 192.168.12.200 --> 642
--snpo: confcache public@172.16.200.1: Name InLoopBack0 --> 128
--snpo: confcache public@172.16.200.1: Name NULL0 --> 262
--snpo: confcache public@172.16.200.1: Name Ethernet1/0 --> 514
--snpo: confcache public@172.16.200.1: Name Ethernet2/0 --> 642
--snpo: confcache public@172.16.200.1: Type 24 --> 128
--snpo: confcache public@172.16.200.1: Type 1 --> 262
--snpo: confcache public@172.16.200.1: Type 6 --> 514
--snpo: confcache public@172.16.200.1: Type 6 --> 642 (duplicate)
--snpo: confcache public@172.16.200.1: Eth 00-00-00-00-00-00 --> 128
--snpo: confcache public@172.16.200.1: Eth 00-00-00-00-00-00 --> 262 (duplicate)

--snpo: confcache public@172.16.200.1: Eth 00-e0-fc-48-b7-ee --> 514
--snpo: confcache public@172.16.200.1: Eth 00-e0-fc-48-b7-ef --> 642
--base: Get Interface Info
--base: Walking ifIndex
--base: Walking ifType
--base: Walking ifAdminStatus
--base: Walking ifOperStatus
--base: Walking ifSpeed
--base: Writing 1820.cfg

C:\mrtg\bin>perl mrtg 1820.cfg
ERROR: CFG Error Unknown Option "workdir:c" on line 0 or above.
           Check doc/reference.txt for Help
错误提示,请帮忙解决一下

TOP

workdir  改写成 work dir 中间加空格

TOP

全部是格式有问题,仔细看文档。。。

TOP

C:\mrtg\bin>perl cfgmaker public@172.16.200.1 --global "workdir:c:\inetpub\wwwro
ot\mrtg" --output 1820.cfg


生成配置文件的时候,WorkDir:后面要有空格,而且Windows平台上C:\inetpub\wwwroot\mrtg这个参数值也不能有空格

你不用重新生成,在你的配置文件1820.cfg最后一行修改就可以了;

TOP

发新话题
版块跳转