doyoulike 2012-05-04
,后来随着知识的增加,开始使用sniffer与wireshark来监控自己的网络通信情况,现在工作转为运维了,日常接触的系统都是rhel与CentOS、SUSE等linux系统,window的系统除了自己的笔记本使用外,基本不用了,日常的工作中也都是在服务器上进行工作,所以在使用sniffer与wireshark来监控网络情况还需要在我自己的电脑上,不方便,而且如果需要监控远方机房里的服务器的网络通信情况,系统都是linux的,也没用办法来安装sniffer与wireshark,所以我经过一段时间的寻找,发现了ntop来代替这2款软件来监控网络的通信情况,进过我的一段时间使用,发现ntop十分的适合我,如果想监控远方机房的服务器,只需要在双网卡的服务器上(我公司有专门的监控服务器)用第二个网卡(如eth0)来连接交换机的span扣进行监控整个网络。 一、源码安装ntop
1、安装所需的库
yum -y install libpcap libpcap-devel libpng gdbm gdbm-devel glib libxml2-devel pango pango-devel gd
wget http://sourceforge.net/projects/ntop/files/ntop/Stable/ntop-4.1.0.tar.gz
解压与安装
tar zxf ntop-4.1.0.tar.gz cd ntop-4.1.0 ./autogen.sh --with-tcpwrap make make install
需要注意的是:在安装ntop4.0以上的版本,如果想要编译,需要先autogen.sh,然后在configure;
configure: error: Unable to find RRD at /usr/local/rrdtool/: please use --with-rrd-home=DIR
3、安装rrdtool
下载最新的rrdtool
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.7.tar.gz
解压与配置
tar zxf rrdtool-1.4.7.tar.gz cd rrdtool-1.4.7 ./configure --prefix=/usr/local/rrdtool make make install
Removing dups and misplaced entries from LIBS and INCS... checking for GeoIP_record_by_ipnum in -lGeoIP... no checking for GeoIP_name_by_ipnum_v6 in -lGeoIP... no Please install GeoIP (http://www.maxmind.com/)
此问题的时候,可以使用
yum -y install GeoIP GeoIP-devel
现在ntop就安装完成了