睡裙厂家
免费服务热线

Free service

hotline

010-00000000
睡裙厂家
热门搜索:
行业资讯
当前位置:首页 > 行业资讯

图smokeping用最简单的方式安装smokeping-【xinwen】

发布时间:2021-10-12 09:53:59 阅读: 来源:睡裙厂家

用最简单的方式安装smokeping

适用于宽带运营商维护和IDC机房维护

可以检测本地网络的到上级运营商出口这段路由各个节点的稳定性

可以检测本地网络到各主要门户网站的延时,丢包率,稳定性

可以检测本地网络到各地游戏服务器的延时,丢包率,稳定性

smokeping缺点:不能在前台Web页面添加要检测的节点,必须在后台smokeping的配置文件中添加

安装前的准备:

1. 操作系统:选择centOS6.5 版, 里面的RPM包基本上都是最新的。

3.下载与安装smokeping wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.8.tar.gz

tar zxvf smokeping-2.6.8.tar.gz

cd smokeping-2.6.8

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

出现问题是因为需要安装perl的模块,所以运行下面内容即可

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

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

/usr/bin/gmake install

smokeping 用最简单的方式安装smokeping

现在smokeping安装完成

4. 配置smokeping (1) 创建cache、data、var目录

cd /usr/local/smokeping

mkdir cache data var

(2) 在创建日志

touch /var/log/smokeping.log

(3) 授权

chown apache:apache cache data var

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

(4) 修改配置文件

cd /usr/local/smokeping/htdocs/

mv smokeping.fcgi.dist smokeping.fcgi

cd /usr/local/smokeping/etc

mv config.dist config

vim config

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

主要是修改这行,把some.url修改为你的ip或者域名 *** Database ***

step = 300

pings = 60

然后修改step,从300改为60,这是检测的时间, pings 从20 改为60, 即60秒ping 60次

smokeping 用最简单的方式安装smokeping

(5) .配置完成之后修改密码文件权限

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

5. 修改apache的配置 vim /etc/httpd/conf/httpd.conf

在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"

AllowOverride None Options All

AddHandler cgi-script .fcgi .cgi Order allow,deny

Allow from all

DirectoryIndex smokeping.fcgi

6. 设置开机启动httpd, smokeping,并关闭iptables.

echo "/usr/local/smokeping/bin/smokeping --logfile=/var/log/smokeping.log 2>&1 &" >> /etc/rc.local chkconfig httpd on #开机启动httpd进程

chkconfig iptables off #开机不启动iptables服务

7. 启动http与smokeping

/etc/init.d/httpd start

/usr/local/smokeping/bin/smokeping --logfile=/var/log/smokeping.log 2>&1 &

smokeping 用最简单的方式安装smokeping

8. 打开检测主机的Web页面

在Web浏览器里输入 http://您的监控主机IP/smokeping

如果遇到500错误:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

--------------------------------------------------------------------------------

nk生物免疫治疗方法

细胞免疫疗法

免疫治疗肿瘤的成功率