smokeping安装篇

一、smokeping介绍

     smokeping rrdtool 的作者 Tobi Oetiker 的作品,所以它在图形显示方面有很大优势,也是一个很有特点的 opensource 工具:多种探测方式,包括 fping echoping dig curl 等;
     smokeping 依托于 web server 通过 CGI-speedyCGI 模块进行显示。常用于 IDC 机房带宽的测试。
 

二、部署准备:

  系统环境 centos 5.5_32bit 
  所需软件:
   apdche  yum 安装即可
   rrdtool  wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.3.tar.gz
cgilib   wget http://down1.chinaunix.net/distfiles/cgilib-0.5.tar.gz
   fping    wget http://oss.oetiker.ch/smokeping/pub/fping-2.4b2_to4-ipv6.tar.gz
   smokeping   wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.4.2.tar.gz
   echoping wget
    http://ncu.dl.sourceforge.net/project/echoping/echoping/6.0.2/echoping-6.0.2.tar.gz
   CGI-speedyCGI wget
    http://mirrors.163.com/cpan/authors/id/H/HO/HORROCKS/CGI-SpeedyCGI-2.22.tar.gz
   mod_speedycgi wget
ftp://195.220.108.108/linux/epel/5/i386/mod_speedycgi-2.22-4.el5.i386.rpm
   perl-CGI-SpeedyCGI wget
    ftp://fr.rpmfind.net/linux/EPEL/5Server/i386/perl-CGI-SpeedyCGI-2.22-4.el5.i386.rpm
  (64bit 的包
   wget ftp://195.220.108.108/linux/epel/5/x86_64/mod_speedycgi-2.22-4.el5.x86_64.rpm
wget  ftp://fr.rpmfind.net/linux/EPEL/5Server/x86_64/perl-CGI-SpeedyCGI-2.22-4.el5.x86_64.rpm
  )
    

三、smokeping 安装部署

3.1apache及必备包的安装

1 yum install httpd
 
2 、通过 yum 安装所需包
freetype freetype-devel libpng libpng-devel gd gd-devel libxml2 libxml2-devel libiconv libiconv-devel pango pango-devel qpixman qpixman-devel glib glib-devel cairo cairo-devel libart* gettext gettext-devel libjpeg libjpeg-devel perl-XML-Simple perl-Crypt-SSLeay perl-Digest-HMAC
说明: libiconv libiconv-devel 我的 yum 源没有这个包,结果倒是也不影响。

3.2smokeping必备软件安装

l  rrdtool 安装
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.3.tar.gz
tar xzvf rrdtool-1.4.3.tar.gz
cd rrdtool-1.4.3
 ./configure --prefix=/usr/local/rrdtool
 make
 make install
 
l  cgilib 安装
 wget http://down1.chinaunix.net/distfiles/cgilib-0.5.tar.gz
 tar xzvf cgilib-0.5.tar.gz
 cd cgilib-0.5
 make
 cp libcgi.a  /usr/local/lib
 cp cgi.h /usr/include/
 
l  fping 安装
wget http://oss.oetiker.ch/smokeping/pub/fping-2.4b2_to4-ipv6.tar.gz
./configure �Cprefix=/usr/local/fping
make && make install
whereis fping
 fping: /usr/local/fping
ln -s /usr/local/fping/sbin/fping  /usr/sbin/fping
这个链接是对应 /usr/local/smokeping/etc/config 里面的 probe fping
 
 
l  echoping 安装
wget http://ncu.dl.sourceforge.net/project/echoping/echoping/6.0.2/echoping-6.0.2.tar.gz
tar xzvf echoping-6.0.2.tar.gz
cd echoping-6.0.2
./configure
make && make install
 
l  CGI-speedyCGI 安装
 
安装 speedycgi.so 模块
wget ftp://195.220.108.108/linux/epel/5/i386/mod_speedycgi-2.22-4.el5.i386.rpm   
wget ftp://fr.rpmfind.net/linux/EPEL/5Server/i386/perl-CGI-SpeedyCGI-2.22-4.el5.i386.rpm
# rpm -ivh --force perl-CGI-SpeedyCGI-2.22-4.el5.i386.rpm
# rpm -ivh mod_speedycgi-2.22-4.el5.i386.rpm
 
确认生成 speedycgi.so
find /etc/httpd/modules/ -name "*speedycgi*"
/etc/httpd/modules/mod_speedycgi.so
 
wget http://mirrors.163.com/cpan/authors/id/H/HO/HORROCKS/CGI-SpeedyCGI-2.22.tar.gz
tar xzvf CGI-SpeedyCGI-2.22.tar.gz
cd CGI-SpeedyCGI
perl Makefile.PL
 
Optional mod_speedycgi support.
 
Mod_speedycgi increases performance under Apache by avoiding the fork/exec
overhead associated with each request under normal SpeedyCGI.  However, it
requires a working copy of "apxs" in your path, Apache with mod_so
support, and additional Apache configuration.
 
Compile mod_speedycgi (default no)? no
make && make install
 
l  smokeping 安装
  smokeping 本身不需要安装,只需解压后将文件夹移动到指定位置
wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.4.2.tar.gz
  # cp -rf smokeping-2.4.2 /usr/local/smokeping

你可能感兴趣的:(测试,监控,休闲,smokeping,带宽质量)