centos 7 / 6 smokeping安装
- 官网 值得拥有:http://oss.oetiker.ch/smokeping/doc/reading.en.html
安装依赖包
12yum -yinstallperl 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 gccmakelibxml2-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安装或者编译安装,没有安装上的,先不用管,继续)下载 smokeping,解压,编译
123456789101112131415161718192021222324252627282930313233343536373839404142431. wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.9.tar.gz2.tar-zxvf smokeping-2.6.9.tar.gz3.cdsmokeping-2.6.9安装perl相关模块4. ./setup/build-perl-modules.sh/usr/local/smokeping/thirdparty如果还是出现以下提示--------------------------------------------------------------------------------** Aborting Configure ******************************If you know where perl canfindthe missing modules,setthe PERL5LIB environment variable accordingly.FIRST though,makesure that'perl'starts the perlbinary you want to useforSmokePing.Now you caninstalllocalcopies of the missing modulesby running./setup/build-perl-modules.sh/usr/local/smokeping/thirdpartyThe RRDs perl module is part of RRDtool. Either use the rrdtoolpackage provided by your OS orinstallrrdtool fromsource.If youinstallfromsource, the RRDs module is locatedPREFIX/lib/perl--------------------------------------------------------------------------------yum -yinstallrrdtool-perl接着走>>> ./configureprefix=/usr/local/smokeping/出现以下提示,就表明配置OK--------------------------------------------------------------------------------** Ready toinstallSmokeping ******************************Settings:PERL5LIB =/usr/local/smokeping/thirdparty/lib/perl5/PERL =/usr/bin/perlThe Smokeping Makefiles use GNUmakefunctionality.Continue installation with/usr/bin/gmakeinstall--------------------------------------------------------------------------------5./usr/bin/gmakeinstall创建cache var data 三个目录和smokeping.log日志文件,并授权 apache
|
1
2
3
4
5
6
|
1 cd /usr/local/smokeping2 mkdir cache data var3 touch /var/log/smokeping.log4 cd /usr/local/smokepin5 chown -R apache:apache cache data var6 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/etc4 mv config.dist config5 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 |
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
######## 注意+是第一层,++是第二层 + zabbixmenu= Targets++ zabbixmenu = zabbixtitle = zabbixhost = ip++ zabbix_mysqlmenu = zabbix_mysqltitle = zabbix_mysqlhost = 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 NoneOptions AllAddHandler cgi-script .fcgi .cgiOrder allow,denyAllow from allAuthName "Smokeping"AuthType BasicAuthUserFile /usr/local/smokeping/htdocs/htpasswdRequire valid-userDirectoryIndex smokeping.fcgi</Directory> |
6. 设置web用户名和密码
htpasswd -c /usr/local/smokeping/htdocs/htpasswd admin
centos 7 / 6 smokeping安装的更多相关文章
- Smokeping安装教程
Smokeping安装教程 #Smokeping2.6.8安装教程 #2016.3.6 改编v1.0 #Linux运维技术交流 347163978 环境 CentOS release 6.4 (F ...
- Smokeping安装部署
稳定性检测工具smokeping安装配置和使用方法 Smokeping介绍 是对IDC网络质量,稳定性等最好的检测工具,包括常规的 ping,dig,echoping,curl等,可以监视www服务器 ...
- SmokePing安装手册
SmokePing安装部署 SmokePing简介 Smokeping是一款用于网络性能监测的开源监控软件,主要用于对IDC的网络状况,网络质量,稳定性等做检测,通过rrdtool制图方式,图形化地展 ...
- smokeping安装
一.准备工作: 1.以防止安装依赖出错,首先给系统安装第三方源:rpm -Uvh http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforg ...
- 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 ...
- 在CentOS或RHEL上安装Nux Dextop仓库
介绍 Nux Dextop是类似CentOS.RHEL.ScientificLinux的第三方RPM仓库(比如:Ardour,Shutter等等).目前,Nux Dextop对CentOS/RHEL ...
- 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. ...
- 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 ...
- 转:CentOS/Debian/Ubuntu一键安装LAMP(Apache/MySQL/PHP)环境
CentOS/Debian/Ubuntu一键安装LAMP(Apache/MySQL/PHP) 今天遇到一个网友提到需要在Linux VPS服务器中安装LAMP(Apache/MySQL/PHP)网站环 ...
随机推荐
- 调用tf.softmax_cross_entropy_with_logits函数出错解决
原来这个函数,不能按以前的方式进行调用了,只能使用命名参数的方式来调用.原来是这样的: tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(y ...
- TDDL-剖析淘宝TDDL
TDDL-剖析淘宝TDDL 学习了:https://blog.csdn.net/sumj7011/article/details/78286741 Taobao Distribute Data Lay ...
- Cucumber+Rest Assured快速搭建api自动化测试平台
转载:http://www.jianshu.com/p/6249f9a9e9c4 什么是Cucumber?什么是BDD?这里不细讲,不懂的直接查看官方:https://cucumber.io/ 什么是 ...
- c++ 操作Mysql ado
#pragma once #ifndef DB_MYSQL_H #define DB_MYSQL_H #include "stdafx.h" #include <wins ...
- Oracle oledb 打包并集成到程序安装包(VC ADO訪问Oracle)
近期有一个项目和oracle交互,我用的是ADO的方式进行试问操作. 首先把数据库连接的东东记录一下,老了记性不好啊! 操作例如以下: //连接串这么写的话就能够不用配置 tnsnames.ora配置 ...
- git mirror的创建与使用
please donwload repo mirro as follow steps, thanks 1.mirror server,server IP:192.168.0.123 1.1 -- de ...
- centos7下memcached的安装配置
memcached 依赖 libevent-devel 首先安装libevent-devel yum -y install libevent-devel 安装完毕! 继续安装memcached yum ...
- mysql查询结果自动生成序列号
- vuex 介绍
vuex是为vue.js开发的状态管理模式,负责vue的状态管理,状态管理是干啥的呢,举个栗子,比如一个酒店,哪间屋子入住了客人,哪间屋子客人退房了,客人退房后,房间有没有清扫过,这些都需要去记录,以 ...
- HDU 5313 Bipartite Graph(二分图染色+01背包水过)
Problem Description Soda has a bipartite graph with n vertices and m undirected edges. Now he wants ...