1. 官网 值得拥有:http://oss.oetiker.ch/smokeping/doc/reading.en.html
  2. 安装依赖包

    1
    2
    yum -y install perl perl-Net-Telnet perl-Net-DNS perl-LDAP perl-libwww-perl perl-RadiusPerl perl-IO-Socket-SSL perl-Socket6 perl-CGI-SpeedyCGI perl-FCGI perl-CGI-SpeedCGI perl-Time-HiRes perl-ExtUtils-MakeMaker perl-RRD-Simple rrdtool rrdtool-perlfping echoping   gcc make   libxml2-devel libpng-devel glib pango pango-devel freetype freetype-devel fontconfig cairo cairo-devel libart_lgpl libart_lgpl-devel mod_fastcgi
    备注(httpd httpd-devel wget curl如果没安装,需要yum安装或者编译安装,没有安装上的,先不用管,继续)
  3. 下载 smokeping,解压,编译

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    1. wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.9.tar.gz
    2. tar -zxvf smokeping-2.6.9.tar.gz
    3. cd smokeping-2.6.9
    安装perl相关模块
    4. ./setup/build-perl-modules.sh /usr/local/smokeping/thirdparty
    如果还是出现以下提示
    --------------------------------------------------------------------------------
    ** Aborting Configure ******************************
     
       If you know where perl can find the missing modules, set
       the PERL5LIB environment variable accordingly.
     
       FIRST though, make sure that 'perl' starts the perl
       binary you want to use for SmokePing.
     
       Now you can install local copies of the missing modules
       by running
     
         ./setup/build-perl-modules.sh /usr/local/smokeping/thirdparty
     
       The RRDs perl module is part of RRDtool. Either use the rrdtool
       package provided by your OS or install rrdtool from source.
       If you install from source, the RRDs module is located
       PREFIX/lib/perl
    --------------------------------------------------------------------------------
    yum -y install rrdtool-perl
    接着走
    >>> ./configure prefix=/usr/local/smokeping/
    出现以下提示,就表明配置OK
    --------------------------------------------------------------------------------
    ** Ready to install Smokeping ******************************
     
       Settings:
     
         PERL5LIB = /usr/local/smokeping/thirdparty/lib/perl5/
         PERL = /usr/bin/perl
     
       The Smokeping Makefiles use GNU make functionality.
       Continue installation with
     
         /usr/bin/gmake install
    --------------------------------------------------------------------------------
    5.  /usr/bin/gmake install
  4. 创建cache var data 三个目录和smokeping.log日志文件,并授权 apache

1
2
3
4
5
6
1 cd /usr/local/smokeping
2 mkdir cache data var
3 touch /var/log/smokeping.log
4 cd /usr/local/smokepin
5 chown -R apache:apache cache data var
6 chown -R apache:apache /var/log/smokeping.log

4. 修改配置文件和自动生成文件(目的就是文件位置和config配置中一致)

1
2
3
4
5
6
7
8
9
1     cd /usr/local/smokeping/htdocs/
2     mv smokeping.fcgi.dist   smokeping.fcgi    
3     cd /usr/local/smokeping/etc
4     mv config.dist  config
5     vim config
##找到cgiurl = http://some.url/smokeping.cgi 把some.url 改成本地IP或者域名##
##找到 ***Database*** 栏 把step(监测时间)和pings(ping次数)的值改成自己设定的#####都改为60就是60秒ping60次##
完成之后修改验证密码文件权限
6     chmod 600 /usr/local/smokeping/etc/smokeping_secrets.dist
config配置片段
1
2
3
4
5
6
7
8
9
10
11
12
13
14
######## 注意+是第一层,++是第二层
+ zabbix
menu= Targets
 
++ zabbix
 
menu = zabbix
title = zabbix
host = ip
 
++ zabbix_mysql
menu = zabbix_mysql
title = zabbix_mysql
host = ip

5. 修改apache配置,增加基本配置+访问控制

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
DocumentRoot "/var/www/html" 下面增加以下内容 ##################################
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
AuthName "Smokeping"
AuthType Basic
AuthUserFile /usr/local/smokeping/htdocs/htpasswd
Require valid-user
DirectoryIndex smokeping.fcgi
 
</Directory>

6. 设置web用户名和密码

      htpasswd -c /usr/local/smokeping/htdocs/htpasswd admin

