天天看点

Smokeping一键安装(仅支持centos6系统)

#定位

CURRENT_PATH=$(pwd)

#设置dns

cat >>/etc/resolv.conf <<eof

nameserver 114.114.114.114

eof

#安装依赖包

yum -y install perl perl-Net-Telnet perl-Net-DNS perl-LDAP perl-libwww-perl perl-RadiusPerl perl-IO-Socket-SSL perl-Socket6 perl-CGI-SpeedyCGI perl-FCGI perl-CGI-SpeedCGI perl-Time-HiRes perl-ExtUtils-MakeMaker perl-RRD-Simple rrdtool rrdtool-perl curl fping echoping  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 mod_fastcgi screen ntpdate lrzsz wqy-zenhei-fonts.noarch vim

#更新时间

ntpdate time.nist.gov

cat >>/etc/crontab <<eof

0 0 * * * root ntpdate time.nist.gov

eof

#解压smokeping

cd $CURRENT_PATH

tar xvf smokeping.tar

cp -r smokeping /usr/local/

#安装fping

cd $CURRENT_PATH

tar zxvf fping-3.13.tar.gz

cd fping-3.1

继续阅读