2014/02/13

smokeping (v2.6.9) install CentOS 6

Download from http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.9.tar.gz

yum install perl cpan rrdtool-perl gcc gcc-c++
wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.9.tar.gz
tar zxvf smokeping-2.6.9.tar.gz
cd smokeping-2.6.9
./configure
##--install lost perl--with--
##perl -MCPAN -e 'install "the perl u need to install'
./setup/build-perl-modules.sh /usr/local/smokeping-2.6.9/thirdparty
./configure --prefix=/usr/local/smokeping
make ; make install
## install fping

wget http://fping.sourceforge.net/download/fping.tar.gz
tar zxvf fping.tar.gz
cd fping-2.4b2_to/
./configure
make ; make install

##Make dir

mkdir -p /usr/local/smokeping/cache
mkdir -p /usr/local/smokeping/data
##cp /usr/local/smokeping/htdocs/smokeping.fcgi.dist  /usr/local/smokeping/htdocs/smokeping.fcgi

## Edit config

cp  /usr/local/smokeping/etc/config.dist /usr/local/smokeping/etc/config
vi /usr/local/smokeping/etc/config

## Start up

/usr/local/smokeping/bin/smokeping start
/usr/local/smokeping/bin/smokeping --reload
/usr/local/smokeping/bin/smokeping --restart
/usr/local/smokeping/bin/smokeping --debug
/usr/local/smokeping/bin/smokeping --check


## http server

vi /etc/httpd/conf.d/smokeping.conf   

----
ScriptAlias /smokeping "/usr/local/smokeping/htdocs/smokeping.fcgi.dist"

alias /cache "/usr/local/smokeping/cache"



AllowOverride None

AddHandler cgi-script cgi

Options ExecCGI
 

----

service httpd reload





No comments: