- 论坛徽章:
- 0
|
我是新手,这个问题已经搞了两天了
先说下前提
系统是Centos4,想监控本机网卡流量
我的httpd和snmpd还有mrtg都是从用yum install *httpd*(*snmp* *mrtg*)装的
默认安装
我的主页存放在/var/www下
工作目录是/var/www/mrtg
------------------------------- 1
[root@localhost mrtg]# cfgmaker --output=./mrtg-1.cfg public@localhost.localdomain
--base: Get Device Info on public@localhost.localdomain:
--base: Vendor Id:
--base: Populating confcache
--snpo: Skipping ifName scanning because public@localhost.localdomain: does not seem to support it(是错误么?怎么改呢?)
--base: Get Interface Info
--base: Walking ifIndex
--base: Walking ifType
--base: Walking ifAdminStatus
--base: Walking ifOperStatus
--base: Walking ifSpeed
--base: Writing ./mrtg-1.cfg
------------------------------- 2
....
WorkDir: /var/www/mrtg
....
Options[_]: growright, bits
....
------------------------------- 3
[root@localhost mrtg]# mrtg ./mrtg-1.cfg
-----------------------------------------------------------------------
ERROR: Mrtg will most likely not work properly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case. Try the following command to start:
env LANG=C /usr/bin/mrtg ./mrtg-1.cfg
-----------------------------------------------------------------------(错误,已解决)
[root@localhost mrtg]# LANG=C(解决)
[root@localhost mrtg]# mrtg ./mrtg-1.cfg
[root@localhost mrtg]#
[root@localhost mrtg]# mrtg ./mrtg-1.cfg
[root@localhost mrtg]# mrtg ./mrtg-1.cfg
[root@localhost mrtg]# mrtg ./mrtg-1.cfg
------------------------------- 4
[root@localhost mrtg]# indexmaker --output=./mrtg-1.html ./mrtg-1.cfg
Use of uninitialized value in hash element at /usr/bin/indexmaker line 340.(错误)
[root@localhost mrtg]# indexmaker --output=./mrtg-1.html ./mrtg-1.cfg
Use of uninitialized value in hash element at /usr/bin/indexmaker line 340.(错误)
[root@localhost mrtg]#
------------------------------- 5
用另外一台局域网内机器查看:
http://*.*.*.*/mrtg/mrtg-1.html
可以访问,但是只能看见这些,流量图看不见,请高手指点
MSN:lh_lele@hotmail.com
恭候高手指点
万分感谢!
[ 本帖最后由 jaly7272 于 2007-5-17 10:56 编辑 ] |
|