centos 7 / 6 smokeping安装的更多相关文章

  1. Smokeping安装教程

    Smokeping安装教程 #Smokeping2.6.8安装教程 #2016.3.6 改编v1.0 #Linux运维技术交流 347163978   环境 CentOS release 6.4 (F ...

  2. Smokeping安装部署

    稳定性检测工具smokeping安装配置和使用方法 Smokeping介绍 是对IDC网络质量,稳定性等最好的检测工具,包括常规的 ping,dig,echoping,curl等,可以监视www服务器 ...

  3. SmokePing安装手册

    SmokePing安装部署 SmokePing简介 Smokeping是一款用于网络性能监测的开源监控软件,主要用于对IDC的网络状况,网络质量,稳定性等做检测,通过rrdtool制图方式,图形化地展 ...

  4. smokeping安装

    一.准备工作: 1.以防止安装依赖出错,首先给系统安装第三方源:rpm -Uvh http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforg ...

  5. CentOS 6.3下 安装 Mono 3.2 和Jexus 5.4

    最新更新参看: Centos 7.0 安装Mono 3.4 和 Jexus 5.6 2012年初写过一篇<32和64位的CentOS 6.0下 安装 Mono 2.10.8 和Jexus 5.0 ...

  6. 在CentOS或RHEL上安装Nux Dextop仓库

    介绍 Nux Dextop是类似CentOS.RHEL.ScientificLinux的第三方RPM仓库(比如:Ardour,Shutter等等).目前,Nux Dextop对CentOS/RHEL ...

  7. CentOS 7.0编译安装Nginx1.6.0+MySQL5.6.19+PHP5.5.14

    准备篇: CentOS 7.0系统安装配置图解教程 http://www.osyunwei.com/archives/7829.html 一.配置防火墙,开启80端口.3306端口 CentOS 7. ...

  8. centos 7.0 编译安装php 7.0.3

    php下载页面 http://cn2.php.net/downloads.php 7.0.3多地区下载页面 http://cn2.php.net/get/php-7.0.3.tar.gz/from/a ...

  9. 转:CentOS/Debian/Ubuntu一键安装LAMP(Apache/MySQL/PHP)环境

    CentOS/Debian/Ubuntu一键安装LAMP(Apache/MySQL/PHP) 今天遇到一个网友提到需要在Linux VPS服务器中安装LAMP(Apache/MySQL/PHP)网站环 ...

随机推荐

  1. Java中判断String对象是否为空的方法

    Java原生的方法: String对象中有一个isEmpty的方法判断是否为空,其实isEmpty完全等同于string.length()==0,注意如果String本身是null,那么使用strin ...

  2. debug : 调试主进程启动的子进程

    http://blog.csdn.net/lostspeed/article/details/10109867

  3. Android常见的三种内部类

    在java里类中再定义类,这种在其他类内部类叫做内部类,在Android开发里最常见有三种内部类分别是(成员内部类.方法内部类.匿名内部类) 一.成员内部类 1 public class Test { ...

  4. awk如何区分shell脚本传进来的参数和自身的参数?awk如何获取shell脚本传进来的参数;awk中如何执行shell命令

    问题:对于shell脚本,$0表示脚本本身,$1表示脚本的第一个参数,$2……依次类推:对于awk,$1表示分割后的第一个字段,$2……依次类推.那么对于shell脚本中的awk如何区分两者呢? 答案 ...

  5. SWF代码分析与破解之路 (YueTai VIP视频信息获取工具) Socket续篇

    引言 上一篇 <Socket与站点保密应用 (隐藏链接的视频下载)>大大咧咧地从 WEB 讲 Socket.再到 TCP/IP 等协议,又再讲到 Wireshark 怎样抓IP包分析.最还 ...

  6. 如何去掉Google搜索的跳转 让你的Google搜索不被reset掉

    http://www.nowamagic.net/librarys/veda/detail/389 在点击google搜索结果时,google会在结果的URL前做个跳转,且有时这个跳转地址会被墙,这样 ...

  7. codeforces 557 C

    由于期末.非常久没刷题了,CF一直掉-- 这个题事实上非常简单. .由于做法非常easy想到嘛.. 就是枚举max=x时,最大能保留多少价值.不断更新ans, 结果就是全部价值和减去ans就好 因为最 ...

  8. 系统安全-Man in the middleattack

    窃听VS加密(解决数据机密性) 加密由两部分组成:算法&秘钥(算法要够复杂,秘钥要够安全) 对称加密:(Symmetric encryption) 采用单秘钥密码系统的加密方法,同一个秘钥可以 ...

  9. Windows下利用CMake和VS2013编译OpenCV

    转载自:http://www.chengxulvtu.com/2014/03/19/windows_build-opencv-with-cmake-and-vs2013.html   获取OpenCV ...

  10. PythonCookBook笔记——文件与IO

    文件与IO 所有的程序都要处理输入与输出,涉及到文本.二进制文件.文件编码和对文件名.目录的操作. 读写文本数据 需要读写各种不同编码的文本数据,使用rt模式的open()函数. 该读写操作使用系统默 ...