Download rpmforge-release

http://webhd.xuite.net/_oops/maxlove0319/xio

[root@NTOP tmp]# rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
warning: rpmforge-release-0.3.6-1.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
   1:rpmforge-release       ########################################### [100%]
[root@NTOP tmp]# yum install rrdtool
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * rpmforge: apt.sw.be
 * base: mirror01.idc.hinet.net
 * updates: mirror01.idc.hinet.net

 * addons: mirror01.idc.hinet.net
 * extras: mirror01.idc.hinet.net
rpmforge
primary. | 2.2 MB
rpmforge                                                       10698/10698
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package rrdtool.i386 0:1.4.4-1.el5.rf set to be updated
--> Processing Dependency: ruby for package: rrdtool
--> Processing Dependency: lua for package: rrdtool
--> Processing Dependency: perl(RRDs) for package: rrdtool
--> Processing Dependency: perl(RRDp) for package: rrdtool
--> Running transaction check

---> Package perl-rrdtool.i386 0:1.4.4-1.el5.rf set to be updated
---> Package ruby.i386 0:1.8.5-5.el5_4.8 set to be updated
--> Processing Dependency: ruby-libs = 1.8.5-5.el5_4.8 for package: ruby
--> Processing Dependency: libruby.so.1.8 for package: ruby
---> Package lua.i386 0:5.1.4-2.el5.rf set to be updated
--> Running transaction check
---> Package ruby-libs.i386 0:1.8.5-5.el5_4.8 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch        Version                  Repository       Size
================================================================================
Installing:
 rrdtool             i386        1.4.4-1.el5.rf           rpmforge        895 k
Installing for dependencies:
 lua                 i386        5.1.4-2.el5.rf           rpmforge        242 k
 perl-rrdtool        i386        1.4.4-1.el5.rf           rpmforge         52 k
 ruby                i386        1.8.5-5.el5_4.8          base            274 k
 ruby-libs           i386        1.8.5-5.el5_4.8          base            1.6 M

Transaction Summary
================================================================================
Install      5 Package(s)        
Update       0 Package(s)        
Remove       0 Package(s)        

Total download size: 3.0 M
Downloading Packages:
(1/5): p |  32 kB
(2/5): l | 232 kB
(3/5): r | 216 kB
(4/5): r | 888 kB
(5/5): r | 1.6 MB
--------
Total  
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) <centos-5-key@centos.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Running rpm_check_debug

Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : lua                                               [1/5]
  Installing     : ruby-libs                                         [2/5]
  Installing     : ruby                                              [3/5]
  Installing     : rrdtool                                           [4/5]
  Installing     : perl-rrdtool                                      [5/5]

Installed: rrdtool.i386 0:1.4.4-1.el5.rf
Dependency Installed: lua.i386 0:5.1.4-2.el5.rf perl-rrdtool.i386 0:1.4.4-1.el5.rf ruby.i386 0:1.8.5-5.el5_4.8 ruby-libs.i386 0:1.8.5-5.el5_4.8
Complete!

 [root@NTOP tmp]# yum -y install ntop
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

 * rpmforge: fr2.rpmfind.net
 * base: mirror01.idc.hinet.net
 * updates: mirror01.idc.hinet.net
 * addons: mirror01.idc.hinet.net
 * extras: mirror01.idc.hinet.net
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package ntop.i386 0:3.3.8-2.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package       Arch          Version                    Repository         Size
================================================================================
Installing:
 ntop          i386          3.3.8-2.el5.rf             rpmforge          3.8 M

Transaction Summary
================================================================================
Install      1 Package(s)        
Update       0 Package(s)        
Remove       0 Package(s)        

Total download size: 3.8 M
Downloading Packages:
ntop-3.3 | 3.8 MB
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : ntop                                              [1/1]

Installed: ntop.i386 0:3.3.8-2.el5.rf
Complete!

筆者持續對NTOP發出PING的指令, 隔天上班透過網頁要查詢,已經無法連結!

[root@NTOP ~]# /etc/rc.d/init.d/ntop start
Starting ntop:    Processing file /etc/ntop.conf for parameters...
Tue Apr 19 10:05:12 2011  NOTE: Interface merge enabled by default
Tue Apr 19 10:05:12 2011  Initializing gdbm databases
FATAL ERROR: Unrecognized/unprocessed ntop options...
                                           ,     --user ntop, ,   --db-file-path /var/ntop, ,     ,     ,       --use-syslog, ,     ,       ,     ,         ,     ,     

run ntop --help for usage information

    Common problems:
        -B "filter expressions" (quotes are required)
        --use-syslog=facilty (the = is required)

[FAILED]

後來改成使用以下指令來啟動

/usr/bin/ntop -d -L -u ntop  --skip-version-check --use-syslog=daemon

成功啟動服務!

阿博 發表在 痞客邦 PIXNET 留言(0) 人氣()