资源描述:
《smokeping部署手册》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、SmokePing部署手册环境说明系统环境:rhel5u4软件版本:cgilib-0.5.tar.gzCGI-SpeedyCGI-2.22.tar.gzechoping-6.0.2.tar.gzfping-2.4.tar.gzrrdtool-1.4.4.tar.gzsmokeping-2.4.2.tar.gzSmokeping到2.4的版本新加入了traceroute的功能,但是到2.5版本又将其移除了。最新版本的已经可以支持./configure来进行安装了。准备工作可先暂时关闭iptables以及selinux刨除其他影响,可完成后,将防火墙添加上。安装rrdtool#安装依赖的软件包
2、:[root@smokepingsmokeping]#yum-yinstallfreetypefreetype-devellibpnglibpng-develgdgd-devellibxml2libxml2-devellibiconvlibiconv-develpangopango-develqpixmanqpixman-develglibglib-develcairocairo-devellibart*gettextgettext-devellibjpeglibjpeg-develperl-XML-Simple.noarchperl-Crypt-SSLeayperl-Digest-HMA
3、C#使rrdtool支持中文[root@smokepingsmokeping]#cat/etc/sysconfig/i18nLANG="zh_CN.UTF-8"[root@smokepingsmokeping]#exportLANG="zh_CN.UTF-8"[root@smokepingsmokeping]#yum-yinstallfonts-chinese#安装rrdtool[root@smokepingsmokeping]#tar-zxvfrrdtool-1.4.4.tar.gz-C/usr/local/src/[root@smokepingsmokeping]#cd/usr/loc
4、al/src/rrdtool-1.4.4/[root@smokepingrrdtool-1.4.4]#ls[root@smokepingrrdtool-1.4.4]#sed-i's/setlocale(LC_NUMERIC,"C")/setlocale(LC_ALL,"zh_CN.UTF-8")/g'src/rrd_graph.c[root@smokepingrrdtool-1.4.4]#sed-i's/setlocale(LC_NUMERIC,old_locale)/setlocale(LC_ALL,old_locale)/g'src/rrd_graph.c[root@smokeping
5、rrdtool-1.4.4]#./configure--prefix=/usr/local/rrdtool[root@smokepingrrdtool-1.4.4]#make&&makeinstall执行rrdtool命令,如果出现以下输出,表示安装成功,并列出了该命令的使用帮助。[root@smokepingrrdtool-1.4.4]#cd/usr/local/rrdtool/bin/[root@smokepingbin]#lltotal400-rwxr-xr-x1rootroot95492Jun1709:50rrdcached-rwxr-xr-x1rootroot46362Jun17
6、09:50rrdcgi-rwxr-xr-x1rootroot41520Jun1709:50rrdtool-rwxr-xr-x1rootroot207192Jun1709:50rrdupdate[root@smokepingbin]#./rrdtoolRRDtool1.4.4Copyright1997-2010byTobiasOetikerCompiledJun17201209:50:49Usage:rrdtool[options]commandcommand_optionsValidcommands:create,update,updatev,graph,
7、graphv,dump,restore,last,lastupdate,first,info,fetch,tune,resize,xport,flushcachedRRDtoolisdistributedundertheTermsoftheGNUGeneralPublicLicenseVersion2.(www.gnu.org/copyleft/gpl.html)FormoreinformationreadtheRRDm