centos6 smokeping安装

简介:

Smokeping 是一款用于网络性能监测的监控软件,通过它可以在自己公司IDC的网络状况,如延时,丢包率,是否BGP多线等,通过rrdtool制图方式,图形化地展示网络的时延情况,进而能够清楚的判断出网络的即时通信情况,

 

实验环境

centos6.5_x64

 

实验软件

echoping-6.0.2.tar.gz

fping-3.10.tar.gz

smokeping-2.6.9.tar.gz        

 

软件安装

yum clean all

yum makecache -y

yum install -y perl perl-Net-Telnet perl-Net-DNS perl-LDAP perl-libwww-perl perl-IO-Socket-SSLperl-Socket6 perl-Time-HiRes perl-ExtUtils-MakeMaker rrdtool rrdtool-perl curlhttpd httpd-devel gcc make wget libxml2-devel libpng-devel glib pangopango-devel freetype freetype-devel fontconfig cairo cairo-devel libart_lgpllibart_lgpl-devel popt popt-devel libidn libidn-devel  wqy-zenhei-fonts.noarch

 

tar zxvf fping-3.10.tar.gz

cd fping-3.10

./configure

make

make install

 

tar xvf echoping-6.0.2.tar.gz

cd echoping-6.0.2

./configue

make

make install

 

tar zxvf smokeping-2.6.9.tar.gz

cd smokeping-2.6.9

./setup/build-perl-modules.sh/usr/local/smokeping/thirdparty

./configure--prefix=/usr/local/smokeping

/usr/bin/gmake install

 

cd /usr/local/smokeping/

mkdir -p cache data var

touch /var/log/smokeping.log

chown apache:apache cache data var

chown apache:apache /var/log/smokeping.log        

chmod 600 /usr/local/smokeping/etc/smokeping_secrets.dist

cd /usr/local/smokeping/htdocs/

mv smokeping.fcgi.dist smokeping.fcgi

cd /usr/local/smokeping/etc/

mv config.dist config

 

vim /usr/local/smokeping/etc/config

cgiurl = http://some.url/smokeping.cgi

cgiurl = http://192.168.31.243/smokeping.cgi   192.168.31.243为服务器ip

 

step   = 300

pings  = 20

 

step   = 60 修改为,此选项为采集数据时间

pings  = 20

 

 

vim /usr/local/smokeping/etc/config

+ Other 
menu = 
三大网络监控 
title = 
监控统计 
++ dianxin 
menu = 
电信网络监控 
title = 
电信网络监控列表 
host = /Other/dianxin/dianxin-bj /Other/dianxin/dianxin-hlj/Other/dianxin/dianxin-tj /Other/dianxin/dianxin-sc /Other/dianxin/dianxin-sh/Other/dianxin/dianxin-gz 
+++ dianxin-bj 
menu = 
北京电信
title = 
北京电信 
alerts = someloss       
添加主机次选项不变
host =            
内容按照需求定义

 

vim /etc/httpd/conf/httpd.conf                                        

Alias /cache"/usr/local/smokeping/cache/"
Alias /cropper "/usr/local/smokeping/htdocs/cropper/"
Alias /smokeping "/usr/local/smokeping/htdocs/smokeping.fcgi"
<Directory "/usr/local/smokeping">
AllowOverride None
Options All
AddHandler cgi-script .fcgi .cgi
Order allow,deny
Allow from all
DirectoryIndex smokeping.fcgi
</Directory>                        以上几行在配置文件最后添加

 

 

vim /usr/local/smokeping/etc/config

50 charset = utf-8  添加次行配置

51 template =/usr/local/smokeping/etc/basepage.html.dist

 

vim /usr/local/smokeping/lib/Smokeping/Graphs.pm

147 '--end', $tasks[0][2],

148 "DEF:maxping=$cfg->{General}{datadir}${host}.rrd:median:AVERAGE"

 

147  '--end', $tasks[0][2],

148 '--font TITLE:20:"WenQuanYi Zen Hei Mono"',添加次行配置

149  "DEF:maxping=$cfg->{General}{datadir}${host}.rrd:median:AVERAGE"

 

 

 

vim /usr/local/smokeping/etc/config

#binary =/usr/sbin/fping

binary =/usr/local/sbin/fping 修改为

 

/etc/rc.d/init.d/httpdrestart

Stopping httpd:[  OK ]

Starting httpd:[  OK ]

/usr/local/smokeping/bin/smokeping

Note: logging tosyslog as local0/info.

Daemonizing/usr/local/smokeping/bin/smokeping ...

 

ps -aux | grep smokeping

Warning: badsyntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ

root     39844 0.0  2.3 231392 23412 ?        Ss  11:27   0:00/usr/local/smokeping/bin/smokeping [FPing]

