设为首页 收藏本站
查看: 1585|回复: 0

[经验分享] 基于运维网V8环境安装ntop-Linux sky-运维网 博客

[复制链接]

尚未签到

发表于 2019-1-26 12:12:20 | 显示全部楼层 |阅读模式
  注意:装这个软件最烦的就是依赖的东西太多,少一样都不行。
  以下安装基于运维网集成的V8版本环境。
  1.       去www.ntop.org网站下载最新版本的ntop,我下的是ntop-5.0.1.tar.gz,是38.2M
  2.       上传到/var/www目录下
  3.       tar zxvf ntop-5.0.1.tar.gz
  4.       cd ntop-5.0.1
  5.       ls
  6.       [root@cnyunwei ntop-5.0.1]# ./autogen.sh
  Starting ntop automatic configuration system v.0.2.3
  Please be patient, there is a lot to do...
  1. Testing gnu tools....
  You must have libtool installed to compile ntop.
  Download the appropriate package for your distribution, or get the
  source tarball from ftp://ftp.gnu.org/pub/gnu/libtool
  We require version 1.4 or higher
  We recommend version 1.5 or higher
  You must have wget installed to compile autogen.sh.
  Download the appropriate package for your distribution, or get the
  source tarball from ftp://ftp.gnu.org/pub/gnu/wget
  看到上面的提示信息是需要libtool
  [root@cnyunwei ntop-5.0.1]# yum install libtool
  期间输入 2次Y,直到安装完成
  重新[root@cnyunwei ntop-5.0.1]# ./autogen.sh
  Starting ntop automatic configuration system v.0.2.3
  Please be patient, there is a lot to do...
  1. Testing gnu tools....
  You must have wget installed to compile autogen.sh.
  Download the appropriate package for your distribution, or get the
  source tarball from ftp://ftp.gnu.org/pub/gnu/wget
  提示要安装wget
  [root@cnyunwei ntop-5.0.1]# yum install wget
  输入一次y直到安装完毕。
  重新[root@cnyunwei ntop-5.0.1]# ./autogen.sh
  提示
  Starting ntop automatic configuration system v.0.2.3
  Please be patient, there is a lot to do...
  1. Testing gnu tools....
  You must have svn/subversion installed to compile autogen.sh.
  Download the appropriate package for your distribution, or get the
  source from http://subversion.tigris.org
  [root@cnyunwei ntop-5.0.1]# yum install subversion
  再执行autogen.sh时
  *** FATAL ERROR ***
  It looks that you don't have the libpcap distribution installed.
  Download, compile and, optionally, install it.
  When finished please re-run this program.
  You can download the latest source tarball at http://www.tcpdump.org/
  configure: error:  The LBL Packet Capture Library, libpcap, was not found!
  以下是根据错误提示, 还需要安装的东西。
  [root@cnyunwei ntop-5.0.1]# yum install libpcap
  [root@cnyunwei ntop-5.0.1]# yum install libpcap-devel
  [root@cnyunwei ntop-5.0.1]# yum install libxml2
  [root@cnyunwei ntop-5.0.1]# yum install libxml2-devel
  [root@cnyunwei ntop-5.0.1]# yum install libpng
  [root@cnyunwei ntop-5.0.1]# yum install libpng-devel
  [root@cnyunwei ntop-5.0.1]# yum install pango
  [root@cnyunwei ntop-5.0.1]# yum install pango-devel
  [root@cnyunwei ntop-5.0.1]# yum install gdbm-devel
  [root@cnyunwei ntop-5.0.1]# yum install python
  这样安装的python又提示版本低,哎
  到官网下载python-2.7.3.tar.bz2,11.2M,传到/usr/local/src目录下
  [root@cnyunwei src]# cd /usr/local/src
  [root@cnyunwei src]# tar jxvf Python-2.7.3.tar.bz2
  [root@cnyunwei src]# cd Python-2.7.3
  yum install make
  ./configure
  make
  make install
  下载GeoIP-1.4.8.tar.gz并安装
  [root@cnyunwei Python-2.7.3]# cd /var/www/ntop-5.0.1
  [root@cnyunwei ntop-5.0.1]# ./autogen.sh
  make[1]: Leaving directory `/var/www/ntop-5.0.1/nDPI/src/lib'
  make[1]: Entering directory `/var/www/ntop-5.0.1/nDPI'
  make[1]: Nothing to be done for `all-am'.
  make[1]: Leaving directory `/var/www/ntop-5.0.1/nDPI'
  Now we're ready to compile ntop
  终于TMD的能安装ntop了!
  [root@cnyunwei ntop-5.0.1]# ./configure --prefix=/var/www/ntop/
  最后会提示
  Install directories:
  Default prefix: /usr/local
  Install into:   /var/www/ntop (default or via --prefix request)
  Data files are in     /var/www/ntop/share/ntop
  Config files are in   /var/www/ntop/etc/ntop
  Run directory is      /var/www/ntop/var/ntop
  Plugin files are in   /var/www/ntop/lib/ntop/plugins
  Database files are in /var/www/ntop/var/ntop
  make
  make install
  结果
  ************************************************************
  ************************************************************
  WARNING: This install created a directory for the ntop
  files and databases:
  /var/www/ntop/share/ntop
  This directory MUST be owned by the user
  which you are going to use to run ntop.
  The command you must issue is something like:
  chown -R ntop.ntop /var/www/ntop/share/ntop
  or    chown -R ntop:users /var/www/ntop/share/ntop
  man chown to check the syntax for YOUR system
  ************************************************************
  ************************************************************
  echo "Shall you be using SELinux please run:"
  Shall you be using SELinux please run:
  echo "make install-selinux-policy"
  make install-selinux-policy
  配置ntop
  [root@cnyunwei ntop-5.0.1]# useradd -M -s /sbin/nologin -r ntop
  [root@cnyunwei ~]# chown -R ntop.ntop /var/www/ntop/share/ntop
  [root@cnyunwei bin]# chown -R ntop.ntop /var/www/ntop/var/ntop
  [root@cnyunwei bin]# cd /var/www/ntop/bin
  [root@cnyunwei bin]# ./ntop –A
  输入2遍admin的密码
  开启防火墙的3000端口
  启动ntop服务
  [root@cnyunwei bin]# /var/www/ntop/bin/ntop -u ntop
  重启httpd服务
  service httpd restart
  在浏览器里面输入 http://IP:3000就可以看到页面了。
