QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1849|回复: 3

使用mrtg的错误信息

[复制链接]
发表于 2005-11-7 16:47:20 | 显示全部楼层 |阅读模式
 想试一下对本机网卡的流量监控,于是就找到了mrtg。可是在生成页面是产生了错误,真是郁闷。
  我的mrtg.cfg(/var/www/html/mrtg内容如下:
    见附件


在执行/usr/local/mrtg2/bin/mrtg /var/www/html/mrtg/mrtg.cfg时。出现以下错误:
  [root@localhost /]# /usr/local/mrtg-2/bin/mrtg  /var/www/html/mrtg/mrtg.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/local/mrtg-2/bin/mrtg /var/www/html/mrtg/mrtg.cfg
-----------------------------------------------------------------------

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| 发表于 2005-11-7 19:59:39 | 显示全部楼层
晕!!~~~~~~
怎么没有人回呢?难道问题太菜?!!!!!
  
回复

使用道具 举报

发表于 2005-11-10 15:26:58 | 显示全部楼层
晕!!!
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:
s
env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/mrtg.cfg


2個方法
1.
[root@localhost /]# env LANG=C /usr/local/mrtg-2/bin/mrtg  /var/www/html/mrtg/mrtg.cfg

2.
vi /etc/sysconfig/i18n
LANG="en_US.UTF-8"
修改成
LANG="zh_CN" 或 LANG="zh_TW.Big5"

restart pc

[root@localhost /]# /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/mrtg.cfg
回复

使用道具 举报

发表于 2006-2-8 16:00:37 | 显示全部楼层
root@ubuntu:/home/sunux# env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/mrtg.cfg
env: /usr/local/mrtg-2/bin/mrtg: 没有那个文件或目录
root@ubuntu:/home/sunux# whereis mrtg
mrtg: /usr/bin/mrtg /etc/mrtg.cfg /usr/bin/X11/mrtg /usr/share/man/man1/mrtg.1.gz
root@ubuntu:/home/sunux# env LANG=C /usr/bin/mrtg /var/www/html/mrtg/mrtg.cfg ERROR: unable to open config file: /var/www/html/mrtg/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
root@ubuntu:/home/sunux#
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-23 09:20 , Processed in 0.040692 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表