[root@mail ~]# rpm -qa|grep ntop 查看是否安装
ntop-3.3.10-2.fc12.i686
[root@mail ~]# yum remove ntop 移除原先的
Loaded plugins: presto, refresh-packagekit
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package ntop.i686 0:3.3.10-2.fc12 set to be erased
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================
Package Arch Version Repository Size
======================================================================
Removing:
ntop i686 3.3.10-2.fc12 installed 36 M
Transaction Summary
======================================================================
Remove 1 Package(s)
Reinstall 0 Package(s)
Downgrade 0 Package(s)
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : ntop-3.3.10-2.fc12.i686 1/1
warning: /etc/ntop.conf saved as /etc/ntop.conf.rpmsave
Removed:
ntop.i686 0:3.3.10-2.fc12
Complete!
[root@mail ~]# rpm -qa|grep ntop
[root@mail ~]# wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
--2010-01-15 08:48:02-- http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
Resolving dag.wieers.com... 62.213.193.164
Connecting to dag.wieers.com|62.213.193.164|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://rpmforge.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm [following]
--2010-01-15 08:48:08-- http://rpmforge.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
Resolving rpmforge.sw.be... 85.13.226.40
Connecting to rpmforge.sw.be|85.13.226.40|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16698 (16K) [application/x-rpm]
Saving to: 鈘pmforge-release-0.3.6-1.el5.rf.i386.rpm?
100%[============================>] 16,698 28.0K/s in 0.6s
2010-01-15 08:48:12 (28.0 KB/s) - 鈘pmforge-release-0.3.6-1.el5.rf.i386.rpm鈙aved [16698/16698]
[root@mail ~]# ls
anaconda-ks.cfg Music
current-download-script.sh mysql-setup.sh
Desktop Pictures
Documents Public
Downloads qmt
fedora12-deps.sh rpmbuild
fedora_12-install-script.sh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
fedora12-perl.sh rt-3.8.7
fedora12-svcs.sh rt.tar.gz
firewall.sh Templates
install.log Videos
install.log.syslog
[root@mail ~]# rpm -Uvh 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@mail ~]# yum install rrdtool
Loaded plugins: presto, refresh-packagekit
rpmforge | 1.1 kB 00:00
rpmforge/primary | 3.6 MB 00:20
rpmforge 10032/10032
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package rrdtool.i386 0:1.4.2-1.el5.rf set to be updated
--> Processing Dependency: ruby for package: rrdtool-1.4.2-1.el5.rf.i386
--> Processing Dependency: perl(RRDs) for package: rrdtool-1.4.2-1.el5.rf.i386
--> Processing Dependency: xorg-x11-fonts-Type1 for package: rrdtool-1.4.2-1.el5.rf.i386
--> Processing Dependency: perl(RRDp) for package: rrdtool-1.4.2-1.el5.rf.i386
--> Processing Dependency: gettext for package: rrdtool-1.4.2-1.el5.rf.i386
--> Processing Dependency: libdbi.so.0 for package: rrdtool-1.4.2-1.el5.rf.i386
--> Running transaction check
---> Package gettext.i686 0:0.17-16.fc12 set to be updated
--> Processing Dependency: cvs for package: gettext-0.17-16.fc12.i686
---> Package libdbi.i686 0:0.8.3-3.fc12 set to be updated
---> Package perl-rrdtool.i386 0:1.4.2-1.el5.rf set to be updated
---> Package ruby.i686 0:1.8.6.383-6.fc12 set to be updated
--> Processing Dependency: ruby-libs = 1.8.6.383-6.fc12 for package: ruby-1.8.6.383-6.fc12.i686
---> Package xorg-x11-fonts-Type1.noarch 0:7.2-9.fc12 set to be updated
--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.2-9.fc12.noarch
--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.2-9.fc12.noarch
--> Running transaction check
---> Package cvs.i686 0:1.11.23-8.fc12 set to be updated
---> Package ruby-libs.i686 0:1.8.6.383-6.fc12 set to be updated
---> Package ttmkfdir.i686 0:3.0.9-32.fc12 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================
Package Arch Version Repository Size
======================================================================
Updating:
rrdtool i386 1.4.2-1.el5.rf rpmforge 881 k
Installing for dependencies:
cvs i686 1.11.23-8.fc12 fedora 700 k
gettext i686 0.17-16.fc12 updates 1.8 M
libdbi i686 0.8.3-3.fc12 fedora 37 k
perl-rrdtool i386 1.4.2-1.el5.rf rpmforge 52 k
ruby i686 1.8.6.383-6.fc12 updates 485 k
ttmkfdir i686 3.0.9-32.fc12 fedora 41 k
xorg-x11-fonts-Type1 noarch 7.2-9.fc12 fedora 501 k
Updating for dependencies:
ruby-libs i686 1.8.6.383-6.fc12 updates 1.6 M
Transaction Summary
======================================================================
Install 7 Package(s)
Upgrade 2 Package(s)
Total download size: 6.0 M
Is this ok [y/N]: Exiting on user Command
Complete!
[root@mail ~]# yum install ntop
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ntop.i686 0:3.3.10-2.fc12 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================
Package Arch Version Repository Size
======================================================================
Installing:
ntop i686 3.3.10-2.fc12 fedora 16 M
Transaction Summary
======================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 16 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 16 M
ntop-3.3.10-2.fc12.i686.rpm | 16 MB 01:24
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB has been altered since the last yum transaction.
Installing : ntop-3.3.10-2.fc12.i686 1/1
Installed:
ntop.i686 0:3.3.10-2.fc12
Complete!
[root@mail ~]# cp /etc/ntop.conf /etc/ntop.conf.bak
cp: overwrite `/etc/ntop.conf.bak'? y
[root@mail ~]# mkdir /var/www/html/ntop
mkdir: cannot create directory `/var/www/html/ntop': File exists
[root@mail ~]# cd /var/www/html/
[root@mail html]# ll
total 4
drwxr-xr-x 2 ntop ntop 4096 2010-01-14 21:19 ntop
[root@mail html]# ntop -A
Fri Jan 15 08:56:48 2010 NOTE: Interface merge enabled by default
Fri Jan 15 08:56:48 2010 Initializing gdbm databases
ntop startup - waiting for user response!
Please enter the password for the admin user:
Please enter the password again:
Fri Jan 15 08:57:01 2010 Admin user password has been set
[root@mail html]# ntop -d -P /var/www/html/ntop/ -u nobody
Fri Jan 15 08:57:14 2010 NOTE: Interface merge enabled by default
Fri Jan 15 08:57:14 2010 **WARNING** Trailing slash removed from argument for option -P | --db-file-path
Fri Jan 15 08:57:14 2010 Initializing gdbm databases
Fri Jan 15 08:57:14 2010 ntop v.3.3.10 Fedora RPM
Fri Jan 15 08:57:14 2010 Configured on Aug 21 2009 11:15:15, built on Aug 21 2009 11:15:17.
Fri Jan 15 08:57:14 2010 Copyright 1998-2009 by Luca Deri
Fri Jan 15 08:57:14 2010 Get the freshest ntop from http://www.ntop.org/
Fri Jan 15 08:57:14 2010 NOTE: ntop is running from 'ntop'
Fri Jan 15 08:57:14 2010 NOTE: (but see warning on man page for the --instance parameter)
Fri Jan 15 08:57:14 2010 NOTE: ntop libraries are in '/usr/lib'
Fri Jan 15 08:57:14 2010 Initializing ntop
Fri Jan 15 08:57:14 2010 No patterns to load: protocol guessing disabled.
Fri Jan 15 08:57:14 2010 **WARNING** Truncated network size (device eth0) to 1024 hosts (real netmask 255.255.0.0)
Fri Jan 15 08:57:14 2010 Checking eth0 for additional devices
Fri Jan 15 08:57:14 2010 Resetting traffic statistics for device eth0
Fri Jan 15 08:57:14 2010 Initializing device eth0 (0)
Fri Jan 15 08:57:14 2010 DLT: Device 0 [eth0] is 1, mtu 1514, header 14
Fri Jan 15 08:57:14 2010 Initializing gdbm databases
Fri Jan 15 08:57:14 2010 VENDOR: Loading MAC address table.
Fri Jan 15 08:57:14 2010 VENDOR: Checking for MAC address table file
Fri Jan 15 08:57:14 2010 VENDOR: Loading newer file '/etc/ntop/specialMAC.txt.gz'
Fri Jan 15 08:57:14 2010 VENDOR: ...found 61 lines
Fri Jan 15 08:57:14 2010 VENDOR: ...loaded 59 records
Fri Jan 15 08:57:14 2010 VENDOR: Checking for MAC address table file
Fri Jan 15 08:57:14 2010 VENDOR: Loading newer file '/etc/ntop/oui.txt.gz'
Fri Jan 15 08:57:15 2010 VENDOR: ...found 79133 lines
Fri Jan 15 08:57:15 2010 VENDOR: ...loaded 12449 records
Fri Jan 15 08:57:15 2010 Fingerprint: Loading signature file
Fri Jan 15 08:57:15 2010 Fingerprint: Checking for Fingerprint file... file
Fri Jan 15 08:57:15 2010 **WARNING** Fingerprint: Unable to open file 'etter.finger.os'
Fri Jan 15 08:57:15 2010 INIT: Parent process is exiting (this is normal)
Fri Jan 15 08:57:15 2010 INIT: Bye bye: I'm becoming a daemon...
[root@mail html]# ntop startup
Fri Jan 15 08:57:29 2010 NOTE: Interface merge enabled by default
Fri Jan 15 08:57:29 2010 Initializing gdbm databases
FATAL ERROR: Unrecognized/unprocessed ntop options...
startup
run ntop --help for usage information
Common problems:
-B "filter expressions" (quotes are required)
--use-syslog=facilty (the = is required)
[root@mail html]# ntop 启动
Fri Jan 15 08:57:33 2010 NOTE: Interface merge enabled by default
Fri Jan 15 08:57:33 2010 Initializing gdbm databases
Fri Jan 15 08:57:33 2010 ntop will be started as user ntop
Fri Jan 15 08:57:33 2010 ntop v.3.3.10 Fedora RPM
Fri Jan 15 08:57:33 2010 Configured on Aug 21 2009 11:15:15, built on Aug 21 2009 ........