当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 急救:安装MRTG后没有相应的页面文件生成!!!(已解决)
帖子发表于 : 2006-02-08 9:11 

注册: 2005-06-12 12:23
帖子: 335
送出感谢: 0 次
接收感谢: 0 次
参考精华贴:
http://forum.ubuntu.org.cn/viewtopic.ph ... light=mrtg
做好之后在/var/www/mrtg目录下只有这几个文件:
index.html mrtg-l.png mrtg-m.png mrtg-r.png mrtg-ti.png
index.html文件可以正常访问,而且已经列出监控设备的各个端口,但是链接的目标文件确没有,譬如页面上的链接显示:172.31.19.65_1 Traffic Graph,链接的目标文件是:http://localhost/mrtg/172.31.19.65_1.html,但是这个目录下根本就没有。
Not Found

The requested URL /mrtg/172.31.19.65_1.html was not found on this server.
Apache/2.0.54 (Ubuntu) Server at localhost Port 80


最后由 nifi 编辑于 2006-02-08 16:14,总共编辑了 1 次

页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2006-02-08 10:32 

注册: 2005-06-12 12:23
帖子: 335
送出感谢: 0 次
接收感谢: 0 次
root@ubuntu:/home/sunux# mrtg /var/www/mrtg/index.html
-----------------------------------------------------------------------
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 /var/www/mrtg/index.html
-----------------------------------------------------------------------
???
难道locale不能是UTF-8?


页首
 用户资料  
 
3 楼 
 文章标题 : 提示的居然不对
帖子发表于 : 2006-02-08 16:19 

注册: 2005-06-12 12:23
帖子: 335
送出感谢: 0 次
接收感谢: 0 次
用env LANG=C /usr/bin/mrtg /etc/mrtg.cfg就可以了,然后出了一大堆信息,发上来做个记录吧:
root@ubuntu:/home/sunux# env LANG=C /usr/bin/mrtg /etc/mrtg.cfg
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.21.240.246
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.21.240.246 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.21.240.246.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.21.240.246.log to 172.20.221.1_172.21.240.246.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.221.1
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.221.1 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.221.1.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.221.1.log to 172.20.221.1_172.20.221.1.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.222.1
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.222.1 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.222.1.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.222.1.log to 172.20.221.1_172.20.222.1.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.221.9
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.221.9 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.221.9.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.221.9.log to 172.20.221.1_172.20.221.9.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.221.17
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.221.17 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.221.17.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.221.17.log to 172.20.221.1_172.20.221.17.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.221.25
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.221.25 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.221.25.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.221.25.log to 172.20.221.1_172.20.221.25.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.221.33
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.221.33 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.221.33.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.221.33.log to 172.20.221.1_172.20.221.33.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.221.41
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.221.41 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.221.41.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.221.41.log to 172.20.221.1_172.20.221.41.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_10.121.144.145
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_10.121.144.145 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_10.121.144.145.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_10.121.144.145.log to 172.20.221.1_10.121.144.145.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.221.73
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.221.73 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.221.73.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.221.73.log to 172.20.221.1_172.20.221.73.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.221.81
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.221.81 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.221.81.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.221.81.log to 172.20.221.1_172.20.221.81.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.221.89
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.221.89 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.221.89.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.221.89.log to 172.20.221.1_172.20.221.89.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.221.97
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.221.97 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.221.97.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.221.97.log to 172.20.221.1_172.20.221.97.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.221.241
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.221.241 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.221.241.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.221.241.log to 172.20.221.1_172.20.221.241.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.221.129
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.221.129 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.221.129.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.221.129.log to 172.20.221.1_172.20.221.129.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.221.137
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.221.137 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.221.137.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.221.137.log to 172.20.221.1_172.20.221.137.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.221.145
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.221.145 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.221.145.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.221.145.log to 172.20.221.1_172.20.221.145.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.222.17
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.222.17 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.222.17.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.222.17.log to 172.20.221.1_172.20.222.17.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.222.25
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.222.25 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.222.25.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.222.25.log to 172.20.221.1_172.20.222.25.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.205.97
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.205.97 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.205.97.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.205.97.log to 172.20.221.1_172.20.205.97.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.19.236.145
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.19.236.145 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.19.236.145.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.19.236.145.log to 172.20.221.1_172.19.236.145.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.222.41
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.222.41 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.222.41.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.222.41.log to 172.20.221.1_172.20.222.41.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.222.49
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.222.49 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.222.49.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.222.49.log to 172.20.221.1_172.20.222.49.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_219.150.156.61
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_219.150.156.61 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_219.150.156.61.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_219.150.156.61.log to 172.20.221.1_219.150.156.61.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.222.57
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.222.57 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.222.57.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.222.57.log to 172.20.221.1_172.20.222.57.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.222.65
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.222.65 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.222.65.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.222.65.log to 172.20.221.1_172.20.222.65.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_10.121.144.153
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_10.121.144.153 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_10.121.144.153.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_10.121.144.153.log to 172.20.221.1_10.121.144.153.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.222.81
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.222.81 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.222.81.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.222.81.log to 172.20.221.1_172.20.222.81.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_192.168.165.1
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_192.168.165.1 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_192.168.165.1.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_192.168.165.1.log to 172.20.221.1_192.168.165.1.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.240.246
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.240.246 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.240.246.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.240.246.log to 172.20.221.1_172.20.240.246.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.222.233
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.222.233 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.222.233.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.222.233.log to 172.20.221.1_172.20.222.233.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.222.241
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.222.241 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.222.241.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.222.241.log to 172.20.221.1_172.20.222.241.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 172.20.221.1_172.20.221.185
Rateup WARNING: /usr/bin/rateup The backup log file for 172.20.221.1_172.20.221.185 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 172.20.221.1_172.20.221.185.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 172.20.221.1_172.20.221.185.log to 172.20.221.1_172.20.221.185.old updating log file


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译