首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

Cacti插件安装之NTOP

一,安装ntop 在官网获得最新源码包 wget http://cdnetworks-kr-2.dl.sourceforge.net/project/ntop/ntop/ntop-4.0.1/ntop-4.0.1.tar.gz 安装环境如下 Quick Instructions ================== 1. Get and install mandatory packages/tools       These instructions assume your system is already provided with       the normal source compile tools.  Most are gnu packages, available       through http://www.gnu.org or your favorite prebuilt package source.       Using their RedHat package names, these are:          - glibc, glibc-devel, gcc, cpp          - Some version of awk          - libtool (1.4+)                Note that there are reports of success with libtool 1.3.x under                FreeBSD so the script allows this.          - m4          - autoconf (2.53+)          - automake (1.6+)          - gdbm, gdbm-devel          - libpcap (http://www.tcpdump.org)          - librrdtool 1b. Optional packages          - openssl, openssl-devel (http://www.openssl.org)          - zlib, zlib-devel 2. Build ntop    - cd ntop    - ./autogen.sh    - make    - make install 如果./autoen.sh后make时报错过不去 错误一 checking for GeoIP_record_by_ipnum in -lGeoIP... no Please install GeoIP (http://www.maxmind.com/) 解决方法: wget http://www.maxmind.com/download/geoip/api/c/GeoIP.tar.gz tar xzvf it ./configure it make it make install it 错误二 If you run into problems, you can ALWAYS recreate the generated files    via this procedure:       rm -f acinclude.m4 aclocal.m4 Makefile.in config.h.in configure Makefile       find current versions of libtool, config.guess and config.sub and cp       them into your working directory.       cat acinclude.m4.ntop libtool.m4.in > acinclude.m4       aclocal       autoheader       autoconf       automake --gnu --copy --add-missing    and then:       ./configure ...       make       make install    as usual. 二,安装后调试 1,设置ntop # chown -R nobody /usr/local/var/ntop 安全 # ntop -A设置密码 # ntop -i eth0 -d -l echo " ntop -i eth0 -d -l " >>/etc/rc.local >& /dev/null开机启动 http://ip:3000测试 2,配置文件中加入插件 在cacti官网上下载ntop插件 wget http://docs.cact

02

linux下源码安装

源码安装:配置(configure)、编译(make)、安装(make install),所有操作中间错误可以忽略,最后段末尾统一报错。 ####1.配置  configure:生成Makefile的shell脚本  文件结构如下:   <文件夹>     |-configure.in     |-Makefile.am     |-acconfig.h     |-<源码文件>       |-tt.c       |-qq.c       |-qq.h       |-Makefile.am  其中configure.in作为./configure的配置输入;makefile.am通过automake生成makefile.in再由./configure生成makefile;acconfig.h由autoheader生成config.h.in再由./configure生成config.h  configure.h使用autoconf和automake命令的shell脚本,可以通过autoscan自动生成或手写  acconfig.h包含了configure.in中未定义的宏 autoscan–>autoheader–>aclocal–>automake|autoconf

04
领券