Smokeping的配置
Smokeping是网络性能监测工具并能绘制出图,让监控者可以清晰的看出当前网络状况。该工具也可以进行分布式测试,很好的东西。
1、安装Smokeping必要的组件
yum install httpd rrdtool httpd-devel fping echoping curl -y
yum install -y perl perl-Net-Telnet perl-Net-DNS perl-LDAP perl-libwww-perl perl-RadiusPerl perl-IO-Socket-SSL perl-Socket6 perl-CGI-SpeedyCGI perl-CPAN
2、下载安装smokeping
首先,wget 解压smokeping文件后,并不急着进行编译安装,要先安装cpanmm等模块,不然的会出现问题的
./setup/build-perl-modules.sh /usr/local/smokeping/thirdparty 安装模块或者用cpanm Module::Name手动安装
进行编译:
./configure --prefix=/usr/local/smokeping
进行编译时,出现以下问题以及解决方法:
出现: Can't locate ExtUtils/Embed.pm 解决: yum -y install perl-devel perl-ExtUtils-Embed
出现:checking checking for perl module 'RRDs'... Failed 解决: yum install rrdtool-perl
进行安装:
/usr/bin/gmake install
出现: world-readable or writable, refusing it 解决: chmod 711 /opt/smokeping/etc/secrets.conf
查看rrdtool的版本信息:
[root@www171 rrdtool-1.4.7]# /usr/local/rrdtool/bin/rrdtool -v
RRDtool 1.4.7 Copyright 1997-2012 by Tobias Oetiker
Compiled Mar 5 2013 09:37:52
Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport, flushcached
RRDtool is distributed under the Terms of the GNU General
Public License Version 2. ()
For more information read the RRD manpages
|
编写smokeping配置文件信息:
##############################################
编辑httpd.conf配置文件信息:
vim /etc/httpd/conf/httpd.conf
把 >AddHandler cgi-script cgi fcgi
改成 > AddHandler cgi-script .cgi
Under
把 > Options Indexes FollowSymLinks
改成 > Options Indexes FollowSymLinks ExecCGI
|
问题:
checking for poptGetContext in -lpopt... no
configure: error: Missing popt library, get it from ftp://ftp.rpm.org/pub/rpm/dist/rpm-x.y.z
popt安装:
403问题:
要是目录在/usr/local/smokeping而http.conf目录cgi指到/var/www/smokeping会出现这种情况(尤其是用links的时候)
阅读(5842) | 评论(0) | 转发(0) |