一、环境部署(准备两台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页面支持中文
1.1.安装一个中文字体
<

本文详细介绍了如何在两台CentOS7虚拟机上部署 Smokeping 服务,包括环境准备、源码下载与安装、主从配置以及服务启动。通过设置,实现了主从结构并配置了Apache服务,最终可以通过浏览器访问 Smokeping 的监控页面。
最低0.47元/天 解锁文章
369

被折叠的 条评论
为什么被折叠?