root     39851 0.0  0.0 103260   876 pts/0   S+   11:28   0:00 grep smokeping

 

http://服务器ip/smokeping  如果有域名更好在这里实验环境

wKioL1gdVYzQD9-lAADOuKgGQhg216.jpg-wh_50



本文转自 mailfile 51CTO博客,原文链接:http://blog.51cto.com/mailfile/1869723,如需转载请自行联系原作者

相关文章
|
11天前
|
存储 安全 Linux
CentOS安装SeaweedFS
通过上述步骤,您应该能够在CentOS系统上成功安装并启动SeaweedFS。记住,根据实际部署规模和需求,可能还需要进一步调整配置参数和优化网络布局。SeaweedFS的灵活性和扩展性意味着随着使用深入,您可能需要探索更多高级配置和管理策略。
94 64
|
12天前
|
存储 安全 Linux
CentOS安装SeaweedFS
通过上述步骤,您应该能够在CentOS系统上成功安装并启动SeaweedFS。记住,根据实际部署规模和需求,可能还需要进一步调整配置参数和优化网络布局。SeaweedFS的灵活性和扩展性意味着随着使用深入,您可能需要探索更多高级配置和管理策略。
100 61
|
5天前
|
Linux 网络安全 数据安全/隐私保护
Linux系统之Centos7安装cockpit图形管理界面
【10月更文挑战第12天】Linux系统之Centos7安装cockpit图形管理界面
24 1
Linux系统之Centos7安装cockpit图形管理界面
|
11天前
|
NoSQL 数据可视化 Linux
redis学习四、可视化操作工具链接 centos redis,付费Redis Desktop Manager和免费Another Redis DeskTop Manager下载、安装
本文介绍了Redis的两个可视化管理工具:付费的Redis Desktop Manager和免费的Another Redis DeskTop Manager,包括它们的下载、安装和使用方法,以及在使用Another Redis DeskTop Manager连接Redis时可能遇到的问题和解决方案。
37 1
redis学习四、可视化操作工具链接 centos redis,付费Redis Desktop Manager和免费Another Redis DeskTop Manager下载、安装
|
18天前
|
Linux Docker 容器
Centos安装docker(linux安装docker)——超详细小白可操作手把手教程,包好用!!!
本篇博客重在讲解Centos安装docker,经博主多次在不同服务器上测试,极其的稳定,尤其是阿里的服务器,一路复制命令畅通无阻。
114 4
Centos安装docker(linux安装docker)——超详细小白可操作手把手教程,包好用!!!
|
8天前
|
NoSQL Linux Redis
Docker学习二(Centos):Docker安装并运行redis(成功运行)
这篇文章介绍了在CentOS系统上使用Docker安装并运行Redis数据库的详细步骤,包括拉取Redis镜像、创建挂载目录、下载配置文件、修改配置以及使用Docker命令运行Redis容器,并检查运行状态和使用Navicat连接Redis。
65 3
|
8天前
|
关系型数据库 MySQL Linux
在 CentOS 7 中通过编译源码方式安装 MySQL 数据库的详细步骤
本文介绍了在 CentOS 7 中通过编译源码方式安装 MySQL 数据库的详细步骤,包括准备工作、下载源码、编译安装、配置服务等,并与使用 RPM 包安装进行了对比,帮助读者根据需求选择合适的方法。编译源码安装虽然复杂,但提供了更高的定制性和灵活性。
64 2
|
10天前
|
关系型数据库 MySQL Linux
在 CentOS 7 中通过编译源码方式安装 MySQL 数据库的详细步骤
【10月更文挑战第7天】本文介绍了在 CentOS 7 中通过编译源码方式安装 MySQL 数据库的详细步骤,包括准备工作、下载源码、编译安装、配置 MySQL 服务、登录设置等。同时,文章还对比了编译源码安装与使用 RPM 包安装的优缺点,帮助读者根据自身需求选择合适的方法。
20 3
|
1月前
|
Linux 虚拟化 Windows
完美解决:重新安装VMware Tools灰色。以及共享文件夹的创建(centos8)
这篇文章提供了解决VMware Tools无法重新安装(显示为灰色)问题的步骤,并介绍了如何在CentOS 8上创建和配置VMware共享文件夹。
完美解决:重新安装VMware Tools灰色。以及共享文件夹的创建(centos8)
|
1月前
|
Unix Linux 开发工具
centos的官网下载和vm16虚拟机安装centos8【保姆级教程图解】
本文详细介绍了如何在官网下载CentOS 8以及在VMware Workstation Pro 16虚拟机上安装CentOS 8的步骤,包括可能出现的问题和解决方案,如vcpu-0错误的处理方法。
centos的官网下载和vm16虚拟机安装centos8【保姆级教程图解】