smokeping安装部署文档:
下载smokeping
http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.11.tar.gz
安装第三方源
rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
安装依赖包
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 fping echoping gcc libxml2-devel libpng-devel glib pango pango-devel freetype freetype-devel fontconfig cairo cairo-devel libart_lgpl libart_lgpl-devel mod_fastcgi
解压
tar xf smokeping-2.6.11.tar.gz
cd smokeping-2.6.11
./configure --prefix=/usr/local/smokeping/
编译会报错,缺少依赖的Perl模块
安装Perl模块:(需要到国外下载包,这一步非常慢,重试N多次Perl模块才安装全)
./setup/build-perl-modules.sh /usr/local/smokeping/thirdparty
./configure --prefix=/usr/local/smokeping/
gmake install
cd /usr/local/smokeping/
mkdir cache data var
chown apache:apache cache data var
cd /usr/local/smokeping/htdocs/
mv smokeping.fcgi.dist smokeping.fcgi
cd /usr/local/smokeping/etc/
mv config.dist config
chmod 600 smokeping_secrets.dist
vim config
cgiurl = http://some.url/smokeping.cgi
把some.url修改为你的ip或者域名
# 需提前安装Apache
vim /etc/httpd/conf/httpd.conf 修改Apache配置文件
全局配置段加如下配置
AddHandler cgi-script .cgi .fcgi
DirectoryIndex index.html index.html.var smokeping.fcgi
DocumentRoot "/var/www/html" # DocumentRoot下添加如下配置
Alias /cache "/usr/local/smokeping/cache/"
Alias /cropper "/usr/local/smokeping/htdocs/cropper/"
Alias /smokeping "/usr/local/smokeping/htdocs/smokeping.fcgi"
<Directory />
Options FollowSymLinks ExecCGI
AllowOverride None
</Directory>
service httpd restart
/usr/local/smokeping/bin/smokeping start
浏览器打开
http://some.url/smokeping
有些地方中文显示乱码,修改配置文件,Presentation配置段修改字符集
vim config
*** Presentation ***
charset = utf-8