在执行/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:
晕!!!
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
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#