一、环境部署(准备两台Centos虚拟机)
1.关闭防火墙和SElinux
#systemctl stop firewalld.service
#systemctl disable firewalld.service
#sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
#grep SELINUX=disabled /etc/selinux/config
#setenforce 0
2.安装EPEL源
#yum -y install epel-release
3.安装绘图工具、web服务、及Smokeping扩展包
#yum -y install rrdtool perl-rrdtool fping httpd openssl-devel
#yum -y install perl-core curl gcc gcc-c++ wget
二、安装Smokeping服务
1.源码下载
#wget https://oss.oetiker.ch/smokeping/pub/smokeping-2.6.11.tar.gz
2.源码编译安装Smokeping
#tar -xzvf smokeping-2.6.11.tar.gz
#cd smokeping-2.6.11
#./setup/build-perl-modules.sh /usr/local/smokeping/thirdparty //用Smokeping自脚本安装依赖包
#./configure --prefix=/usr/local/smokeping //指定安装路径
#/usr/bin/gmake install
三、配置主从
1.master端配置
配置web页面支