CentOS 6.x环境下搭建SmokePing

CentOS 6.x环境下搭建SmokePing

一、环境准备

[root@SmokePing src]# cat /etc/RedHat-release CentOS release 6.5 (Final) [root@SmokePing src]# cd /usr/local/src/ [root@SmokePing src]# yum install -y lrzsz Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package lrzsz.x86_64 0:0.12.20-27.1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================== Package Arch Version Repository Size ======================================================================================== Installing: lrzsz x86_64 0.12.20-27.1.el6 base 71 k Transaction Summary ======================================================================================== Install 1 Package(s) Total download size: 71 k Installed size: 159 k Downloading Packages: lrzsz-0.12.20-27.1.el6.x86_64.rpm | 71 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : lrzsz-0.12.20-27.1.el6.x86_64 1/1 Verifying : lrzsz-0.12.20-27.1.el6.x86_64 1/1 Installed: lrzsz.x86_64 0:0.12.20-27.1.el6 Complete! [root@SmokePing src]# rz -E #将下载好的软件拖拽至服务器 rz waiting to receive. [root@SmokePing src]# ll 总用量 2200 -rw-r--r--. 1 root root 1660983 8月 23 2017 echoping-6.0.2.tar.gz -rw-r--r--. 1 root root 157010 8月 23 2017 fping-3.10.tar.gz -rw-r--r--. 1 root root 427185 8月 23 2017 smokeping-2.6.9.tar.gz

 二、环境部署

1) 安装依赖包

[root@SmokePing src]# yum install -y perl perl-Net-Telnet perl-Net-DNS perl-LDAP perl-libwww-perl perl-IO-Socket-SSL perl-Socket6 perl-Time-HiRes perl-ExtUtils-MakeMaker rrdtool rrdtool-perl curl httpd httpd-devel gcc make wget libxml2-devel libpng-devel glib pango pango-devel freetype freetype-devel fontconfig cairo cairo-devel libart_lgpl libart_lgpl-devel popt popt-devel libidn libidn-devel

2) 编译安装echoping

[root@SmokePing src]# tar zxvf echoping-6.0.2.tar.gz [root@SmokePing src]# cd ./echoping-6.0.2 [root@SmokePing echoping-6.0.2]# ./configure ...........................................................................#编译过程 [root@SmokePing echoping-6.0.2]# make && make install

3) 编译安装fping

[root@SmokePing src]# tar zxvf fping-3.10.tar.gz && cd fping-3.10 [root@SmokePing fping-3.10]# ./configure .............................................................................#编译过程 [root@SmokePing fping-3.10]# make && make install

4)编译安装smokeping

[root@SmokePing src]# tar zxvf smokeping-2.6.9.tar.gz && cd smokeping-2.6.9 [root@SmokePing smokeping-2.6.9]# ./setup/build-perl-modules.sh /usr/local/smokeping/thirdparty [root@SmokePing smokeping-2.6.9]# ./configure --prefix=/usr/local/smokeping [root@SmokePing smokeping-2.6.9]# /usr/bin/gmake install

5)配置smokeping,以及修改配置文件

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/649918b1f7345024b1376cc6cd4f1f3b.html