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,如需转载请自行联系原作者

相关文章
|
14天前
|
Linux 网络安全 Python
linux centos上安装python3.11.x详细完整教程
这篇文章提供了在CentOS系统上安装Python 3.11.x版本的详细步骤,包括下载、解压、安装依赖、编译配置、解决常见错误以及版本验证。
117 1
linux centos上安装python3.11.x详细完整教程
|
2月前
|
消息中间件 Linux API
centos7 安装rabbitmq自定义版本及配置
centos7 安装rabbitmq自定义版本及配置
|
12天前
|
Unix Linux 开发工具
centos的官网下载和vm16虚拟机安装centos8【保姆级教程图解】
本文详细介绍了如何在官网下载CentOS 8以及在VMware Workstation Pro 16虚拟机上安装CentOS 8的步骤,包括可能出现的问题和解决方案,如vcpu-0错误的处理方法。
centos的官网下载和vm16虚拟机安装centos8【保姆级教程图解】
|
13天前
|
消息中间件 Linux
centos7安装rabbitmq
centos7安装rabbitmq
|
12天前
|
Linux 虚拟化 Windows
完美解决:重新安装VMware Tools灰色。以及共享文件夹的创建(centos8)
这篇文章提供了解决VMware Tools无法重新安装(显示为灰色)问题的步骤,并介绍了如何在CentOS 8上创建和配置VMware共享文件夹。
完美解决:重新安装VMware Tools灰色。以及共享文件夹的创建(centos8)
|
2月前
|
弹性计算 关系型数据库 MySQL
centos7 mysql安装及配置
本文详细介绍了在阿里云服务器ECS上通过yum源安装MySQL 8.0.12的过程,包括更新yum源、下载并安装MySQL源、解决安装过程中可能遇到的问题等步骤。此外,还介绍了如何启动MySQL服务、设置开机自启、配置登录密码、添加远程登录用户以及处理远程连接异常等问题。适合初学者参考,帮助快速搭建MySQL环境。
168 8
centos7 mysql安装及配置
|
13天前
|
Docker 容器
centos7.3之安装docker
centos7.3之安装docker
|
14天前
|
NoSQL Linux Redis
linux之centos安装redis
linux之centos安装redis
|
1月前
|
存储 Linux Docker
CentOS 7.6安装Docker实战案例及存储引擎和服务进程简介
关于如何在CentOS 7.6上安装Docker、介绍Docker存储引擎以及服务进程关系的实战案例。
99 3
CentOS 7.6安装Docker实战案例及存储引擎和服务进程简介
|
9天前
|
缓存 Linux 开发工具
CentOS7 安装KDE报错的解决方法:Loaded plugins:fastestmirror,langpacks There is no installed group.
CentOS7 安装KDE报错的解决方法:Loaded plugins:fastestmirror,langpacks There is no installed group.
26 0