在部署网络侦控系统的时候,我们用到了Ntop对数据包进行分析,下面就讲一下如何在RedHat Enterprise Linux AS4上安装Ntop3.3。其实还可以结合Netflow来使用,对其他计算机网卡上的数据进行分析,但是在这里就不再详细介绍了。
所需软件包:
rrdtool-1.2.20.tar.gz 下载地址:http://oss.oetiker.ch/rrdtool
Ntop-3.3.tar.gz 下载地址:http://www.ntop.org/news.html
安装步骤:
1. 装rrdtool,rrdtool 需要tcl开发库的支持,否则会出现编译错误,请安装
tcl-devel-8.4.7-2.i386.rpm
tcl-html-8.4.7-2.i386.rpm
tclx-devel-8.3.5-4.i386.rpm
tclx-doc-8.3.5-4.i386.rpm
这几个包在安装光盘的第四张光盘上面有。另外编译过程中可能出现错
修改:进入 /rrdtool-1.2.20/bindings/perl-shared,编辑 Makefile
删除 OPTIMIZE = -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 中的 -mtune=pentium4 ---这个可能和 gcc版本有关
[root@localhost ~]# tar zxvf rrdtool-1.2.20.tar.gz
[root@localhost ~]# cd rrdtool-1.2.20
[root@localhost rrdtool-1.2.20]# ./configure
[root@localhost rrdtool-1.0.50]# make
[root@localhost rrdtool-1.0.50]# make install
此段内容参考http://blog.csdn.net/snowdragon
我在安装的时候make报错,但是仍然可以make install,发现安装成功(估计有错误,但是不知道在那里,貌似也不影响使用
2. 安装ntop3.3
由于安装rrdtool的文件夹不是默认的文件夹目录,所以在configure的时候要加上 rrdtool的路径。
[root@localhost ~]#tar zxvf ntop-3.3.tar.gz
[root@localhost ~]#cd ntop-3.3
[root@localhost ntop-3.3]#./configure –with-rrd-home=/usr/local
[root@localhost ntop-3.3]#make
[root@localhost ntop-3.3]#make install
到此为止,Ntop就安装到了计算机中。在使用的时只要
[root@localhost ntop-3.3]#ntop –i eth0
便开始收集eth0上面的数据。关于更加详细的参数使用,请参考ntop的手册。

本文还暂无回复