Smokeping 网络监控开源软件
Smokeping 安装配置
一、介绍
smokeping是rrdtool的作者Tobi Oetiker的作品,所以它在图形显示方面有很大优势,也是一个很有特点的opensource工具:多种探测方式,包括fping、echoping、dig、curl等;
易用可扩展的插件;
master/slave的工作方式,可以在多个节点收集同一个监测点的数据;很有特色的alert设置,不只是简单的设置一个阀值;
二、安装
在装好LAMP与PERL基础上,再安装以下软件
所需软件
wget http://dag.wieers.com/rpm/packages/fping/fping-2.4-1.b2.2.el5.rf.x86_64.rpm
wget http://www.bjlx.org.cn/debian/pool/main/e/echoping/echoping_5.2.0.orig.tar.gz
wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.4.2.tar.gz
wget http://daemoninc.com/SpeedyCGI/CGI-SpeedyCGI-2.22.tar.gz
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.2.tar.gz
安装fping-2.4-1.b2.2.el5.rf.x86_64.rpm
Rpm ?ivh fping-2.4-1.b2.2.el5.rf.x86_64.rpm
安装CGI-SpeedyCGI-2.22.tar.gz
Tar ?zxvf CGI-SpeedyCGI-2.22.tar.gz
cd CGI-SpeedyCGI-2.22
perl Makefile.PL
Compile mod_speedycgi (default no)? no
Make && make install
安装echoping_5.2.0.orig.tar.gz
Tar zxvf echoping_5.2.0.orig.tar.gz
cd echoping_5.2.0
./configure --prefix=/usr/local/echoping --with-ssl --without-libidn
Make && make install
安装rrdtool-1.4.2.tar.gz
Tar zxvf rrdtool-1.4.2.tar.gz
Cd rrdtool-1.4.2
./configure
--prefix=/usr/local/rrdtool
Make && make install
安装:smokeping-2.4.2.tar.gz
Tar zxvf smokeping-2.4.2.tar.gz
mv smokeping-2.4.2 /usr/local/smokeping
二、修改相关配置文件
Mkdir ?p /usr/local/smokeping/cache
Mkdir ?p /usr/local/smokeping/var
1、/usr/local/smokeping/etc/ config.dist
如下:
2、/usr/local/smokeping/htdocs/smokeping.cgi修改
Cp /usr/local/smokeping/htdocs/smokeping.cgi.dist usr/local/smokeping/htdocs/smokeping.cgi
use lib qw(/usr/local/rrdtool/lib/perl);
use lib qw(/usr/local/smokeping/lib);
Smokeping::cgi("/usr/local/smokeping/etc/config.dist");
3、/usr/local/smokeping/bin/smokeping.dist 修改
use lib qw(/usr/local/rrdtool/lib/perl);
use lib qw(/usr/local/smokeping/lib);
4、启动/usr/local/smokeping/bin/smokeping.dist start
Chown apache.apache /usr/local/smokeping ?R
三、配置httpd.conf
如下:
Alias /smokeping/ "/usr/local/smokeping/"
<Directory "/usr/local/smokeping/ ">
AllowOverride None
AddHandler cgi-script cgi
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
启动脚本:http://oss.oetiker.ch/smokeping/pub/contrib/smokeping-start-script
访问:http://ip/smokeping/htdocs/smokeping.cgi
参考:
http://www.joecen.com/2008/10/09/use-smokeping/
http://hi.baidu.com/powerdj/blog/item/553659dfc9ea371b48540366.html