一、安装插件 NTOP插件

[[email protected]~]# useradd -M -s /sbin/nologin -r ntop

[[email protected] ntop]# cd ntop/

[[email protected] ntop]# ./autogen.sh --with-rrd-home=/usr/local/rrdtool/ --disable-snmp


configure: error:  The LBL Packet Capture Library, libpcap, was not found!


[[email protected] ntop]# yum install libpcap*

在次配置出现提示:
[[email protected] ntop]# ./autogen.sh --with-rrd-home=/usr/local/rrdtool/ --disable-snmp


configure: error: Unable to find RRD at /usr/local/rrdtool: please use --with-rrd-home=DIR

 [[email protected] ntop]# ./autogen.sh --with-rrd-home=/usr/local/rrdtool-1.3.6/ --disable-snmp

[[email protected] ~]#make

[[email protected] ~]#make install

[[email protected] share]# chown -R ntop:ntop /usr/local/share/ntop/

[[email protected] share]# chown -R ntop:root /usr/local/var/ntop/

 

[[email protected] ntop]# ntop –A     //为admin设置密码;
 

[[email protected] ntop]# ntop -i eth0 -d -L -u ntop   //启动ntop

Tue Mar 22 14:34:27 2011  NOTE: Interface merge enabled by default

Tue Mar 22 14:34:27 2011  Initializing gdbm databases

输入 http://IP:3000/ 就可以出现页面了
 

下面要把ntop与CACTI整合;

 

[[email protected] plugins] # tar -zxvf /usr/local/src/soft_pack/0.8.7e/ntop-0.1.tar.gz

#vi /etc/rc.local

/usr/local/bin/ntop -i eth0 -d -L -u ntop & > /dev/null   //开机自启动;

按照其他插件的安装方法来安装;


 

二、安装weathmap 插件

http://www.network-weathermap.com/releases/0.97a 下载地址

安装方法可参考:


http://www.network-weathermap.com/manual/0.92/pages/install-cacti-editor.html

 安装过程

# unzip php-weathermap-0.97a.zip           //解压weathmap到cacti/plugins;

[[email protected] include]# vi global.ph         //编辑global.php 启用插件;

# cd weathermap/                          //进入到cacti/plugins/weathmap

[[email protected] weathermap]# chown cacti output/

[[email protected] weathermap]# ll -d output/

drwxr-xr-x 2 cacti root 4096 Mar 10  2010 output/

[[email protected] weathermap]# cp editor-config.php-dist editor-config.php

[[email protected] cacti]# ps aux |grep httpd      //可以看到httpd 的用户是daemon;

[[email protected] weathermap]# chown daemon configs/

[[email protected] weathermap]# ll -d configs/

drwxr-xr-x 2 daemon root 4096 Mar 10  2010 configs/

 

[[email protected] weathermap]# vi editor-config.php   //编辑配置文件,修改cacti的实际路径

 

14 $cacti_base = '/usr/local/LAMP/apache2/htdocs/cacti';

20 $cacti_url = "http://192.168.250.39/cacti/";

30 $mapdir=$cacti_base.'/plugins/weathermap/configs';

36 $ignore_cacti = FALSE;

 

[[email protected] weathermap]# vi editor.php         //否则weathmap点击edit会报错,根据提示也会让你去修改这个文件的值的;

$ENABLED=true;

 

登录cacti,在界面上会出现Weathermaps图标;

点击 Console---Management--Weathermaps --- Weathermap Editor在一个空白页面上编辑图像

 


·  Add Node :添加节点

·  Add Link :添加节点间的链路;

·  Position Legend ;添加图例

·  Position Timestamp : 添加制表时间

cacti插件安装(二)



做好图之后在:

Console---Management--Weathermaps ---add //添 加刚才创建图时创建的名字;
就能出现图了

cacti插件安装(二)




 
 
本人制作了两个主机之间的网卡的流量图,也不知道做的对不对。
有谁对weathermap了解的请指点指点 多谢