急救:安装MRTG后没有相应的页面文件生成!!!(已解决)

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
nifi
帖子: 335
注册时间: 2005-06-12 12:23

急救:安装MRTG后没有相应的页面文件生成!!!(已解决)

#1

帖子 nifi » 2006-02-08 9:11

参考精华贴:
viewtopic.php?t=8891&highlight=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 次。
nifi
帖子: 335
注册时间: 2005-06-12 12:23

#2

帖子 nifi » 2006-02-08 10:32

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?
nifi
帖子: 335
注册时间: 2005-06-12 12:23

提示的居然不对

#3

帖子 nifi » 2006-02-08 16:19

用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
回复