| 发表于:2007-04-11 17:42:32 楼主 |
mtrg生成index.html出现错误 我在使用mtrg监控我自己的电脑流量的时候(windows xp),生成.cfg成功了,但是生成index.html的时候出现错误,请哪位帮我看看是怎么回事?我是第一次使用mtrg,谢谢了 步骤一: 安装activeperl-5.6.0.620 步骤二: perl e:\mrtg\bin\cfgmaker public@127.0.0.1 > c:\inetpub\wwwroot\mrtg\cfg\mrtg.cfg 步骤三: perl e:\mrtg\bin\indexmaker c:\inetpub\wwwroot\mrtg\cfg\mrtg.cfg > c:\inetpub\wwwroot\mrtg\index.html 就是在第三步出现错误: error: "workdir " not specified in mrtg config file 下面就是我的cfg文件: # created by # e:\mrtg\bin\cfgmaker public@127.0.0.1 ### global config options # for unix # workdir: /home/http/mrtg # or for nt # workdir: c:\mrtgdata ### global defaults # to get bits instead of bytes and graphs growing to the right # options[_]: growright, bits enableipv6: no ###################################################################### # system: 0d12caaeff9144c # description: hardware: x86 family 15 model 44 stepping 2 at/at compatible - software: windows 2000 version 5.1 (build 2600 uniprocessor free) # contact: # location: ###################################################################### ### interface 1 > > descr: 'ms-tcp-loopback-interface ' ¦ name: ' ' ¦ ip: '127.0.0.1 ' ¦ eth: ' ' ### ### the following interface is commented out because: ### * it is a software loopback interface # # target[127.0.0.1_1]: 1:public@127.0.0.1: # setenv[127.0.0.1_1]: mrtg_int_ip= "127.0.0.1 " mrtg_int_descr= "ms-tcp-loopback-interface " # maxbytes[127.0.0.1_1]: 1250000 # title[127.0.0.1_1]: traffic analysis for 1 -- 0d12caaeff9144c # pagetop[127.0.0.1_1]: <h1> traffic analysis for 1 -- 0d12caaeff9144c </h1> # <table> # <tr> <td> system: </td> <td> 0d12caaeff9144c in </td> </tr> # <tr> <td> maintainer: </td> <td> </td> </tr> # <tr> <td> description: </td> <td> ms-tcp-loopback-interface </td> </tr> # <tr> <td> iftype: </td> <td> softwareloopback (24) </td> </tr> # <tr> <td> ifname: </td> <td> </td> </tr> # <tr> <td> max speed: </td> <td> 1250.0 kbytes/s </td> </tr> # <tr> <td> ip: </td> <td> 127.0.0.1 (localhost) </td> </tr> # </table> ### interface 2 > > descr: 'realtek-rtl8139-family-pci-fast-ethernet-nic---数据包计划程序微型端口 ' ¦ name: ' ' ¦ ip: '192.168.0.10 ' ¦ eth: '00-0a-eb-23-7d-f6 ' ### target[127.0.0.1_2]: 2:public@127.0.0.1: setenv[127.0.0.1_2]: mrtg_int_ip= "192.168.0.10 " mrtg_int_descr= "realtek-rtl8139-family-pci-fast-ethernet-nic---数据包计划程序微型端口 " maxbytes[127.0.0.1_2]: 12500000 title[127.0.0.1_2]: traffic analysis for 2 -- 0d12caaeff9144c pagetop[127.0.0.1_2]: <h1> traffic analysis for 2 -- 0d12caaeff9144c </h1> <table> <tr> <td> system: </td> <td> 0d12caaeff9144c in </td> </tr> <tr> <td> maintainer: </td> <td> </td> </tr> <tr> <td> description: </td> <td> realtek-rtl8139-family-pci-fast-ethernet-nic---数据包计划程序微型端口 </td> </tr> <tr> <td> iftype: </td> <td> ethernetcsmacd (6) </td> </tr> <tr> <td> ifname: </td> <td> </td> </tr> <tr> <td> max speed: </td> <td> 12.5 mbytes/s </td> </tr> <tr> <td> ip: </td> <td> 192.168.0.10 (0d12caaeff9144c) </td> </tr> </table> ### interface 131076 > > descr: 'wan-(ppp/slip)-interface ' ¦ name: ' ' ¦ ip: '221.10.146.219 ' ¦ eth: '00-53-45-00-00-00 ' ### target[127.0.0.1_131076]: 131076:public@127.0.0.1: setenv[127.0.0.1_131076]: mrtg_int_ip= "221.10.146.219 " mrtg_int_descr= "wan-(ppp/slip)-interface " maxbytes[127.0.0.1_131076]: 12500000 title[127.0.0.1_131076]: traffic analysis for 131076 -- 0d12caaeff9144c pagetop[127.0.0.1_131076]: <h1> traffic analysis for 131076 -- 0d12caaeff9144c </h1> <table> <tr> <td> system: </td> <td> 0d12caaeff9144c in </td> </tr> <tr> <td> maintainer: </td> <td> </td> </tr> <tr> <td> description: </td> <td> wan-(ppp/slip)-interface </td> </tr> <tr> <td> iftype: </td> <td> ppp (23) </td> </tr> <tr> <td> ifname: </td> <td> </td> </tr> <tr> <td> max speed: </td> <td> 12.5 mbytes/s </td> </tr> <tr> <td> ip: </td> <td> 221.10.146.219 (0d12caaeff9144c) </td> </tr> </table> |
|
|
|
|