cacti_ntop 插件配置安装 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

一、        服务端配置

1 :下載安裝 rpmforge-release

wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />0.3.6-1.el5.rf.i386.rpm

rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

2 yum install rrdtool

3 yum install ntop        // 安装 ntop 服务

4 ntop -u ntop  -w 3000 -d    // 启动 ntop 服务进程

 

ntop startup - waiting for user response!

Please enter the password for the admin user: Sun Feb 20 06:32:00 2011  THREADMGMT[t3036109712]: DNSAR(1): Address resolution thread running

Sun Feb 20 06:32:00 2011  THREADMGMT[t3015130000]: DNSAR(3): Address resolution thread running

Please enter the password for the admin user:            // 此处输入用户 ntop 密码

Please enter the password again:                       // 二次确认输入 ntop 密码

 

指定完成之后,我们就可以访问 http://hostIP:3000 来访问了。

或者用此命令,将其放到后台执行:

ntop –u ntop -w 3000 &

 

二、        安装 cacti ntop 插件

cd /var/www/html/cacti/plugins

tar zxvf ntop.tar.gz

vi ../ include/config.php      

 # $plugins = array(); 的后面加上如下内容

$plugins[] = ‘ntop’;

 

至此, cacti ntop 的整合工作就做完了。