由 landk 在 06-17-2003 17:59 发表:
求助:mrtg问题
按照 http://www.linuxsir.com/bbs/showthr...安装mrtg,在输入
./indexmaker --output=/var/www/html/mrtg/net/index.html --title=Sonic /var/www/html/mrtg/mrtg.cfg
后出现如下错误:
Possible precedence problem on bitwise | operator at /usr/bin/../lib/mrtg2/BER.pm line 601.
Can't locate package $VERSION for @MRTG_lib::ISA at ./indexmaker line 49
main::BEGIN() called at /usr/bin/../lib/mrtg2/MRTG_lib.pm line 49
eval {...} called at /usr/bin/../lib/mrtg2/MRTG_lib.pm line 49
其中mrtg.cfg文件如下:
Created by
/usr/bin/cfgmaker --output=/var/www/html/mrtg/mrtg.cfg [email protected]
Global Config Options
for UNIX
WorkDir: /var/www/html/mrtg/
or for NT
WorkDir: c:\mrtgdata
Global Defaults
to get bits instead of bytes and graphs growing to the right
Options[_]: growright, bits
Language:GB2312
######################################################################
System: landk
Description: Linux landk 2.4.20-8bigmem #1 SMP Thu Mar 13 17:32:29 EST 2003 i686
Contact: Root
1<root@localhost> (configure /etc/snmp/snmp.local.conf)
2
3# Location: Unknown (edit /etc/snmp/snmpd.conf)
4
5######################################################################
6
7
8
9
10* * *
11
12
13_由 sd44 在 06-18-2003 19:45 发表:_
14
15
16
17****
18
19
20
21
22
23debian/gentoo都实验了,没这个问题
24
25
26
27下载不同的版本 ./configure && make && make install 呢?
28
29
30
31
32* * *
33
34
35_由 jacobzhu 在 06-18-2003 21:00 发表:_
36
37
38
39****
40
41
42
43
44
45建议重装Mrtg,应该是perl模块路径的问题
46
47
48
49
50* * *
51
52
53_由 jimshen 在 10-31-2003 12:21 发表:_
54
55
56
57****
58
59
60
61
62
63RedHat Version 9.0 / 8.0 and Indexmaker
64
65RedHat versions 8 and 9 give an error like this when running indexmaker.
66
67
68
69
70
71
72
73[root@bigboy mrtg]# indexmaker --output=index.html /etc/mrtg/localhost.cfg
74
75Can't locate pack</root@localhost>