Ntop安装以及配置(带图)

简介:

                 Ntop安装以及配置

试验环境:
 
      在一台为监控服务器,192.168.100.210的机器安装Ntop,之前这个机器已
      经装过cacti.
 
声明:
 
      安装ntop之前要安装libpcaprrdttool
 
     我这里安装的是 ntop-3.3、 Libpcap-0.9.8、r rdtool1.2.27
 
  1. 安装libpcap
 
# tar zxvf libpcap-0.9.8.tar.gz
# cd libpcap-0.9.8
#./configure
# make&&make install
   gcc -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./pcap-linux.c
gcc -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./fad-getad.c
In file included from ./fad-getad.c:64:
/usr/include/linux/if_packet.h:52: 
错误:expected specifier-qualifier-list before ‘__u32’
make: *** [fad-getad.o] 
错误 1
gcc -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./fad-getad.c
In file included from ./fad-getad.c:64:
/usr/include/linux/if_packet.h:52: 
错误:expected specifier-qualifier-list before ‘__u32’
make: *** [fad-getad.o] 
错误 1
 
在网上找啊找,终于有一篇说明了解决的办法.
 


#include <linux/types.h> 

加入到

/usr/include/linux/if_packet.h
 
make&&make install,ok这次再没有出现错误了.
 
我们到ntop的安装目录,执行下面的命令:
 
#./autogen.sh
configure: error: Unable to find RRD at /usr/local/rrdtool: please use --with-rrd-home=DIR
 
它提示找不到rrdtool,让我们用--with-rrd-home指定rrdtool的安装目录,但是奇怪的是我指定了安装路径依旧报错,很是郁闷,为什么呢?在网上查找相关资料,都是没有装rrdtool才导致这个问题的,我于是纳闷了,突然想到是不是版本太久的缘故,于是下了个rrdtool-1.2.27的进行了安装,然后指定相应的路径OK,哎真没有想到是因为版本的原因,郁闷。。。。。。。。安装rrdtool的过程如下:
 
#tar -zxvf rrdtool-1.2.27.tar.gz
# cd rrdtool-1.2.27
#./configure --prefix=/usr/local/rrdtool2
# Make&&make install
 
 
再到ntop目录下,运行autogen.sh,通过
 
#./configure --prefix=/usr/local/ntop\
  -with-rrd-home=/usr/local/rrdtool2
 
# Make&& make install
 
# cp ntop-3.3/packages/RedHat/ntop.conf.sample\
  /usr/local/ntop/etc/ntop/ntop.conf
 
# /usr/local/ntop/bin/ntop -P /usr/local/ntop/share/ntop -u nobody
  -A
Mon Mar 31 07:18:53 2008  NOTE: Interface merge enabled by default
Mon Mar 31 07:18:53 2008  Initializing gdbm databases

ntop startup - waiting for user response!

Please enter the password for the admin user: 
Password too short (5 characters or more). Please try again.

ntop startup - waiting for user response!

Please enter the password for the admin user:     //
这里输入密码
Please enter the password again:                  // 再此输入密码
Mon Mar 31 07:19:08 2008  Admin user password has been set

/usr/local/ntop/bin/ntop @/usr/local/ntop/etc/ntop/ntop.conf
-I  eth0   -m 192.168.100.0/24
 
然后输入http:://IP:3000,出现如下的界面:
 
3.jpg?t=1251449156
 
 
  2.jpg

本文转自wiliiwin 51CTO博客,原文链接:http://blog.51cto.com/wiliiwin/199301

相关文章
|
网络协议
winserver2008 如何修改远程桌面端口(带图)
winserver2008 如何修改远程桌面端口(带图)
348 0
winserver2008 如何修改远程桌面端口(带图)
|
监控 Linux 数据库
zabbix 换成中文字体显示
1. 乱码如下图 ![xx]http://upload-images.jianshu.io/upload_images/9967595-c3f4d6a4ea6d9831.
1205 0
|
存储 Linux 数据库
Python rrdtool模块与网卡流量绘制脚本(转载)
rrdtool(round robin database)工具为环状数据库的存储格式,round robin是一种处理定量数据以及当前元素指针的技术。rrdtool主要用来跟踪对象的变化情况,生成这些变化的走势图,比如业务的访问流量、系统性能、磁盘利用率等趋势图,很多流行监控平台都使用到rrdtool,比较有名的为Cacti、Ganglia、Monitorix等。
1504 0
|
关系型数据库 MySQL 应用服务中间件

热门文章

最新文章