file:///C:%5CUsers%5CADMINI~1%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_image002.jpg

file:///C:%5CUsers%5CADMINI~1%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_image004.jpg

  
  
  
  
  
  
  做一名运维工程师,监控恐怕是日常生活中必不可少的活了,在企业中的监控,大多是用开源软件来实现的,而且开源软件也有着非常优秀的表现,其中著名的有cacti、nagios、ntop、Ganglia等等。而cacti+nagios+ntop的结合应用,能为企业做到更细微的保证。
  Ntop是一种监控网络流量工具,用ntop显示网络的使用情况比其他一些网络管理软件更加直观、详细。Ntop甚至可以列出每个节点计算机的网络带宽利用率。他是一个灵活的、功能齐全的,用来监控和解决局域网问题的工具;尤其当ntop与nprobe配合使用,其功能更加显著。它同时提供命令行输入和web页面,可应用于嵌入式web服务
file:///C:%5CUsers%5CADMINI~1%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_image006.jpg

file:///C:%5CUsers%5CADMINI~1%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_image008.jpg

  下面提供几个关于Ntop的相关文档分享给大家下载参考
  手把手实现企业级开源监控软件cacti+nagios+ntop整合(图解):
file:///C:%5CUsers%5CADMINI~1%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_image009.gif 手把手实现企业级开源监控软件cacti nagios ntop整合(图解).rar (1.57 MB, 下载次数: 975)

  NTop搭建-图文详细版:
file:///C:%5CUsers%5CADMINI~1%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_image009.gif NTop搭建-图文详细版.rar (372.41 KB, 下载次数: 315)

  NTop中文手册:
file:///C:%5CUsers%5CADMINI~1%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_image009.gif NTop中文手册.rar (33.79 KB, 下载次数: 267)

  NTop使用指南:
file:///C:%5CUsers%5CADMINI~1%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_image009.gif NTop使用指南.part1.rar (1.39 MB, 下载次数: 544)

file:///C:%5CUsers%5CADMINI~1%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_image009.gif NTop使用指南.part2.rar (1.39 MB, 下载次数: 576)

file:///C:%5CUsers%5CADMINI~1%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_image009.gif NTop使用指南.part3.rar (830.97 KB, 下载次数: 264)

  


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-667790-1-1.html 上篇帖子: 最实用的linux监控工具 下篇帖子: Linux下Ntop网络监控的安装与配置
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表