首页 > 代码库 > centos7 安装smokeping

centos7 安装smokeping

最近需要使用smokeping监控各个办公点到机房出口的网络质量。

网上查了下发现安装步骤都很复杂,以下是本人使用centos 7 安装smokeping的步骤。

  • 首先安装yum源

yum install epel-release -y

  • 然后安装smokeping

yum install smokeping -y  会自动安装所有依赖包

  • 修改httpd

vim /etc/httpd/conf.d/smokeping.conf

<Directory "/usr/share/smokeping" >
Require all granted     默认是local改为all granted
# Require ip 2.5.6.8
# Require host example.org
</Directory>

<Directory "/var/lib/smokeping" >
Require all granted     默认是local改为all granted
# Require ip 2.5.6.8
# Require host example.org
</Directory>

 

  • 接下来在配置文件里添加监控项目即可

vim /etc/smokeping/config

+ TEST

menu = TEST
title = TEST

++ TEST1

menu = TEST1
title = TEST1
host = XXX.XXX.XXX.XXX

 

++ TEST2

menu = TEST2
title = TEST2
host = XXX.XXX.XXX.XXX

centos7 安装smokeping